Fix EffectChance using uint16 instead of float.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
27f5c5b3b5
commit
3446412c0d
|
@ -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()",
|
||||||
|
|
Loading…
Reference in New Issue