mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
Merge branch 'lua_magic_duration' into 'master'
Add duration to core.MagicEffectWithParams See merge request OpenMW/openmw!3138
This commit is contained in:
commit
7cbcf5ba3e
@ -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…
x
Reference in New Issue
Block a user