Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
652
struct ProfessionTemplate
Callers
1
apply
Method · 0.85
Calls
1
get_profname
Function · 0.85
Tested by
no test coverage detected