From 1be14ebf7f38ab446907b4c111370b3a62bdc268 Mon Sep 17 00:00:00 2001 From: Feyo Korenhof <35343640+feyokorenhof@users.noreply.github.com> Date: Mon, 29 Nov 2021 13:53:58 +0100 Subject: Added ExperienceAmount variable to HOOK_PLAYER_FISHING and HOOK_PLAYER_FISHED (#5345) * Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks() * Fixed formatting and added ScheduleTask to APIDesc * Added feyokorenhof to contributors * Added ExperienceAmount variable to all the hook calls. * Made ExperienceAmount int reference instead of int in HOOK_PLAYER_FISHING. Fixed bug: a_Reward is now a reference * Add documentation, change ItemFishingRod to pass in experience Co-authored-by: Alexander Harkness --- Server/Plugins/APIDump/Classes/Plugins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Server/Plugins') diff --git a/Server/Plugins/APIDump/Classes/Plugins.lua b/Server/Plugins/APIDump/Classes/Plugins.lua index adc6bf0b3..26c8c9c76 100644 --- a/Server/Plugins/APIDump/Classes/Plugins.lua +++ b/Server/Plugins/APIDump/Classes/Plugins.lua @@ -847,11 +847,11 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage); }, HOOK_PLAYER_FISHED = { - Notes = "Called when the player reels the fishing rod back in, after the server decides the player's fishing reward.", + Notes = "Called when the player reels the fishing rod back in, after the server decides the player's fishing reward and the experience to grant.", }, HOOK_PLAYER_FISHING = { - Notes = "Called when the player reels the fishing rod back in, plugins may alter the fishing reward.", + Notes = "Called when the player reels the fishing rod back in, plugins may alter the fishing reward and the experience granted to the player.", }, HOOK_PLAYER_FOOD_LEVEL_CHANGE = { -- cgit v1.2.3