From cd3d6656873a05d8fe2b6433a58b1bbcfa56282b Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 7 Mar 2021 19:49:06 +0100 Subject: [PATCH] Adds OnInitialize function on Item Use Script. Signed-off-by: Deukhoofd --- src/Battling/ScriptHandling/ItemUseScript.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Battling/ScriptHandling/ItemUseScript.hpp b/src/Battling/ScriptHandling/ItemUseScript.hpp index 0e2297d..0afd919 100644 --- a/src/Battling/ScriptHandling/ItemUseScript.hpp +++ b/src/Battling/ScriptHandling/ItemUseScript.hpp @@ -1,6 +1,7 @@ #ifndef ITEMUSESCRIPT_HPP #define ITEMUSESCRIPT_HPP +#include "../../Library/EffectParameter.hpp" namespace CreatureLib::Battling { class Creature; @@ -8,6 +9,8 @@ namespace CreatureLib::Battling { public: virtual ~ItemUseScript() = default; + virtual void + OnInitialize([[maybe_unused]] const ArbUt::List& parameters){}; /// @brief Is the item an item we are able to use? [[nodiscard]] virtual bool IsItemUsable() const { return false; } /// @brief Do we need to use the item on a creature?