MCPcopy Create free account
hub / github.com/diasurgical/devilution / pfile_get_player_class

Function pfile_get_player_class

Source/pfile.cpp:297–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297char pfile_get_player_class(unsigned int player_class_nr)
298{
299 char pc_class;
300
301 if (player_class_nr == UI_WARRIOR)
302 pc_class = PC_WARRIOR;
303 else if (player_class_nr == UI_ROGUE)
304 pc_class = PC_ROGUE;
305 else
306 pc_class = PC_SORCERER;
307 return pc_class;
308}
309
310BOOL pfile_ui_save_create(_uiheroinfo *heroinfo)
311{

Callers 2

pfile_ui_set_class_statsFunction · 0.85
pfile_ui_save_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected