1- why is the bottle lightning a negative debuff if it's not mentioned in the description that It has ant debuff?
2-What's the order of operations in the stadistics? From top to button? Why there are relics that have a plus Numbers but also a multiplication? If I do every operation from top to bottom (aditions first then multiplication and then the rest) then It gives 14.67... is that okay but rounded up? Is It rounded or is It just the higher int (like 1.1 becomes 2)?? I think this should be clearer.
3- what do the Numbers in brackets means?
#What is this math?
19 messages · Page 1 of 1 (latest)
I dont know about the rest but bottled lightning when you hit something makes your damage go wayy down. then if you hold it(have it chambered in crossbow) the dmg goes up until it goes past it's original damage.
Although i am curious about the other math and stuff
i think the damage rounds normally
if .5 and above round up to 1 if not round down to 0
and addition should normally be after multiplication because PEMDAS/BODMAS
actually
after doing the math
i think the dmg is floored
cause doing the math (accounting for order of operations) i got 15.87 so we'll never know until a dev says something
yeah but today I got 15.7 and it was rounded to 16... I can't find a pattern and a lot of times math doesn't make much sense. It should be explained somewhere
yeah that's why i don't really check the specific s of it and just go with what i know
The numbers in the brackets is how much damage this specific relic adds. For example in the image you provided:
Foam bat has a 1.15x multiplier and a 2 damage add, so
Base damage + cracked mirror + foam bat = 12 damage
Now foam bats multiplier does
12 * foam bat multiplier (1.15x) = 13.8
and
13.8 - 12 = 1.8
That's why it shows 1.8 in the brackets
Now we do
13.8 * cracked mirror multiplier = 15.87
And
15.87 - 13.8 = 2.07 (2.1 rounded)
Then bottled lightning removed 1.2 damage so we get 14.67 which is 15 rounded up. (We round to the nearest integer)
The order of operations is from top to bottom and only includes the values above it. That's because there are stats that change values, but also some relics like bottled lightning have their own calculations in their code and run after all the stat calculation is done.
I understand, but why does the lightning bottle rest damage if that relic is supposed to add damange, not lower It?
It only lowers damage if it is not charged up. It's a gradual increase. If it also shows that lower value when it is charged, then that's a bug
So It starts lowering the damage and as it's charged starts increasing It over the original value?
Exactly
Great, thanks for all the info guys 💖
It kinda changes the playstyle for that weapon to "slow but more powerful"