Fix EffectChance using uint16 instead of float.
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:
@@ -11,7 +11,7 @@ void RegisterBattleClass::RegisterBattleRandom(asIScriptEngine* engine) {
|
|||||||
[[maybe_unused]] int r = engine->RegisterObjectType("BattleRandom", 0, asOBJ_REF | asOBJ_NOCOUNT);
|
[[maybe_unused]] int r = engine->RegisterObjectType("BattleRandom", 0, asOBJ_REF | asOBJ_NOCOUNT);
|
||||||
assert(r >= 0);
|
assert(r >= 0);
|
||||||
r = engine->RegisterObjectMethod("BattleRandom",
|
r = engine->RegisterObjectMethod("BattleRandom",
|
||||||
"bool EffectChance(int16 chance, ExecutingMove@ move, Pokemon@ target )",
|
"bool EffectChance(float chance, ExecutingMove@ move, Pokemon@ target )",
|
||||||
asMETHOD(CreatureLib::Battling::BattleRandom, EffectChance), asCALL_THISCALL);
|
asMETHOD(CreatureLib::Battling::BattleRandom, EffectChance), asCALL_THISCALL);
|
||||||
assert(r >= 0);
|
assert(r >= 0);
|
||||||
r = engine->RegisterObjectMethod("BattleRandom", "int Get()",
|
r = engine->RegisterObjectMethod("BattleRandom", "int Get()",
|
||||||
|
|||||||
Reference in New Issue
Block a user