From 0fcff20e6c366316ad776f89b6b438770d0a2cf3 Mon Sep 17 00:00:00 2001 From: Nefertumm Date: Wed, 2 Feb 2022 19:44:32 -0300 Subject: [PATCH] docs: add documentation for the last hook change --- GlobalMethods.h | 2 +- Hooks.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GlobalMethods.h b/GlobalMethods.h index 9c7dc90..102917a 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -675,7 +675,7 @@ namespace LuaGlobalFunctions * PLAYER_EVENT_ON_GIVE_XP = 12, // (event, player, amount, victim) - Can return new XP amount * PLAYER_EVENT_ON_LEVEL_CHANGE = 13, // (event, player, oldLevel) * PLAYER_EVENT_ON_MONEY_CHANGE = 14, // (event, player, amount) - Can return new money amount - * PLAYER_EVENT_ON_REPUTATION_CHANGE = 15, // (event, player, factionId, standing, incremental) - Can return new standing + * PLAYER_EVENT_ON_REPUTATION_CHANGE = 15, // (event, player, factionId, standing, incremental) - Can return new standing -> if standing == -1, it will prevent default action (rep gain) * PLAYER_EVENT_ON_TALENTS_CHANGE = 16, // (event, player, points) * PLAYER_EVENT_ON_TALENTS_RESET = 17, // (event, player, noCost) * PLAYER_EVENT_ON_CHAT = 18, // (event, player, msg, Type, lang) - Can return false, newMessage diff --git a/Hooks.h b/Hooks.h index 36753dd..a09e05f 100644 --- a/Hooks.h +++ b/Hooks.h @@ -174,7 +174,7 @@ namespace Hooks PLAYER_EVENT_ON_GIVE_XP = 12, // (event, player, amount, victim) - Can return new XP amount PLAYER_EVENT_ON_LEVEL_CHANGE = 13, // (event, player, oldLevel) PLAYER_EVENT_ON_MONEY_CHANGE = 14, // (event, player, amount) - Can return new money amount - PLAYER_EVENT_ON_REPUTATION_CHANGE = 15, // (event, player, factionId, standing, incremental) - Can return new standing + PLAYER_EVENT_ON_REPUTATION_CHANGE = 15, // (event, player, factionId, standing, incremental) - Can return new standing -> if standing == -1, it will prevent default action (rep gain) PLAYER_EVENT_ON_TALENTS_CHANGE = 16, // (event, player, points) PLAYER_EVENT_ON_TALENTS_RESET = 17, // (event, player, noCost) PLAYER_EVENT_ON_CHAT = 18, // (event, player, msg, Type, lang) - Can return false, newMessage