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

Function On_CHEAT_EXPERIENCE

Source/msg.cpp:2546–2557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2544}
2545
2546DWORD On_CHEAT_EXPERIENCE(TCmd *pCmd, int pnum)
2547{
2548#ifdef _DEBUG
2549 if (gbBufferMsgs == 1)
2550 msg_send_packet(pnum, pCmd, sizeof(*pCmd));
2551 else if (plr[pnum]._pLevel < MAXCHARLEVEL - 1) {
2552 plr[pnum]._pExperience = plr[pnum]._pNextExper;
2553 NextPlrLevel(pnum);
2554 }
2555#endif
2556 return sizeof(*pCmd);
2557}
2558
2559DWORD On_CHEAT_SPELL_LEVEL(TCmd *pCmd, int pnum)
2560{

Callers 1

ParseCmdFunction · 0.85

Calls 2

msg_send_packetFunction · 0.85
NextPlrLevelFunction · 0.85

Tested by

no test coverage detected