From 9303ec53e02213d30c6850e766532c587d223383 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 26 Jun 2021 11:48:13 +0200 Subject: [PATCH] Adds C Interface for AllowedExperienceGain Signed-off-by: Deukhoofd --- CInterface/Battling/Creature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CInterface/Battling/Creature.cpp b/CInterface/Battling/Creature.cpp index 349c058..d5ec1e0 100644 --- a/CInterface/Battling/Creature.cpp +++ b/CInterface/Battling/Creature.cpp @@ -111,6 +111,9 @@ export void CreatureLib_Creature_SetDisplaySpecies(Creature* p, const CreatureLi export void CreatureLib_Creature_SetDisplayVariant(Creature* p, const CreatureLib::Library::SpeciesVariant* variant) { return p->SetDisplayVariant(variant); } +export bool CreatureLib_Creature_AllowedExperienceGain(Creature* p) { return p->AllowedExperienceGain(); } +export void CreatureLib_Creature_SetAllowedExperienceGain(Creature* p, bool b) { p->SetAllowedExperienceGain(b); } + export void CreatureLib_Creature_ChangeStatBoost(Creature* p, CreatureLib::Library::Statistic stat, int8_t diffAmount) { p->ChangeStatBoost(stat, diffAmount); }