FutureShockco / drugwars.io

The drugs are virtual, but the money is real
https://drugwars.io
32 stars 15 forks source link

Unpredictable triggering of skills for units #107

Open pjd79 opened 5 years ago

pjd79 commented 5 years ago

Expected behavior

the ninjas must dodge whatever the number they are.

Actual behavior

Here is the first round of a fight between 18 ninja dodge the shoots of 50 swat unit.

[A] ninja (1) dodged 5935 DMG.

[A] ninja (1) dodged 5935 DMG.

[D] (1) with 50 x swat with 14000 HP take 1420 DMG from [A] (1) with 3 x ninja "dodge". [D] (1) 44 x swat are left.

The same first round bettween 20 ninja and 50 swat:

[A] (1) with 20 x ninja with 6000 HP take 5935 DMG from [D] (1) with 50 x swat "multiplehit". [A] (1) 0 x ninja are left.

[D] (1) with 50 x swat with 14000 HP take 1580 DMG from [A] (1) with 4 x ninja "dodge". [D] (1) 44 x swat are left.

what is surprising is that with more ninjas in combat, the fight is even more unfavorable to them than with 2 less ninjas

Steps to reproduce the behavior

Make a fight in the simulator between 18 ninjas and 50 swat and 20 ninjas and 50 swat

pjd79 commented 5 years ago

This also seems valid for the skills of the other units. I noticed a bug in triggering the mercenary's bulletproof skill that was also triggered unpredictably

pjd79 commented 5 years ago

This is also the case for bouncers. You can find situations where adding more bouncers reduces the number of surviving bouncers due to non-activation of the shield talents. Two line of one fight against the same army, and only changing bouncers quantity. With 900 bouncers ( last attack from the defending army):

[A] bouncer (1) used his (1) shield. [A] (1) with 784 x bouncer with 125519 HP take 7677 DMG from [D] (4) with 40 x elitesniper "criticalhit". [A] (1) 841 x bouncer are left.

With 925 bouncers:

[A] (1) with 809 x bouncer with 113339 HP take 7677 DMG from [D] (4) with 40 x elitesniper "criticalhit". [A] (1) 754 x bouncer are left.

To resimulate the same fight, it's a batttle between 900 or 925 bouncers, 4 big Mamas, 18 ninja, 70 bazookas against 135 policeman, 68 boduguard, 56 swat and 40 elite sniper