Code: Select all
local dam_inc_physical = self.inc_damage["PHYSICAL"]
And do I need to check first if there even is such a value, when it equals 0?
Moderator: Moderator
Code: Select all
local dam_inc_physical = self.inc_damage["PHYSICAL"]
You can just add "or 0" at the end for that. I believe that that's what's done in some other places.jenx wrote:And do I need to check first if there even is such a value, when it equals 0?
Code: Select all
self.inc_damage[DamageType.PHYSICAL]