MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / CalcStatDiff

Function CalcStatDiff

Source/player.cpp:2385–2393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2383}
2384
2385int CalcStatDiff(Player &player)
2386{
2387 int diff = 0;
2388 for (auto attribute : enum_values<CharacterAttribute>()) {
2389 diff += player.GetMaximumAttributeValue(attribute);
2390 diff -= player.GetBaseAttributeValue(attribute);
2391 }
2392 return diff;
2393}
2394
2395void NextPlrLevel(Player &player)
2396{

Callers 2

NextPlrLevelFunction · 0.85
charpanel.cppFile · 0.85

Calls 2

GetBaseAttributeValueMethod · 0.80

Tested by

no test coverage detected