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

Function encode_enemy

Source/monster.cpp:4584–4590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4582}
4583
4584int encode_enemy(Monster &monster)
4585{
4586 if ((monster.flags & MFLAG_TARGETS_MONSTER) != 0)
4587 return monster.enemy + MAX_PLRS;
4588
4589 return monster.enemy;
4590}
4591
4592void decode_enemy(Monster &monster, int enemyId)
4593{

Callers 2

DeltaLeaveSyncFunction · 0.85
SyncMonsterPosFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected