OpenDAoC / OpenDAoC-Core

OpenDAoC is a free Dark Age of Camelot server emulator
https://www.opendaoc.com
GNU General Public License v3.0
33 stars 21 forks source link

Fix Rain of Fire|Ice|Annihilation doing 1-3 damage (#189) #2

Closed bm01 closed 2 years ago

bm01 commented 2 years ago

https://bug.atlasfreeshard.com/issues/189

Based on GetDamageAddAmount() in AtlasOF_FuryOfTheGods, it looks like 30% extra damage for example should be written 30.0 instead of 1.3. This fixes that. Also confirmed by the original code which did DPS_AF * SPD_ABS * 0.1 * 0.1 * Level * 0.1. Both DPS_AF and SPD_ABS are integers and I believe a 16.5 DPS is actually 165, 4.3 speed is actually 43. So with that weapon and a level 3 RA, it gave 21.285, not 1.21285.

I got triggered by the amount of copy pasted code so I tried to reduce it. Double check I didn't break anything, or just close the pull request and only fix the three GetDamageAddAmount(), I'm fine both ways.

Also fixed RA cost.