MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / consumeResourceValue

Method consumeResourceValue

source/game/StarStatSet.cpp:172–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172bool StatSet::consumeResourceValue(String const& resourceName, float amount) {
173 return consumeResourceValue(resourceName, amount, false);
174}
175
176bool StatSet::overConsumeResourceValue(String const& resourceName, float amount) {
177 return consumeResourceValue(resourceName, amount, true);

Callers 1

consumeResourceMethod · 0.80

Calls 3

formatFunction · 0.50
ptrMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected