mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-28 12:40:06 +00:00
CLEANUP(container): Make organic/respawning field names more consistent
This commit is contained in:
parent
fccf75377d
commit
77fa41b8c6
@ -54,9 +54,9 @@ namespace MWLua
|
||||
record["mwscript"] = sol::readonly_property(
|
||||
[](const ESM::Container& rec) -> std::string { return rec.mScript.serializeText(); });
|
||||
record["weight"] = sol::readonly_property([](const ESM::Container& rec) -> float { return rec.mWeight; });
|
||||
record["organic"] = sol::readonly_property(
|
||||
record["isOrganic"] = sol::readonly_property(
|
||||
[](const ESM::Container& rec) -> bool { return rec.mFlags & ESM::Container::Organic; });
|
||||
record["respawns"] = sol::readonly_property(
|
||||
record["isRespawning"] = sol::readonly_property(
|
||||
[](const ESM::Container& rec) -> bool { return rec.mFlags & ESM::Container::Respawn; });
|
||||
}
|
||||
}
|
||||
|
@ -2109,8 +2109,8 @@
|
||||
-- @field #string model VFS path to the model
|
||||
-- @field #string mwscript MWScript on this container (can be empty)
|
||||
-- @field #number weight capacity of this container
|
||||
-- @field #boolean organic Whether items can be placed in the container
|
||||
-- @field #boolean respawns Whether the container respawns its contents
|
||||
-- @field #boolean isOrganic Whether items can be placed in the container
|
||||
-- @field #boolean isRespawning Whether the container respawns its contents
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- @{#Door} functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user