1
0
Fork 0
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:
Zackhasacat 2023-06-14 22:28:45 +00:00 committed by jvoisin
parent 428642d2cf
commit 3e52971a13
2 changed files with 3 additions and 0 deletions

View file

@ -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");

View file

@ -643,6 +643,7 @@
-- @field #number area
-- @field #number magnitudeMin
-- @field #number magnitudeMax
-- @field #number duration
---
-- @type ActiveEffect