Jump to content

Recommended Posts

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?

.MOD.thumb.png.049466b613af999610f302edc3e9c261.png

Edited by Bassani

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

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...