Sticker: Difference between revisions

14 bytes removed ,  1 year ago
→‎Power-ups: Using math extension.
(→‎Power-ups: Using math extension.)
Line 48: Line 48:
The formula for the damage multiplier is:
The formula for the damage multiplier is:


[[File:StickerAttackFormula.svg|125px|class=invert]]
<big><big><math>r={v \over 80}+1</math></big></big>


[Specials: Indirect] Attack is an exception and uses:
[Specials: Indirect] Attack is an exception and uses:


[[File:StickerIndirectAttackFormula.svg|125px|class=invert]]
<big><big><math>r={v \over 40}+1</math></big></big>


Where '''v''' is the value given by the sticker description and '''r''' is the damage multiplier; '''r''' cannot be greater than 25.675, though this can't be reached without hacking. For example, a sticker with a value of 20 will deal 1.25× damage compared to base damage. Note, in the code the sticker's value is cut in half and rounded down, resulting in every odd number being the exact same as the even number before it (e.g. 3=2, 25=24, etc.).
Where '''v''' is the value given by the sticker description and '''r''' is the damage multiplier; '''r''' cannot be greater than 25.675, though this can't be reached without hacking. For example, a sticker with a value of 20 will deal 1.25× damage compared to base damage. Note, in the code the sticker's value is cut in half and rounded down, resulting in every odd number being the exact same as the even number before it (e.g. 3=2, 25=24, etc.).
Line 116: Line 116:
The formula for damage reduction is:
The formula for damage reduction is:


[[File:StickerResistanceFormula.svg|125px|class=invert]]
<big><big><math>r=-{v \over 80}+1</math></big></big>


Where '''v''' is the value given by the sticker description and '''r''' is the damage multiplier. For example, a sticker with a reduction of 20 will cause attacks to be scaled to 0.75 of the original damage, or a damage reduction of 25%. Note, in the code the sticker's value is cut in half and rounded down, resulting in every odd number being the exact same as the even number before it (e.g. 3=2, 25=24, etc.).  
Where '''v''' is the value given by the sticker description and '''r''' is the damage multiplier. For example, a sticker with a reduction of 20 will cause attacks to be scaled to 0.75 of the original damage, or a damage reduction of 25%. Note, in the code the sticker's value is cut in half and rounded down, resulting in every odd number being the exact same as the even number before it (e.g. 3=2, 25=24, etc.).  
6,443

edits