Sharing the most basic physical damage formula that comes with the tool.
[Physical damage - basic]
USER.STR.MAX * 2 - TGT.DEF.MAX
Meaning:
- USER.STR.MAX = attacker's STR (max including equipment & states)
- TGT.DEF.MAX = target's DEF
- Damage = 2 * attacker STR - target DEF
[Variation: add randomness]
USER.STR.MAX * 2 - TGT.DEF.MAX + randi() % 10 - 5
[Variation: berserk based on HP ratio]
USER.STR.MAX * (3 - USER.HP.RATE * 2) - TGT.DEF.MAX
Please share your own formula ideas too!
Sample damage formula (basic physical attack)
-
#1 ponApp 公式 ID: official