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

Function TryAddingConsumable

TombEngine/Game/pickup/pickup_consumable.cpp:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool TryAddingConsumable(LaraInfo& lara, GAME_OBJECT_ID objectID, std::optional<int> amount)
63{
64 return TryModifyingConsumable(lara, objectID, amount, ModificationType::Add);
65}
66
67bool TryRemovingConsumable(LaraInfo& lara, GAME_OBJECT_ID objectID, std::optional<int> amount)
68{

Callers 1

PickedUpObjectFunction · 0.85

Calls 1

TryModifyingConsumableFunction · 0.85

Tested by

no test coverage detected