2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 04:17:03 +00:00

CMetroid: Implement SuckEnergyFromTarget

This commit is contained in:
2020-05-17 02:46:23 -04:00
parent 6ad1aa79ab
commit 3cafee2abd
5 changed files with 186 additions and 16 deletions

View File

@@ -16,7 +16,7 @@ class CDamageInfo {
float xc_radiusDamage = 0.f;
float x10_radius = 0.f;
float x14_knockback = 0.f;
bool x18_noImmunity = false;
bool x18_24_noImmunity : 1 = false;
public:
constexpr CDamageInfo() = default;
@@ -53,8 +53,8 @@ public:
float GetRadiusDamage() const { return xc_radiusDamage; }
void SetRadiusDamage(float r) { xc_radiusDamage = r; }
float GetRadiusDamage(const CDamageVulnerability& dVuln) const;
bool NoImmunity() const { return x18_noImmunity; }
void SetNoImmunity(bool b) { x18_noImmunity = b; }
bool NoImmunity() const { return x18_24_noImmunity; }
void SetNoImmunity(bool b) { x18_24_noImmunity = b; }
void MultiplyDamage(float m) {
x8_damage *= m;
xc_radiusDamage *= m;