From ac7cc4c9eac92ab6875db1fbba8054f137ffe364 Mon Sep 17 00:00:00 2001 From: ComeBESNIER Date: Sun, 23 Nov 2025 09:16:55 +0000 Subject: [PATCH 1/2] Update file events.rst --- docs/source/reference/lua-scripting/events.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/reference/lua-scripting/events.rst b/docs/source/reference/lua-scripting/events.rst index b49e293744..fa72c9216f 100644 --- a/docs/source/reference/lua-scripting/events.rst +++ b/docs/source/reference/lua-scripting/events.rst @@ -133,7 +133,7 @@ Example: if item then -- Reduce condition by 1 -- Note that actor should be included, if applicable, to allow forcibly unequipping items whose condition is reduced to 0 - core:sendGlobalEvent('ModifyItemCondition', {actor = self, item = item, amount: -1}) + core.sendGlobalEvent('ModifyItemCondition', {actor = self, item = item, amount= -1}) end UI events From ec81e3b4a6f67ef7248060ef147a2cc9717e86b4 Mon Sep 17 00:00:00 2001 From: ComeBESNIER Date: Sun, 23 Nov 2025 13:42:05 +0000 Subject: [PATCH 2/2] Edit events.rst Add a space between `amount` and `=` for stylistical reasons. --- docs/source/reference/lua-scripting/events.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/reference/lua-scripting/events.rst b/docs/source/reference/lua-scripting/events.rst index fa72c9216f..ec46b9104c 100644 --- a/docs/source/reference/lua-scripting/events.rst +++ b/docs/source/reference/lua-scripting/events.rst @@ -133,7 +133,7 @@ Example: if item then -- Reduce condition by 1 -- Note that actor should be included, if applicable, to allow forcibly unequipping items whose condition is reduced to 0 - core.sendGlobalEvent('ModifyItemCondition', {actor = self, item = item, amount= -1}) + core.sendGlobalEvent('ModifyItemCondition', {actor = self, item = item, amount = -1}) end UI events