mirror of https://github.com/AxioDL/metaforce.git
CDamageVulnerability: Remove unnecessary inline specifiers
These functions are already marked static, so they're already a candidate for inlining. We can mark them as constexpr though, given how trivial they are.
This commit is contained in:
parent
b76b956339
commit
f1ff48c38b
|
@ -34,11 +34,11 @@ const CDamageVulnerability CDamageVulnerability::sPassThroughVulnerability(
|
||||||
EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough,
|
EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough,
|
||||||
EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EDeflectType::None);
|
EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EDeflectType::None);
|
||||||
|
|
||||||
static inline bool is_not_immune(EVulnerability vuln) {
|
static constexpr bool is_not_immune(EVulnerability vuln) {
|
||||||
return vuln != EVulnerability::Immune && vuln != EVulnerability::DirectImmune;
|
return vuln != EVulnerability::Immune && vuln != EVulnerability::DirectImmune;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool is_normal_or_weak(EVulnerability vuln) {
|
static constexpr bool is_normal_or_weak(EVulnerability vuln) {
|
||||||
return vuln == EVulnerability::Normal || vuln == EVulnerability::Weak;
|
return vuln == EVulnerability::Normal || vuln == EVulnerability::Weak;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue