Hello everyone,
I'm trying to implement a system where I can globally modify the attack interval and damage of all monsters through values set in config.lua. The idea is to avoid having to edit each monster individually, and instead apply a global multiplier for both melee and spell attacks.
Something like this in config.lua:
I’d like to know the best way to hook into the monster behavior so I can apply these multipliers dynamically, affecting all monsters’ melee and spell attacks.
Has anyone done something similar or could point me in the right direction (e.g., which part of the source to modify, or how to intercept the attack calculations)?
Thanks in advance!
tfs 1.4
I'm trying to implement a system where I can globally modify the attack interval and damage of all monsters through values set in config.lua. The idea is to avoid having to edit each monster individually, and instead apply a global multiplier for both melee and spell attacks.
Something like this in config.lua:
LUA:
monsterAttackIntervalMultiplier = 1.0
monsterDamageMultiplier = 1.0
Has anyone done something similar or could point me in the right direction (e.g., which part of the source to modify, or how to intercept the attack calculations)?
Thanks in advance!
tfs 1.4
Last edited: