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

Function On_ADDVIT

Source/msg.cpp:1343–1353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343DWORD On_ADDVIT(TCmd *pCmd, int pnum)
1344{
1345 TCmdParam1 *p = (TCmdParam1 *)pCmd;
1346
1347 if (gbBufferMsgs == 1)
1348 msg_send_packet(pnum, p, sizeof(*p));
1349 else if (p->wParam1 <= 256)
1350 ModifyPlrVit(pnum, p->wParam1);
1351
1352 return sizeof(*p);
1353}
1354
1355DWORD On_SBSPELL(TCmd *pCmd, int pnum)
1356{

Callers 1

ParseCmdFunction · 0.85

Calls 2

msg_send_packetFunction · 0.85
ModifyPlrVitFunction · 0.85

Tested by

no test coverage detected