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

Function InitializeConsumables

TombEngine/Game/pickup/pickup_consumable.cpp:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 };
29
30void InitializeConsumables(const Settings& settings)
31{
32 Consumables[GetArraySlot(Consumables, GAME_OBJECT_ID::ID_FLARE_INV_ITEM)].Amount = settings.Flare.PickupCount;
33}
34
35bool TryModifyingConsumable(LaraInfo& lara, GAME_OBJECT_ID objectID, std::optional<int> amount, ModificationType modType)
36{

Callers 1

SetSettingsMethod · 0.85

Calls 1

GetArraySlotFunction · 0.85

Tested by

no test coverage detected