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

Function On_KILLGOLEM

Source/msg.cpp:2088–2101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2086}
2087
2088DWORD On_KILLGOLEM(TCmd *pCmd, int pnum)
2089{
2090 TCmdLocParam1 *p = (TCmdLocParam1 *)pCmd;
2091
2092 if (gbBufferMsgs == 1)
2093 msg_send_packet(pnum, p, sizeof(*p));
2094 else if (pnum != myplr) {
2095 if (currlevel == p->wParam1)
2096 M_SyncStartKill(pnum, p->x, p->y, pnum);
2097 delta_kill_monster(pnum, p->x, p->y, plr[pnum].plrlevel);
2098 }
2099
2100 return sizeof(*p);
2101}
2102
2103DWORD On_AWAKEGOLEM(TCmd *pCmd, int pnum)
2104{

Callers 1

ParseCmdFunction · 0.85

Calls 3

msg_send_packetFunction · 0.85
M_SyncStartKillFunction · 0.85
delta_kill_monsterFunction · 0.85

Tested by

no test coverage detected