2020-02-20 12:28:31 +00:00
|
|
|
#ifndef PKMNLIB_PKMNSCRIPT_HPP
|
|
|
|
#define PKMNLIB_PKMNSCRIPT_HPP
|
2021-03-07 10:12:18 +00:00
|
|
|
#include <CreatureLib/Battling/ScriptHandling/BattleScript.hpp>
|
2021-11-19 13:56:29 +00:00
|
|
|
#include "Battle/Battle.hpp"
|
2020-02-20 12:28:31 +00:00
|
|
|
|
2020-07-18 11:19:35 +00:00
|
|
|
#ifdef __clang__
|
2020-07-18 10:42:54 +00:00
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma clang diagnostic ignored "-Wunused-parameter"
|
2020-07-18 11:19:35 +00:00
|
|
|
#elif defined __GNUC__
|
|
|
|
#pragma GCC diagnostic push
|
|
|
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
|
|
|
#endif
|
2020-07-18 10:42:54 +00:00
|
|
|
|
2020-04-28 12:48:56 +00:00
|
|
|
namespace PkmnLib::Battling {
|
2021-03-07 10:12:18 +00:00
|
|
|
class PkmnScript : public CreatureLib::Battling::BattleScript {
|
2020-02-20 12:28:31 +00:00
|
|
|
public:
|
2021-10-29 21:54:44 +00:00
|
|
|
PkmnScript(const ArbUt::OptionalBorrowedPtr<void>& owner) : CreatureLib::Battling::BattleScript(owner) {}
|
|
|
|
|
2022-02-12 12:03:40 +00:00
|
|
|
virtual void PreventIncomingCritical(CreatureLib::Battling::ExecutingAttack* attack,
|
2022-02-12 16:00:37 +00:00
|
|
|
CreatureLib::Battling::Creature* target, uint8_t hit, bool* preventCrit){};
|
2020-02-20 12:28:31 +00:00
|
|
|
virtual void ModifyCriticalStage(CreatureLib::Battling::ExecutingAttack* attack,
|
|
|
|
CreatureLib::Battling::Creature* target, uint8_t hit, uint8_t* critStage){};
|
2020-06-05 11:49:12 +00:00
|
|
|
virtual void OverrideCriticalModifier(CreatureLib::Battling::ExecutingAttack* attack,
|
|
|
|
CreatureLib::Battling::Creature* target, uint8_t hit,
|
|
|
|
float* critModifier){};
|
|
|
|
virtual void OverrideSTABModifier(CreatureLib::Battling::ExecutingAttack* attack,
|
|
|
|
CreatureLib::Battling::Creature* target, uint8_t hit, float* stabModifier){};
|
|
|
|
|
2020-05-20 14:05:52 +00:00
|
|
|
virtual void ModifyExperienceGain(CreatureLib::Battling::Creature* faintedMon,
|
2020-05-24 11:36:45 +00:00
|
|
|
CreatureLib::Battling::Creature* winningMon, uint32_t* experienceGain){};
|
|
|
|
virtual void DoesShareExperience(CreatureLib::Battling::Creature* faintedMon,
|
|
|
|
CreatureLib::Battling::Creature* winningMon, bool* shareExperience){};
|
2021-11-19 13:56:29 +00:00
|
|
|
virtual void BlockWeather(CreatureLib::Battling::Battle* battle, bool* blockWeather){};
|
2022-02-12 16:00:37 +00:00
|
|
|
|
|
|
|
virtual void ModifyOffensiveStatValue(CreatureLib::Battling::ExecutingAttack* attack,
|
|
|
|
CreatureLib::Battling::Creature* target, u8 hitIndex, float* modifier){};
|
|
|
|
virtual void ModifyDefensiveStatValue(CreatureLib::Battling::ExecutingAttack* attack,
|
|
|
|
CreatureLib::Battling::Creature* target, u8 hitIndex, float* modifier){};
|
2022-03-13 13:16:28 +00:00
|
|
|
virtual void ModifyCaptureRateBonus(CreatureLib::Battling::Creature* pokemon,
|
|
|
|
CreatureLib::Library::Item* catchItem, u8* modifier){};
|
2020-02-20 12:28:31 +00:00
|
|
|
};
|
|
|
|
}
|
2020-07-18 11:19:35 +00:00
|
|
|
|
|
|
|
#ifdef __clang__
|
2020-07-18 10:42:54 +00:00
|
|
|
#pragma clang diagnostic pop
|
2020-07-18 11:19:35 +00:00
|
|
|
#elif defined __GNUC__
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
#endif
|
2020-02-20 12:28:31 +00:00
|
|
|
|
|
|
|
#endif // PKMNLIB_PKMNSCRIPT_HPP
|