From 112dfcaf8c4a4e8145ed13481258ce0fea52372d Mon Sep 17 00:00:00 2001 From: Zackhasacat Date: Fri, 3 May 2024 18:49:14 -0500 Subject: [PATCH] Some fixes, and a broken change --- files/lua_api/openmw/types.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua index a92df7aa46..473d1ef60a 100644 --- a/files/lua_api/openmw/types.lua +++ b/files/lua_api/openmw/types.lua @@ -315,7 +315,7 @@ -- @param #any spellOrId A @{openmw.core#Spell} or string record id. --- --- Remove an active spell based on active spell ID (see @{openmw.core#ActiveSpell.activeSpellId}). Can only be used in global scripts or on self. Can only be used to remove spells with the temporary flag set (see @{openmw.core#ActiveSpell.temporary}). +-- Remove an active spell based on active spell ID (see @{openmw.core#(ActiveSpell).activeSpellId}). Can only be used in global scripts or on self. Can only be used to remove spells with the temporary flag set (see @{openmw.core#(ActiveSpell).temporary}). -- @function [parent=#ActorActiveSpells] remove -- @param self -- @param #any id Active spell ID. @@ -1318,7 +1318,7 @@ -- --This is the new record we want to create, with a record provided as a template. -- local recordDraft = types.Armor.createRecordDraft(armorTable)--Need to convert the table into the record draft -- local newRecord = world.createRecord(recordDraft)--This creates the actual record --- world.createObject(newRecord):moveInto(playerActor)--Create an instance of this object, and move it into the player's inventory +-- world.createObject(newRecord.id):moveInto(playerActor)--Create an instance of this object, and move it into the player's inventory --- @{#Book} functions @@ -1457,7 +1457,7 @@ -- --This is the new record we want to create, with a record provided as a template. -- local recordDraft = types.Clothing.createRecordDraft(clothingTable)--Need to convert the table into the record draft -- local newRecord = world.createRecord(recordDraft)--This creates the actual record --- world.createObject(newRecord):moveInto(playerActor)--Create an instance of this object, and move it into the player's inventory +-- world.createObject(newRecord.id):moveInto(playerActor)--Create an instance of this object, and move it into the player's inventory --- -- @type ClothingRecord