mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-03 01:41:32 +00:00
Use interface in _onSkillUse engine handler.
This commit is contained in:
parent
7755c97fdf
commit
2cfa819ccc
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
local self = require('openmw.self')
|
local self = require('openmw.self')
|
||||||
|
local I = require('openmw.interfaces')
|
||||||
local types = require('openmw.types')
|
local types = require('openmw.types')
|
||||||
local core = require('openmw.core')
|
local core = require('openmw.core')
|
||||||
local NPC = require('openmw.types').NPC
|
local NPC = require('openmw.types').NPC
|
||||||
|
@ -263,5 +264,10 @@ return {
|
||||||
Trainer = 'trainer',
|
Trainer = 'trainer',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
engineHandlers = { _onSkillUse = skillUsed },
|
engineHandlers = {
|
||||||
|
_onSkillUse = function (skillid, useType, scale)
|
||||||
|
-- Use the interface here so any overrides of skillUsed will receive the call.
|
||||||
|
I.SkillProgression.skillUsed(skillid, useType, scale)
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue