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

Function delta_monster_hp

Source/msg.cpp:321–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void delta_monster_hp(int mi, int hp, BYTE bLevel)
322{
323 DMonsterStr *pD;
324
325 if (gbMaxPlayers != 1) {
326 sgbDeltaChanged = TRUE;
327 pD = &sgLevels[bLevel].monster[mi];
328 if (pD->_mhitpoints > hp)
329 pD->_mhitpoints = hp;
330 }
331}
332
333void delta_sync_monster(const TSyncMonster *pSync, BYTE bLevel)
334{

Callers 3

On_MONSTDAMAGEFunction · 0.85
M_StartHitFunction · 0.85
M2MStartHitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected