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

Function CheckCheatStats

Source/player.cpp:1522–1547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1520}
1521
1522void CheckCheatStats(Player &player)
1523{
1524 if (player._pStrength > 750) {
1525 player._pStrength = 750;
1526 }
1527
1528 if (player._pDexterity > 750) {
1529 player._pDexterity = 750;
1530 }
1531
1532 if (player._pMagic > 750) {
1533 player._pMagic = 750;
1534 }
1535
1536 if (player._pVitality > 750) {
1537 player._pVitality = 750;
1538 }
1539
1540 if (player._pHitPoints > 128000) {
1541 player._pHitPoints = 128000;
1542 }
1543
1544 if (player._pMana > 128000) {
1545 player._pMana = 128000;
1546 }
1547}
1548
1549HeroClass GetPlayerSpriteClass(HeroClass cls)
1550{

Callers 1

ProcessPlayersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected