How do u calculate Bonuses? ANSWERED

Here you may find answers to your questions.
Post Reply
Belfry777
Posts: 1681
Joined: Tue Oct 17, 2017 2:34 am

How do u calculate Bonuses? ANSWERED

Post by Belfry777 »

How do you calculate bonuses? 200% + 5 power is = to what? Thanks!
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.
User avatar
COOLguy
Posts: 4005
Joined: Sat Jul 12, 2014 2:58 am
Location: Nenuial, Arnor

Re: Bonuses?

Post by COOLguy »

Belfry777 wrote: Thu Aug 09, 2018 3:21 am How do you calculate bonuses? 200% + 5 power is = to what? Thanks!
200% bonus * 5 power = 10 potential damage - 2 armor = 8 damage dealt
Thanks!
Josh
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Re: Bonuses?

Post by Stratego (dev) »

i was not sure the case Belfry wrote but here is how calculated:

if
- unit has power 5
- and has +200% bonus on a specific target
- target has armor 2

than it will damage:

attack damage: 5 + 2*5 = 15
actual damage(considering armor): 15 - 2 = 13
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: Bonuses?

Post by makazuwr32 »

Exactly.

Code: Select all

Y = X + X*B% - A
Where
Y – Actual damage
X – Base attack
B – Bonus against attacked unit, 0 if no bonus
A – Armor or p.armor of attacked unit
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
User avatar
godOfKings
Posts: 3302
Joined: Fri Sep 22, 2017 4:50 pm

Re: Bonuses?

Post by godOfKings »

Also wen writing jsons with damage modifier, 1 means 100% bonus, 2 is 200%, 0.5 is 50% etc. Before writing a number on the modifier, calculate the effective damage to units in this category first with the equation makazuwr just gave, I hope u at least have knowledge to solve basic algebraic equations
There is no place for false kings here, only those who proves themselves to b the true kings of legend, or serves under me

For I watch over this world looking for those worthy to become kings, and on the way get rid of the fakes and rule over the fools
Belfry777
Posts: 1681
Joined: Tue Oct 17, 2017 2:34 am

Re: Bonuses?

Post by Belfry777 »

Thanks for the help mates! Enemy armor is subtracted from the sum of the bonus?

Is this the formula? Some power + bonus against something - armor

Thanks maka for the coding example!
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.
User avatar
COOLguy
Posts: 4005
Joined: Sat Jul 12, 2014 2:58 am
Location: Nenuial, Arnor

Re: Bonuses?

Post by COOLguy »

Lol yeah my math was bad. Follow the formula
Thanks!
Josh
Belfry777
Posts: 1681
Joined: Tue Oct 17, 2017 2:34 am

Re: Bonuses?

Post by Belfry777 »

Thanks! So if it's a 200% bonus you multiply by 5?
A thousand may fall at your side,
And ten thousand at your right hand;
But it shall not come near you.
Only with your eyes shall you look,
And see the reward of the wicked.
User avatar
General Brave
Posts: 4662
Joined: Thu Oct 19, 2017 3:12 am
Location: The Four Point Military Academy.

Re: Bonuses?

Post by General Brave »

So here is what I think I have learned, regular attack is 5, but if it has 100% bonus against one of the unit. That should be 5+. 200% will be 10.
Wise, Might, Loyalty. Forever stands Warfell.
Post Reply

Return to “FAQ”