summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvil Eye <malusluminis@hotmail.com>2024-02-27 21:57:01 +0100
committerEvil Eye <malusluminis@hotmail.com>2024-02-27 21:57:01 +0100
commitf346295975e29c2c6640878e4a048ad4158e385c (patch)
tree41cbb5f778d2150030fc607f6a8f3a10978a6c2c
parentcd118ee2639c120ae7c5acb54d03adbb72a31b67 (diff)
Add a number-per-sex type
-rw-r--r--files/lua_api/openmw/types.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua
index d085b355c8..60f3e79628 100644
--- a/files/lua_api/openmw/types.lua
+++ b/files/lua_api/openmw/types.lua
@@ -981,13 +981,18 @@
-- @field #list<#string> spells A read-only list containing the ids of all spells inherent to the race
-- @field #bool isPlayable True if the player can pick this race in character generation
-- @field #bool isBeast True if this race is a beast race
--- @field #map<#string, #number> height A read-only table with male and female fields
--- @field #map<#string, #number> weight A read-only table with male and female fields
--- @field #map<#string, #map<#string, #number>> attributes A read-only table of attribute ID to male and female base values
+-- @field #GenderedNumber height Height values
+-- @field #GenderedNumber weight Weight values
+-- @field #map<#string, #GenderedNumber> attributes A read-only table of attribute ID to base value
-- @usage -- Get base strength for men
-- strength = types.NPC.races.records[1].attributes.strength.male
---
+-- @type GenderedNumber
+-- @field #number male Male value
+-- @field #number female Female value
+
+---
-- @type NpcRecord
-- @field #string id The record ID of the NPC
-- @field #string name