Talk:Power/@comment-82.14.72.24-20190211142923

After examining both conf.js and app.js Plus some email discussions with Hooligapps, I'm pretty sure I have worked out how the event multiplier, gem buffers and set card multipliers are applied to basic ATT and HP calcs.

Because event multipliers and set card multipliers are layered (i.e: not applied in the same calculation), It's easier to explain as a three stage calculation (see below). Also, I have tried applying the stages in different sequences and it only seems to work in this order, otherwise you get rounding errors and incorrect values.

(1) Calculate ATT and HP values from Base Values (listed in conf.js file) making adjustment for Stars & Levels

Attack 1 = ceil [baseAttack * (Stars + 0.15 * Levels)]

HP 1 = ceil [baseHP * (Stars + 0.15 * Levels)]

This is the basic calc that everyone seems familiar with.

2) Apply Temporary Event Bonus and Gem Buffers (if applicable)

Attack2 = ceil [Attack1 * (multE + 1)] + Gem 1 + Gem 2

HP2 = ceil [HP1 * (multE +1)] + Gem 1 + Gem 2

So, in the case of a 200% event multiplier, multE = 2

3) Calculate Set Card Bonus

ATTACK = Floor [Attack2 * (multS + 1)]

HEALTH = Floor [HP2 * (multS + 1)]

So, in the case of a 25% Set card multiplier, multS = 0.25

Hope that clarifies stuff for people. Someone else who's better at maths can work out a single equation for this, but I find it easier to work out using the three stages above.