Fixed C Interface for DamageLibrary returning floats instead of expected bytes.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-05-20 15:02:53 +02:00
parent 0c55208209
commit 6c40f4291d
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 6 additions and 6 deletions

View File

@ -17,13 +17,13 @@ export uint8_t CreatureLib_DamageLibrary_GetBasePower(uint8_t& out, const Damage
ExecutingAttack::HitData* hitData) { ExecutingAttack::HitData* hitData) {
Try(out = p->GetBasePower(attack, target, hitIndex, *hitData);) Try(out = p->GetBasePower(attack, target, hitIndex, *hitData);)
} }
export float CreatureLib_DamageLibrary_GetStatModifier(float& out, const DamageLibrary* p, ExecutingAttack* attack, export uint8_t CreatureLib_DamageLibrary_GetStatModifier(float& out, const DamageLibrary* p, ExecutingAttack* attack,
Creature* target, uint8_t hitIndex,
ExecutingAttack::HitData* hitData) {
Try(out = p->GetStatModifier(attack, target, hitIndex, *hitData);)
}
export float CreatureLib_DamageLibrary_GetDamageModifier(float& out, const DamageLibrary* p, ExecutingAttack* attack,
Creature* target, uint8_t hitIndex, Creature* target, uint8_t hitIndex,
ExecutingAttack::HitData* hitData) { ExecutingAttack::HitData* hitData) {
Try(out = p->GetStatModifier(attack, target, hitIndex, *hitData);)
}
export uint8_t CreatureLib_DamageLibrary_GetDamageModifier(float& out, const DamageLibrary* p, ExecutingAttack* attack,
Creature* target, uint8_t hitIndex,
ExecutingAttack::HitData* hitData) {
Try(out = p->GetDamageModifier(attack, target, hitIndex, *hitData);) Try(out = p->GetDamageModifier(attack, target, hitIndex, *hitData);)
} }