| 77 | } |
| 78 | |
| 79 | std::optional<int> GetConsumableCount(LaraInfo& lara, GAME_OBJECT_ID objectID) |
| 80 | { |
| 81 | int arrayPos = GetArraySlot(Consumables, objectID); |
| 82 | if (arrayPos == NO_VALUE) |
| 83 | return std::nullopt; |
| 84 | |
| 85 | const auto& consumable = Consumables[arrayPos]; |
| 86 | |
| 87 | return lara.Inventory.*(consumable.Count); |
| 88 | } |
| 89 | |
| 90 | int GetDefaultConsumableCount(GAME_OBJECT_ID objectID) |
| 91 | { |
no test coverage detected