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

Function pfile_ui_set_class_stats

Source/pfile.cpp:285–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285BOOL pfile_ui_set_class_stats(unsigned int player_class_nr, _uidefaultstats *class_stats)
286{
287 int c;
288
289 c = pfile_get_player_class(player_class_nr);
290 class_stats->strength = StrengthTbl[c];
291 class_stats->magic = MagicTbl[c];
292 class_stats->dexterity = DexterityTbl[c];
293 class_stats->vitality = VitalityTbl[c];
294 return TRUE;
295}
296
297char pfile_get_player_class(unsigned int player_class_nr)
298{

Callers

nothing calls this directly

Calls 1

pfile_get_player_classFunction · 0.85

Tested by

no test coverage detected