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

Function SyncDropItem

Source/msg.cpp:1080–1096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1078}
1079
1080int SyncDropItem(Point position, const TItem &item)
1081{
1082 return SyncDropItem(
1083 position,
1084 static_cast<_item_indexes>(SDL_SwapLE16(item.wIndx)),
1085 SDL_SwapLE16(item.wCI),
1086 SDL_SwapLE32(item.dwSeed),
1087 item.bId,
1088 item.bDur,
1089 item.bMDur,
1090 item.bCh,
1091 item.bMCh,
1092 SDL_SwapLE16(item.wValue),
1093 SDL_SwapLE32(item.dwBuff),
1094 SDL_SwapLE16(item.wToHit),
1095 SDL_SwapLE16(item.wMaxDam));
1096}
1097
1098int SyncDropEar(Point position, const TEar &ear)
1099{

Callers 5

OnGetItemFunction · 0.70
OnAutoGetItemFunction · 0.70
OnPutItemFunction · 0.70
OnSyncPutItemFunction · 0.70
OnSpawnItemFunction · 0.70

Calls 2

GetItemPositionFunction · 0.85
SyncDropEarFunction · 0.70

Tested by

no test coverage detected