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

Function set_profname

plugins/manipulator.cpp:645–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643 u->transname = get_nickname_eng(u);
644 }
645 void set_profname(UnitInfo *u, std::string prof)
646 {
647 u->unit->custom_profession = prof;
648 u->profession = get_profname(u);
649 }
650}
651
652struct ProfessionTemplate

Callers 1

applyMethod · 0.85

Calls 1

get_profnameFunction · 0.85

Tested by

no test coverage detected