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

Function get_real_profname

plugins/manipulator.cpp:607–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605 string get_goalname(UnitInfo *u)
606 { return Units::getGoalName(u->unit); }
607 string get_real_profname(UnitInfo *u)
608 {
609 string tmp = u->unit->custom_profession;
610 u->unit->custom_profession = "";
611 string ret = get_profname(u);
612 u->unit->custom_profession = tmp;
613 return ret;
614 }
615 string get_base_profname(UnitInfo *u)
616 {
617 return ENUM_ATTR_STR(profession, caption, u->unit->profession);

Callers

nothing calls this directly

Calls 1

get_profnameFunction · 0.85

Tested by

no test coverage detected