2020-04-29 18:17:18 +00:00
|
|
|
#include "../../src/Battling/PkmnScript.hpp"
|
2021-07-09 12:48:25 +00:00
|
|
|
#include "../../src/Battling/EvolutionScript.hpp"
|
|
|
|
#include "../../src/Battling/Pokemon/Pokemon.hpp"
|
2020-04-29 18:17:18 +00:00
|
|
|
#include "../Core.hpp"
|
|
|
|
using namespace PkmnLib::Battling;
|
|
|
|
|
2022-04-02 11:03:11 +00:00
|
|
|
export_func uint8_t PkmnLib_PkmnScript_ModifyCriticalStage(PkmnScript* script,
|
2020-04-29 18:17:18 +00:00
|
|
|
CreatureLib::Battling::ExecutingAttack* attack,
|
|
|
|
CreatureLib::Battling::Creature* target, uint8_t hit,
|
|
|
|
uint8_t* critStage) {
|
|
|
|
Try(script->ModifyCriticalStage(attack, target, hit, critStage);)
|
2021-07-09 12:48:25 +00:00
|
|
|
}
|
|
|
|
|
2022-04-02 11:03:11 +00:00
|
|
|
export_func u8 PkmnLib_EvolutionScript_DoesEvolveFromLevelUp(EvolutionScript* script,
|
2021-07-09 12:48:25 +00:00
|
|
|
const PkmnLib::Library::EvolutionData* evoData,
|
|
|
|
const Pokemon* pokemon, bool* out) {
|
|
|
|
Try(script->DoesEvolveFromLevelUp(evoData, pokemon, out));
|
2020-04-29 18:17:18 +00:00
|
|
|
}
|