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

Method consumeResource

source/game/StarStatCollection.cpp:94–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool StatCollection::consumeResource(String const& resourceName, float amount) {
95 return m_stats.consumeResourceValue(resourceName, amount);
96}
97
98bool StatCollection::overConsumeResource(String const& resourceName, float amount) {
99 return m_stats.overConsumeResourceValue(resourceName, amount);

Callers

nothing calls this directly

Calls 1

consumeResourceValueMethod · 0.80

Tested by

no test coverage detected