mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 12:39:59 +00:00
Use interface in _onSkillUse engine handler.
This commit is contained in:
parent
7755c97fdf
commit
2cfa819ccc
@ -1,4 +1,5 @@
|
||||
local self = require('openmw.self')
|
||||
local I = require('openmw.interfaces')
|
||||
local types = require('openmw.types')
|
||||
local core = require('openmw.core')
|
||||
local NPC = require('openmw.types').NPC
|
||||
@ -263,5 +264,10 @@ return {
|
||||
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…
x
Reference in New Issue
Block a user