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

Function GetAttributeRateModifier

src/attribute.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace Attribute {
31
32int GetAttributeRateModifier(int attribute_id, int rate) {
33 const auto* attribute = lcf::ReaderUtil::GetElement(lcf::Data::attributes, attribute_id);
34
35 if (!attribute) {
36 Output::Warning("GetAttributeRate: Invalid attribute ID {}", attribute_id);
37 return 0;
38 }
39
40 return GetAttributeRateModifier(*attribute, rate);
41}
42
43int GetAttributeRateModifier(const lcf::rpg::Attribute& attr, int rate) {
44 switch (rate) {

Callers 2

ApplyAttributeMultiplierFunction · 0.85
attribute.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected