MCPcopy Create free account
hub / github.com/DFHack/dfhack / getFortAverage

Method getFortAverage

plugins/dwarfmonitor.cpp:859–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857 }
858
859 string getFortAverage(const activity_type &activity)
860 {
861 auto average = getPercentage(getFortActivityCount(activity), fort_activity_count);
862 auto label = getActivityLabel(activity);
863 auto result = pad_string(int_to_string(average), 3) + " " + label;
864
865 return result;
866 }
867
868 string getDwarfAverage(df::unit *unit, const size_t value)
869 {

Callers

nothing calls this directly

Calls 4

getPercentageFunction · 0.85
getActivityLabelFunction · 0.85
pad_stringFunction · 0.85
int_to_stringFunction · 0.85

Tested by

no test coverage detected