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

Function OperateDecapitatedBody

Source/objects.cpp:3259–3269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3257}
3258
3259void OperateDecapitatedBody(Object &corpse, bool sendmsg, bool sendLootMsg)
3260{
3261 if (corpse._oSelFlag == 0) {
3262 return;
3263 }
3264 corpse._oSelFlag = 0;
3265 SetRndSeed(corpse._oRndSeed);
3266 CreateRndItem(corpse.position, false, sendLootMsg, false);
3267 if (sendmsg)
3268 NetSendCmdLoc(MyPlayerId, false, CMD_OPERATEOBJ, corpse.position);
3269}
3270
3271void OperateArmorStand(Object &armorStand, bool sendmsg, bool sendLootMsg)
3272{

Callers 2

OperateObjectFunction · 0.85
SyncOpObjectFunction · 0.85

Calls 3

SetRndSeedFunction · 0.85
CreateRndItemFunction · 0.85
NetSendCmdLocFunction · 0.85

Tested by

no test coverage detected