Bassani Posted April 8, 2022 Share Posted April 8, 2022 (edited) I was creating a mod to edit as wigfrid's skill and wanted to change the mechanics of how her lifesteal works a little bit. In this case the damage would be simpler, but I wanted the damage to occur (the damage would be simpler, but I wanted the damage to occur simpler, still not how getting the damage would be total, that I just wanted to put. Any idea how I could do this? . Edited April 22, 2022 by Bassani Link to comment https://forums.kleientertainment.com/forums/topic/138941-solved-how-to-get-full-damage-dealt-to-a-mob/ Share on other sites More sharing options...
Bassani Posted April 8, 2022 Author Share Posted April 8, 2022 Ahh sorry for my silly question, I already found the answer, I was reading the file "combat.lua" and I found a function called ":CalcDamage" and I replaced the line of the variable "damage" with this line and I solved the problem. local damage = inst.components.combat:CalcDamage(data.target, data.weapon) or inst.components.combat.defaultdamage Link to comment https://forums.kleientertainment.com/forums/topic/138941-solved-how-to-get-full-damage-dealt-to-a-mob/#findComment-1556155 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now