[DiscordArchive] Well is your source different than the one compiled in the worldserver.exe?
[DiscordArchive] Well is your source different than the one compiled in the worldserver.exe?
Archived author: Luka • Posted: 2019-06-05T13:40:16.312000+00:00
Original source
Also why are you doing
```cpp
// if the multiplier is 1 it's going to return damage * 1 either way which is damage, this if check is purposeless
if (damageMultiplier == 1)
return damage;
// just leave this if you're not passing damage as reference or use the example above if you convert to passing it as a ref
return damage * damageMultiplier;```
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:40:54.346000+00:00
Original source
to save some calculation time? if configs are set 1, it will just skip the checks bellow
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:42:00.263000+00:00
Original source
oh wait lol
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:44:20.097000+00:00
Original source
that was suppose to be right after the configs and if configs
```cpp
if (mod_damage_normal == 1 && mod_damage_elite == 1 && mod_damage_eliterare == 1 && mod_damage_boss == 1 && mod_damage_rare == 1)
return damage;
```
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:44:23.845000+00:00
Original source
that is what that should be
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:44:28.507000+00:00
Original source
above all checks
Archived author: Luka • Posted: 2019-06-05T13:44:30.487000+00:00
Original source
An if is more resource heavy than a multiplication
Archived author: Luka • Posted: 2019-06-05T13:44:44.852000+00:00
Original source
In most cases
Archived author: Luka • Posted: 2019-06-05T13:45:22.616000+00:00
Original source
I don't understand the if you sent above
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:45:45.764000+00:00
Original source
well it is still unordered script