MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / RemoveObjectFromInventory

Function RemoveObjectFromInventory

TombEngine/Game/pickup/pickup.cpp:201–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void RemoveObjectFromInventory(GAME_OBJECT_ID objectID, std::optional<int> count)
202{
203 // See if the items fit into one of these easy groups.
204 if (!TryRemovingWeapon(Lara, objectID) &&
205 !TryRemovingAmmo(Lara, objectID, count) &&
206 !TryRemovingKeyItem(Lara, objectID, count) &&
207 !TryRemovingConsumable(Lara, objectID, count) &&
208 !TryRemoveMiscItem(Lara, objectID))
209 {
210 // Item isn't any of the above; do nothing.
211 }
212}
213
214static void HideOrDisablePickup(ItemInfo& pickupItem)
215{

Callers 4

PuzzleHoleCollisionFunction · 0.85
KeyHoleCollisionFunction · 0.85
CollideStatuePlinthFunction · 0.85
TakeItemFunction · 0.85

Calls 5

TryRemovingWeaponFunction · 0.85
TryRemovingAmmoFunction · 0.85
TryRemovingKeyItemFunction · 0.85
TryRemovingConsumableFunction · 0.85
TryRemoveMiscItemFunction · 0.85

Tested by

no test coverage detected