DrugWars: Development Continues by edicted

View this thread on steempeak.com
· @edicted ·
DrugWars: Development Continues
<center>![drugwars.jpg](https://cdn.steemitimages.com/DQmRpsaTbpAMidpCYn55MhdjHB4ErbsHiQNttxdneGfgCBp/drugwars.jpg)</center>

@timcliff wrote a very detailed write-up of the @drugwars battle system. 
(Which has changed again since yesterday.)

Now that @drugwars has open-sourced the project,
it is possible to divine what is going on behind the scenes. 

https://github.com/FutureShockco/drugwars.js/

A very nice tool to use is https://simulator.drugwars.io/

We can now see the outcomes of battles before they happen. 

-----

The order of operations for units can now be found at:
https://github.com/FutureShockco/drugwars.js/blob/master/src/units.json

1. Rowdy
2. Bouncer
3. Knifer
4. Gunman
5. Sniper
6. Hitman
7. Ninja
8. Big Mama
9. Bazooka
10. Mercenary

Every round, units get matched against each other using this order and swing for damage.  If units are still alive, a new round starts, units are rematched using the same order of operations, and units swing for damage again.  After 5 rounds if units are still alive the game is a draw. 

For example, if I attacked someone with one of every unit and they had 25 snipers and 25 big mama, all my odd numbered units would strike the snipers and all my even numbered units would strike the big mama.  The 25 snipers would all strike my single rowdy and the 25 big mama would all strike a single bouncer. 

On the next round, my knifer and gunman would die, on the next round my sniper and hitman, assuming the bouncers and big mama units were still alive at this point.  Let's check the simulator:

![drugwars-battle-sim1.png](https://cdn.steemitimages.com/DQmZisdRc9BVDGFCCLgMb2pTrMiMoWXPEnrYug7qQGzzVWp/drugwars-battle-sim1.png)

The 25 bouncers died on round 3.  The bouncer swing on round 3 wasn't enough to kill my hitman so it survived even though my ninja and big mama died later. 

The game went five rounds to the draw. 

Kudos to @timcliff for such a detailed deep dive.  
Open sourcing this project is a big win for everyone involved. 

# Other developments
The front end is getting better at letting me juggle multiple accounts.  
I'm forced to relog less than I had to before.  

Also, a player can no longer be attacked by more than one person.
This has lowered attacking activity by quite a bit.  
I can no longer spy on what other attackers are doing and beat them to the punch. 
However, this development makes it a lot easier to farm my own accounts. 

I've set up a script that tells me if any my accounts are under attack. 
More scripts to come

# Steem On!
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
👎  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 190 others
properties (23)
post_id71,169,695
authoredicted
permlinkdrugwars-development-continues
categorydrugwars
json_metadata{"tags":["drugwars","open-source","utopian-io","steemdev","gaming"],"users":["timcliff","drugwars"],"image":["https:\/\/cdn.steemitimages.com\/DQmRpsaTbpAMidpCYn55MhdjHB4ErbsHiQNttxdneGfgCBp\/drugwars.jpg","https:\/\/cdn.steemitimages.com\/DQmZisdRc9BVDGFCCLgMb2pTrMiMoWXPEnrYug7qQGzzVWp\/drugwars-battle-sim1.png"],"links":["https:\/\/github.com\/FutureShockco\/drugwars.js\/","https:\/\/simulator.drugwars.io\/","https:\/\/github.com\/FutureShockco\/drugwars.js\/blob\/master\/src\/units.json"],"app":"steemit\/0.1","format":"markdown"}
created2019-03-10 03:13:51
last_update2019-03-10 03:13:51
depth0
children15
net_rshares-1,771,619,614,388
last_payout2019-03-17 03:13:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,539
author_reputation171,132,830,416,177
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (315)
@teutonium ·
$0.04
Now with the project open source, the game will probably start to pick up the pace and develop much faster, really good news for the whole drug wars gaming community but also for STEEM.
👍  , ,
properties (23)
post_id71,170,019
authorteutonium
permlinkre-edicted-drugwars-development-continues-20190310t032727977z
categorydrugwars
json_metadata{"tags":["drugwars"],"app":"steemit\/0.1"}
created2019-03-10 03:27:27
last_update2019-03-10 03:27:27
depth1
children0
net_rshares58,591,785,290
last_payout2019-03-17 03:27:27
cashout_time1969-12-31 23:59:59
total_payout_value0.030 SBD
curator_payout_value0.008 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length185
author_reputation14,640,488,087,369
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (3)
@luegenbaron ·
I dont like the battle system.

Probably very subjective..

Do you have a script for me which just dumps all drugs of all my accs to the heist?

I lost 4 big armies against minimal opponents..

For example, while this was one of my very little armies:

![](https://d1vof77qrk4l5q.cloudfront.net/img/9a4fcf25cc92e703111f6ff8c9fd24a29d8610f0.png)

Posted using [Partiko Android](https://steemit.com/@partiko-android)
👍  
properties (23)
post_id71,185,065
authorluegenbaron
permlinkluegenbaron-re-edicted-drugwars-development-continues-20190310t113746436z
categorydrugwars
json_metadata{"app":"partiko","client":"android"}
created2019-03-10 11:37:48
last_update2019-03-10 11:37:48
depth1
children8
net_rshares10,340,026,956
last_payout2019-03-17 11:37:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length414
author_reputation23,622,906,626,344
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@edicted ·
$0.05
You should always have at least one of every unit.   He used the battle system against you.  He knew all your units would overkill the singles he threw out.
👍  
properties (23)
post_id71,203,931
authoredicted
permlinkre-luegenbaron-luegenbaron-re-edicted-drugwars-development-continues-20190310t193041886z
categorydrugwars
json_metadata{"tags":["drugwars"],"app":"steemit\/0.1"}
created2019-03-10 19:30:42
last_update2019-03-10 19:30:42
depth2
children3
net_rshares65,543,883,352
last_payout2019-03-17 19:30:42
cashout_time1969-12-31 23:59:59
total_payout_value0.034 SBD
curator_payout_value0.011 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length156
author_reputation171,132,830,416,177
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@luegenbaron ·
$0.03
Yea he used the 'battle system' against me.

You mean he used knowledge about the game I hadnt yet because the drugwars team didnt tell them..

I guess I was not the only one loosing all of his armies against a few crappy little units.

Posted using [Partiko Android](https://steemit.com/@partiko-android)
👍  ,
properties (23)
post_id71,232,043
authorluegenbaron
permlinkluegenbaron-re-edicted-re-luegenbaron-luegenbaron-re-edicted-drugwars-development-continues-20190311t101017654z
categorydrugwars
json_metadata{"app":"partiko","client":"android"}
created2019-03-11 10:10:18
last_update2019-03-11 10:10:18
depth3
children2
net_rshares48,272,184,913
last_payout2019-03-18 10:10:18
cashout_time1969-12-31 23:59:59
total_payout_value0.024 SBD
curator_payout_value0.008 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length305
author_reputation23,622,906,626,344
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@valued-customer ·
@poopybutthole

XD
properties (22)
post_id71,221,993
authorvalued-customer
permlinkre-luegenbaron-luegenbaron-re-edicted-drugwars-development-continues-20190311t050007262z
categorydrugwars
json_metadata{"tags":["drugwars"],"community":"steempeak","app":"steempeak\/1.8.4b"}
created2019-03-11 05:00:12
last_update2019-03-11 05:00:12
depth2
children3
net_rshares0
last_payout2019-03-18 05:00:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length18
author_reputation48,231,784,822,393
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@luegenbaron ·
?

Posted using [Partiko Android](https://steemit.com/@partiko-android)
properties (22)
post_id71,231,889
authorluegenbaron
permlinkluegenbaron-re-valued-customer-re-luegenbaron-luegenbaron-re-edicted-drugwars-development-continues-20190311t100438918z
categorydrugwars
json_metadata{"app":"partiko","client":"android"}
created2019-03-11 10:04:39
last_update2019-03-11 10:04:39
depth3
children2
net_rshares0
last_payout2019-03-18 10:04:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length71
author_reputation23,622,906,626,344
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@johneyreacko ·
Im seeing this game everywhere.  Is it really worth checking out?

Posted using [Partiko Android](https://steemit.com/@partiko-android)
properties (22)
post_id71,186,112
authorjohneyreacko
permlinkjohneyreacko-re-edicted-drugwars-development-continues-20190310t120526129z
categorydrugwars
json_metadata{"app":"partiko","client":"android"}
created2019-03-10 12:05:27
last_update2019-03-10 12:05:27
depth1
children1
net_rshares0
last_payout2019-03-17 12:05:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length135
author_reputation3,170,378,477,762
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@edicted ·
probably not.
the only reason I'm playing is I got in early and am making a profit.
those days are gone for new players
👍  
properties (23)
post_id71,201,318
authoredicted
permlinkre-johneyreacko-johneyreacko-re-edicted-drugwars-development-continues-20190310t181608001z
categorydrugwars
json_metadata{"tags":["drugwars"],"app":"steemit\/0.1"}
created2019-03-10 18:16:09
last_update2019-03-10 18:16:09
depth2
children0
net_rshares15,893,424,584
last_payout2019-03-17 18:16:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length119
author_reputation171,132,830,416,177
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@rakeshsaha ·
i like and love gaming.....
properties (22)
post_id71,198,347
authorrakeshsaha
permlinkre-edicted-drugwars-development-continues-20190310t170314071z
categorydrugwars
json_metadata{"tags":["drugwars"],"app":"steemit\/0.1"}
created2019-03-10 17:03:18
last_update2019-03-10 17:03:18
depth1
children0
net_rshares0
last_payout2019-03-17 17:03:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length27
author_reputation122,086,225,405
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@sultana ·
really very informative post....
I read this post.
properties (22)
post_id71,198,453
authorsultana
permlinkre-edicted-drugwars-development-continues-20190310t170617841z
categorydrugwars
json_metadata{"tags":["drugwars"],"app":"steemit\/0.1"}
created2019-03-10 17:06:24
last_update2019-03-10 17:06:24
depth1
children1
net_rshares0
last_payout2019-03-17 17:06:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length50
author_reputation169,824,365,246
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@k0wsk1 ·
:P
properties (22)
post_id71,587,360
authork0wsk1
permlinkre-sultana-re-edicted-drugwars-development-continues-20190317t041635779z
categorydrugwars
json_metadata{"tags":["drugwars"],"app":"steemit\/0.1"}
created2019-03-17 04:16:33
last_update2019-03-17 04:16:33
depth2
children0
net_rshares0
last_payout2019-03-24 04:16:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2
author_reputation17,025,940,490,861
root_title"DrugWars: Development Continues"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000