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

Function get_happiness_cat

plugins/dwarfmonitor.cpp:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86};
87
88static int get_happiness_cat(df::unit *unit)
89{
90 int level = Units::getStressCategory(unit);
91 if (level < 0) level = 0;
92 if (level > 6) level = 6;
93 return level;
94}
95
96static int get_max_history()
97{

Callers 1

populateDwarfColumnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected