Added soulValue to creatureRecord, added documentation

cxxopts_mwiniimporter_ci_debug
Tobias Tribble 1 year ago
parent 2e45c80ac2
commit b52ab04c43

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

@ -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

Loading…
Cancel
Save