| 95 | } |
| 96 | |
| 97 | bool TryRemovingKeyItem(LaraInfo& lara, GAME_OBJECT_ID objectID, std::optional<int> amount) |
| 98 | { |
| 99 | if(amount.has_value()) |
| 100 | return TryModifyingKeyItem(lara, objectID, -amount.value(), ModificationType::Remove); |
| 101 | else |
| 102 | return TryModifyingKeyItem(lara, objectID, amount, ModificationType::Remove); |
| 103 | } |
| 104 | |
| 105 | std::optional<int> GetKeyItemCount(LaraInfo& lara, GAME_OBJECT_ID objectID) |
| 106 | { |
no test coverage detected