Changes between Initial Version and Version 1 of Ticket #3600, comment 7


Ignore:
Timestamp:
Feb 17, 2016, 7:16:35 PM (8 years ago)
Author:
Palaxin

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3600, comment 7

    initial v1  
    88* '''Scenario A:''' We haven't built a blacksmith but a fortress and researched "Will to fight". +25% damage means our soldier now has 10.0 + 10.0*0.25 = 12.5 hack damage. The description is correct in this context. Now we build our blacksmith and research "Side Arms". The description says "+'''20%''' melee infantry attack". But in the current implementation we would get 12.5 + 10.0*0.2 = 14.5 hack damage so the increase is 2.0/12.5 = 0.16 = '''16%''' and NOT 20%.
    99* '''Scenario B:''' Now we do it the other way round. "Side Arms" yields 10.0 + 10.0*0.2 = 12.0 hack damage, and this time the description is correctly saying +20%. Adding "Will to fight" yields 12.0 + 10.0*0.25 = 14.5 hack damage, but is lying saying "+'''25%'''" because in fact we have 2.5/12.0 = '''20.833%''' increase.
    10 '''The problem''' is that you can't make the description correct, you can only fit it to a special scenario.
     10'''The problem''' is that you can't always make the description correct, you can only fit it to a special scenario.
    1111It is '''solved''' when you always multiply the current value and not the base value. 10.0 + 10.0*0.25 = 12.5 (25% increase). 12.5 + 12.5*0.2 = 15.0 (20% increase). This yields the same % values as the other way round. 10.0 + 10.0*0.2 = 12.0 (20% increase). 12.0 + 12.0*0.25 = 15.0 (25% increase).
    1212I hope this example is helpful.