1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-18 17:46:42 +00:00

Merge branch 'fix_docs' into 'master'

Fix some errors in Lua docs

See merge request OpenMW/openmw!4725
This commit is contained in:
psi29a 2025-06-23 06:52:12 +00:00
commit d49a42037a
2 changed files with 11 additions and 11 deletions

View file

@ -635,7 +635,7 @@
-- @usage local spell = core.magic.spells.records[1] -- get by index -- @usage local spell = core.magic.spells.records[1] -- get by index
-- @usage -- Print all powers -- @usage -- Print all powers
-- for _, spell in pairs(core.magic.spells.records) do -- for _, spell in pairs(core.magic.spells.records) do
-- if spell.types == core.magic.SPELL_TYPE.Power then -- if spell.type == core.magic.SPELL_TYPE.Power then
-- print(spell.name) -- print(spell.name)
-- end -- end
-- end -- end

View file

@ -808,8 +808,8 @@
-- A read-only list of all @{#CreatureRecord}s in the world database, may be indexed by recordId. -- A read-only list of all @{#CreatureRecord}s in the world database, may be indexed by recordId.
-- Implements [iterables#List](iterables.html#List) of #CreatureRecord. -- Implements [iterables#List](iterables.html#List) of #CreatureRecord.
-- @field [parent=#Creature] #list<#CreatureRecord> records -- @field [parent=#Creature] #list<#CreatureRecord> records
-- @usage local record = types.NPC.classes['example_recordid'] -- @usage local creature = types.Creature.records['creature id'] -- get by id
-- @usage local record = types.NPC.classes[1] -- @usage local creature = types.Creature.records[1] -- get by index
--- ---
-- Whether the object is a creature. -- Whether the object is a creature.
@ -876,8 +876,8 @@
-- A read-only list of all @{#NpcRecord}s in the world database, may be indexed by recordId. -- A read-only list of all @{#NpcRecord}s in the world database, may be indexed by recordId.
-- Implements [iterables#List](iterables.html#List) of #NpcRecord. -- Implements [iterables#List](iterables.html#List) of #NpcRecord.
-- @field [parent=#NPC] #map<#NpcRecord> records -- @field [parent=#NPC] #map<#NpcRecord> records
-- @usage local record = types.NPC.classes['example_recordid'] -- @usage local npc = types.NPC.records['npc id'] -- get by id
-- @usage local record = types.NPC.classes[1] -- @usage local npc = types.NPC.records[1] -- get by index
--- ---
-- Whether the object is an NPC or a Player. -- Whether the object is an NPC or a Player.
@ -1048,8 +1048,8 @@
-- A read-only list of all @{#ClassRecord}s in the world database, may be indexed by recordId. -- A read-only list of all @{#ClassRecord}s in the world database, may be indexed by recordId.
-- Implements [iterables#List](iterables.html#List) of #ClassRecord. -- Implements [iterables#List](iterables.html#List) of #ClassRecord.
-- @field [parent=#Classes] #list<#ClassRecord> records -- @field [parent=#Classes] #list<#ClassRecord> records
-- @usage local record = types.NPC.classes['example_recordid'] -- @usage local class = types.NPC.classes.records['class id'] -- get by id
-- @usage local record = types.NPC.classes[1] -- @usage local class = types.NPC.classes.records[1] -- get by index
--- ---
-- Returns a read-only @{#ClassRecord} -- Returns a read-only @{#ClassRecord}
@ -1088,8 +1088,8 @@
-- A read-only list of all @{#RaceRecord}s in the world database. -- A read-only list of all @{#RaceRecord}s in the world database.
-- Implements [iterables#List](iterables.html#List) of #RaceRecord. -- Implements [iterables#List](iterables.html#List) of #RaceRecord.
-- @field [parent=#Races] #list<#RaceRecord> records -- @field [parent=#Races] #list<#RaceRecord> records
-- @usage local record = types.NPC.classes['example_recordid'] -- @usage local race = types.NPC.races.records['race id'] -- get by id
-- @usage local record = types.NPC.classes[1] -- @usage local race = types.NPC.races.records[1] -- get by index
--- ---
-- Returns a read-only @{#RaceRecord} -- Returns a read-only @{#RaceRecord}
@ -1275,8 +1275,8 @@
-- A read-only list of all @{#BirthSignRecord}s in the world database. -- A read-only list of all @{#BirthSignRecord}s in the world database.
-- Implements [iterables#List](iterables.html#List) of #BirthSignRecord. -- Implements [iterables#List](iterables.html#List) of #BirthSignRecord.
-- @field [parent=#BirthSigns] #list<#BirthSignRecord> records -- @field [parent=#BirthSigns] #list<#BirthSignRecord> records
-- @usage local record = types.NPC.classes['example_recordid'] -- @usage local birthSign = types.Player.birthSigns.records['birthsign id'] -- get by id
-- @usage local record = types.NPC.classes[1] -- @usage local birthSign = types.Player.birthSigns.records[1] -- get by index
--- ---
-- Returns a read-only @{#BirthSignRecord} -- Returns a read-only @{#BirthSignRecord}