Skip to content

Commit 9bc9428

Browse files
committed
Merge branch 'descriptive' into 'master'
Expose magic effect description See merge request OpenMW/openmw!5257
2 parents 7b210c9 + 5009bae commit 9bc9428

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ message(STATUS "Configuring OpenMW...")
8282
set(OPENMW_VERSION_MAJOR 0)
8383
set(OPENMW_VERSION_MINOR 51)
8484
set(OPENMW_VERSION_RELEASE 0)
85-
set(OPENMW_LUA_API_REVISION 125)
85+
set(OPENMW_LUA_API_REVISION 126)
8686
set(OPENMW_POSTPROCESSING_API_REVISION 5)
8787

8888
set(OPENMW_VERSION_COMMITHASH "")

apps/openmw/mwlua/magictypebindings.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ namespace MWLua
391391
Types::addFlagProperty(record, "negativeLight", ESM::MagicEffect::NegativeLight, &ESM::MagicEffect::mData,
392392
&ESM::MagicEffect::MEDTstruct::mFlags);
393393
Types::addProperty(record, "speed", &ESM::MagicEffect::mData, &ESM::MagicEffect::MEDTstruct::mSpeed);
394+
Types::addProperty(record, "description", &ESM::MagicEffect::mDescription);
394395
}
395396
}
396397

@@ -535,6 +536,8 @@ namespace MWLua
535536
setFlagProperty(rec, "negativeLight", effect.mData.mFlags, ESM::MagicEffect::NegativeLight);
536537
if (rec["speed"] != sol::nil)
537538
effect.mData.mSpeed = rec["speed"];
539+
if (rec["description"] != sol::nil)
540+
effect.mDescription = rec["description"];
538541
return effect;
539542
}
540543
}

files/lua_api/openmw/core.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
-- @field #boolean temporary If set, this spell effect is temporary and should end on its own. Either after a single application or after its duration has run out.
373373
-- @field #boolean affectsBaseValues If set, this spell affects the base values of affected stats, rather than modifying current values.
374374
-- @field #boolean stackable If set, this spell can be applied multiple times. If not set, the same spell can only be applied once from the same source (where source is determined by caster + item). In vanilla rules, consumables are stackable while spells and enchantments are not.
375-
-- @field #number activeSpellId A number uniquely identifying this active spell within the affected actor's list of active spells.
375+
-- @field #string activeSpellId Uniquely identifies this active spell within the affected actor's list of active spells.
376376
-- @field #list<#ActiveSpellEffect> effects The active effects (@{#ActiveSpellEffect}) of this spell.
377377

378378
---
@@ -753,6 +753,7 @@
753753
-- @field #string id Effect ID
754754
-- @field #string icon Effect Icon Path
755755
-- @field #string name Localized name of the effect
756+
-- @field #string description Localized description of the effect
756757
-- @field #string school Skill ID that is this effect's school
757758
-- @field #number baseCost
758759
-- @field openmw.util#Color color

0 commit comments

Comments
 (0)