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

Function OnAddStrength

Source/msg.cpp:921–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

919}
920
921size_t OnAddStrength(const TCmd *pCmd, size_t pnum)
922{
923 const auto &message = *reinterpret_cast<const TCmdParam1 *>(pCmd);
924
925 if (gbBufferMsgs == 1)
926 SendPacket(pnum, &message, sizeof(message));
927 else if (message.wParam1 <= 256)
928 ModifyPlrStr(Players[pnum], SDL_SwapLE16(message.wParam1));
929
930 return sizeof(message);
931}
932
933size_t OnAddMagic(const TCmd *pCmd, size_t pnum)
934{

Callers 1

ParseCmdFunction · 0.85

Calls 2

ModifyPlrStrFunction · 0.85
SendPacketFunction · 0.70

Tested by

no test coverage detected