mirror of https://github.com/PrimeDecomp/prime.git
Fix linking issues with CDamageVulnerability
Former-commit-id: 882cebb9b3
This commit is contained in:
parent
f272196864
commit
72e31ef65b
|
@ -4,7 +4,6 @@
|
||||||
#include "MetroidPrime/Weapons/WeaponTypes.hpp"
|
#include "MetroidPrime/Weapons/WeaponTypes.hpp"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
|
|
||||||
enum EVulnerability {
|
enum EVulnerability {
|
||||||
kVN_Weak,
|
kVN_Weak,
|
||||||
kVN_Normal,
|
kVN_Normal,
|
||||||
|
@ -36,17 +35,6 @@ public:
|
||||||
EVulnerability enemyWp4, EVulnerability v1, EVulnerability v2,
|
EVulnerability enemyWp4, EVulnerability v1, EVulnerability v2,
|
||||||
EDeflectionType deflectType);
|
EDeflectionType deflectType);
|
||||||
|
|
||||||
CDamageVulnerability(EVulnerability power, EVulnerability ice, EVulnerability wave,
|
|
||||||
EVulnerability plasma, EVulnerability bomb, EVulnerability powerBomb,
|
|
||||||
EVulnerability missile, EVulnerability boostBall, EVulnerability phazon,
|
|
||||||
EVulnerability enemyWp1, EVulnerability enemyWp2, EVulnerability enemyWp3,
|
|
||||||
EVulnerability enemyWp4, EVulnerability v1, EVulnerability v2,
|
|
||||||
EVulnerability chargedPower, EVulnerability chargedIce,
|
|
||||||
EVulnerability chargedWave, EVulnerability chargedPlasma,
|
|
||||||
EVulnerability superMissile, EVulnerability iceSpreader,
|
|
||||||
EVulnerability waveBuster, EVulnerability flameThrower,
|
|
||||||
EDeflectionType deflected);
|
|
||||||
|
|
||||||
EDeflectionType GetDeflectionType(const CWeaponMode& mode) const;
|
EDeflectionType GetDeflectionType(const CWeaponMode& mode) const;
|
||||||
|
|
||||||
bool WeaponHurts(const CWeaponMode&, int ignoreDirect) const;
|
bool WeaponHurts(const CWeaponMode&, int ignoreDirect) const;
|
||||||
|
|
|
@ -4,28 +4,25 @@
|
||||||
#include "rstl/math.hpp"
|
#include "rstl/math.hpp"
|
||||||
|
|
||||||
const CDamageVulnerability CDamageVulnerability::sNormalVulnerability(
|
const CDamageVulnerability CDamageVulnerability::sNormalVulnerability(
|
||||||
kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal,
|
|
||||||
kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal,
|
kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal,
|
||||||
kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kDT_None);
|
kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kVN_Normal, kDT_None);
|
||||||
|
|
||||||
const CDamageVulnerability CDamageVulnerability::sImmuneVulnerability(
|
const CDamageVulnerability
|
||||||
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
CDamageVulnerability::sImmuneVulnerability(kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
||||||
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
||||||
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
||||||
kVN_Deflect, kVN_Deflect, kDT_None);
|
kVN_Deflect, kVN_Deflect, kVN_Deflect, kDT_None);
|
||||||
|
|
||||||
const CDamageVulnerability CDamageVulnerability::sReflectVulnerability(
|
const CDamageVulnerability
|
||||||
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
CDamageVulnerability::sReflectVulnerability(kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
||||||
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
||||||
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
kVN_Deflect, kVN_Deflect, kVN_Deflect, kVN_Deflect,
|
||||||
kVN_Deflect, kVN_Deflect, kDT_One);
|
kVN_Deflect, kVN_Deflect, kVN_Deflect, kDT_One);
|
||||||
|
|
||||||
const CDamageVulnerability CDamageVulnerability::sPassThroughVulnerability(
|
const CDamageVulnerability CDamageVulnerability::sPassThroughVulnerability(
|
||||||
kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough,
|
kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough,
|
||||||
kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough,
|
kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough,
|
||||||
kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough,
|
kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kDT_None);
|
||||||
kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kVN_PassThrough,
|
|
||||||
kVN_PassThrough, kVN_PassThrough, kVN_PassThrough, kDT_None);
|
|
||||||
|
|
||||||
static inline bool is_deflect_direct(EVulnerability vuln) {
|
static inline bool is_deflect_direct(EVulnerability vuln) {
|
||||||
return vuln == kVN_Deflect || (EVulnerability(u32(vuln) - u32(kVN_DirectWeak)) < kVN_Deflect) ||
|
return vuln == kVN_Deflect || (EVulnerability(u32(vuln) - u32(kVN_DirectWeak)) < kVN_Deflect) ||
|
||||||
|
|
Loading…
Reference in New Issue