Open velhbxtyrj opened 6 years ago
Very good :).
Thanks! I'll take a look on that commit.
Combat system is ready to be digested.
There are
army
class (w/o hero now)fns
for utility functionscombat
objectcombat-factory
to supply data for calculator in proper formatThe 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
Thanks a lot :)!
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.