From 2b357fbb9d3c040d2973d1312bc0d152cac73ce1 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Sat, 10 Jan 2026 00:00:52 +0300 Subject: [PATCH] Move canUsePower docs to the right place (#8903) --- files/lua_api/openmw/types.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/files/lua_api/openmw/types.lua b/files/lua_api/openmw/types.lua index 0d1dbc707a..2d2d6d5293 100644 --- a/files/lua_api/openmw/types.lua +++ b/files/lua_api/openmw/types.lua @@ -329,12 +329,6 @@ -- @param #any recordOrId A record or string record ID. Valid records are @{openmw.core#Spell}, enchanted @{#Item}, @{#IngredientRecord}, or @{#PotionRecord}. -- @return true if spell is active, false otherwise ---- --- If true, the actor has not used this power in the last 24h. Will return true for powers the actor does not have. --- @function [parent=#ActorActiveSpells] canUsePower --- @param self --- @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}). -- @function [parent=#ActorActiveSpells] remove @@ -384,7 +378,7 @@ -- @param openmw.core#GameObject actor -- @return #ActorSpells ---- List of spells with additional functions add/remove/clear (modification are allowed only in global scripts or on self). +--- List of spells (modifications are only allowed in global scripts or on self). -- @type ActorSpells -- @usage -- print available spells -- local mySpells = types.Actor.spells(self) @@ -422,6 +416,12 @@ -- @function [parent=#ActorSpells] clear -- @param self +--- +-- If true, the actor has not used this power in the last 24h. Will return true for powers the actor does not have. +-- @function [parent=#ActorSpells] canUsePower +-- @param self +-- @param #any spellOrId A @{openmw.core#Spell} or string record ID. + --- Values affect how much each attribute can be increased at level up, and are all reset to 0 upon level up. -- @type SkillIncreasesForAttributeStats -- @field #number agility Number of contributions to agility for the next level up.