MCPcopy Create free account
hub / github.com/EasyRPG/Player / HasAttribute

Function HasAttribute

src/attribute.cpp:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static bool HasAttribute(Span<const lcf::DBBitArray*> attribute_sets, int id) {
63 for (auto* as: attribute_sets) {
64 const auto idx = id - 1;
65 if (idx < static_cast<int>(as->size()) && (*as)[idx]) {
66 return true;
67 }
68 }
69 return false;
70}
71
72int ApplyAttributeMultiplier(int effect, const Game_Battler& target, Span<const lcf::DBBitArray*> attribute_sets) {
73 int physical = INT_MIN;

Callers 1

ApplyAttributeMultiplierFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected