iopietro / Travianz-Legacy

Join our Discord Server: https://discordapp.com/invite/9fbJKP9 | New repo: https://github.com/iopietro/Travianz
GNU General Public License v3.0
160 stars 94 forks source link

The battle formula does not work properly #450

Open velhbxtyrj opened 6 years ago

velhbxtyrj commented 6 years ago

Please review the code in which the bonuses for the troops are summed up from the hero and from the Blacksmith and Armoury. According to my calculations, these bonuses are not taken into account.

There is a possibility that I made improvements through the admin panel. But it is unlikely that the problem arose because of this.

iopietro commented 6 years ago

Very good :).

Thanks! I'll take a look on that commit.

kirilloid commented 6 years ago

Combat system is ready to be digested.

There are

The quirky logic for rams with two stages is here.

BTW if you wonder how earlyRamTable looks like, here's a graph for lines 10, 15 and 20. Except on this graph 0Y numbers are 4 times less than in the code, because of 4 in "D = 4σ∙C – ½" (you can see it in comments in fns

rams points

iopietro commented 6 years ago

Thanks a lot :)!