Fixed C Interface for DamageLibrary returning floats instead of expected bytes.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
0c55208209
commit
6c40f4291d
|
@ -17,12 +17,12 @@ 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,
|
Creature* target, uint8_t hitIndex,
|
||||||
ExecutingAttack::HitData* hitData) {
|
ExecutingAttack::HitData* hitData) {
|
||||||
Try(out = p->GetStatModifier(attack, target, hitIndex, *hitData);)
|
Try(out = p->GetStatModifier(attack, target, hitIndex, *hitData);)
|
||||||
}
|
}
|
||||||
export float CreatureLib_DamageLibrary_GetDamageModifier(float& out, const DamageLibrary* p, ExecutingAttack* attack,
|
export uint8_t 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->GetDamageModifier(attack, target, hitIndex, *hitData);)
|
Try(out = p->GetDamageModifier(attack, target, hitIndex, *hitData);)
|
||||||
|
|
Loading…
Reference in New Issue