1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00

Merge branch 'creature_record_soul' into 'master'

Add soulValue to creatureRecord lua bindings

See merge request OpenMW/openmw!2980
This commit is contained in:
psi29a 2023-04-26 19:26:45 +00:00
commit 0697c73455
2 changed files with 2 additions and 1 deletions

View File

@ -38,5 +38,6 @@ namespace MWLua
[](const ESM::Creature& rec) -> std::string { return rec.mScript.serializeText(); });
record["baseCreature"] = sol::readonly_property(
[](const ESM::Creature& rec) -> std::string { return rec.mOriginal.serializeText(); });
record["soulValue"] = sol::readonly_property([](const ESM::Creature& rec) -> int { return rec.mData.mSoul; });
}
}

View File

@ -518,7 +518,7 @@
-- @field #string baseCreature Record id of a base creature, which was modified to create this one
-- @field #string model VFS path to the creature's model
-- @field #string mwscript
-- @field #string soulValue The soul value of the creature record
--- @{#NPC} functions