Adds a bunch of script hooks to the damage library calculations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -411,3 +411,24 @@ void AngelScriptScript::OnFaintingOpponent(const CreatureLib::Battling::Executin
|
||||
ctx->SetArgByte(2, hitNumber);
|
||||
})
|
||||
}
|
||||
void AngelScriptScript::ModifyOffensiveStatValue(CreatureLib::Battling::ExecutingAttack* attack,
|
||||
CreatureLib::Battling::Creature* target, u8 hitIndex,
|
||||
float* modifier) {
|
||||
CALL_HOOK(ModifyOffensiveStatValue, {
|
||||
ctx->SetArgObject(0, (void*)attack);
|
||||
ctx->SetArgObject(1, (void*)target);
|
||||
ctx->SetArgByte(2, hitIndex);
|
||||
ctx->SetArgAddress(3, modifier);
|
||||
})
|
||||
|
||||
}
|
||||
void AngelScriptScript::ModifyDefensiveStatValue(CreatureLib::Battling::ExecutingAttack* attack,
|
||||
CreatureLib::Battling::Creature* target, u8 hitIndex,
|
||||
float* modifier) {
|
||||
CALL_HOOK(ModifyDefensiveStatValue, {
|
||||
ctx->SetArgObject(0, (void*)attack);
|
||||
ctx->SetArgObject(1, (void*)target);
|
||||
ctx->SetArgByte(2, hitIndex);
|
||||
ctx->SetArgAddress(3, modifier);
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user