mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Add duration to core.MagicEffectWithParams
This commit is contained in:
parent
428642d2cf
commit
3e52971a13
2 changed files with 3 additions and 0 deletions
|
@ -284,6 +284,8 @@ namespace MWLua
|
|||
= sol::readonly_property([](const ESM::ENAMstruct& params) -> int { return params.mMagnMin; });
|
||||
effectParamsT["magnitudeMax"]
|
||||
= sol::readonly_property([](const ESM::ENAMstruct& params) -> int { return params.mMagnMax; });
|
||||
effectParamsT["duration"]
|
||||
= sol::readonly_property([](const ESM::ENAMstruct& params) -> int { return params.mDuration; });
|
||||
|
||||
// MagicEffect record
|
||||
auto magicEffectT = context.mLua->sol().new_usertype<ESM::MagicEffect>("ESM3_MagicEffect");
|
||||
|
|
|
@ -643,6 +643,7 @@
|
|||
-- @field #number area
|
||||
-- @field #number magnitudeMin
|
||||
-- @field #number magnitudeMax
|
||||
-- @field #number duration
|
||||
|
||||
---
|
||||
-- @type ActiveEffect
|
||||
|
|
Loading…
Reference in a new issue