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

Method setResourceValue

source/game/StarStatSet.cpp:154–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154float StatSet::setResourceValue(String const& resourceName, float value) {
155 return getResource(resourceName).setValue(value);
156}
157
158float StatSet::modifyResourceValue(String const& resourceName, float amount) {
159 auto& resource = getResource(resourceName);

Callers 5

StatCollectionMethod · 0.80
setResourceMethod · 0.80
resetResourceMethod · 0.80
netElementsNeedLoadMethod · 0.80
TESTFunction · 0.80

Calls 1

setValueMethod · 0.45

Tested by 1

TESTFunction · 0.64