edicted Blog Banner

edicted

DrugWars: Development Continues

drugwars.jpg

@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

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!


Return from DrugWars: Development Continues to edicted's Web3 Blog

DrugWars: Development Continues was published on and last updated on 10 Mar 2019.