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

Function CheckCheatStats

Source/player.cpp:3509–3534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3507}
3508
3509void CheckCheatStats(int pnum)
3510{
3511 if (plr[pnum]._pStrength > 750) {
3512 plr[pnum]._pStrength = 750;
3513 }
3514
3515 if (plr[pnum]._pDexterity > 750) {
3516 plr[pnum]._pDexterity = 750;
3517 }
3518
3519 if (plr[pnum]._pMagic > 750) {
3520 plr[pnum]._pMagic = 750;
3521 }
3522
3523 if (plr[pnum]._pVitality > 750) {
3524 plr[pnum]._pVitality = 750;
3525 }
3526
3527 if (plr[pnum]._pHitPoints > 128000) {
3528 plr[pnum]._pHitPoints = 128000;
3529 }
3530
3531 if (plr[pnum]._pMana > 128000) {
3532 plr[pnum]._pMana = 128000;
3533 }
3534}
3535
3536void ClrPlrPath(int pnum)
3537{

Callers 1

ProcessPlayersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected