| 151 | } |
| 152 | |
| 153 | void PickedUpObject(GAME_OBJECT_ID objectID, std::optional<int> count) |
| 154 | { |
| 155 | // See if the items fit into one of these easy groups. |
| 156 | if (!TryAddingWeapon(Lara, objectID) && |
| 157 | !TryAddingAmmo(Lara, objectID, count) && |
| 158 | !TryAddingKeyItem(Lara, objectID, count) && |
| 159 | !TryAddingConsumable(Lara, objectID, count) && |
| 160 | !TryAddMiscItem(Lara, objectID)) |
| 161 | { |
| 162 | // Item isn't any of the above; do nothing. |
| 163 | } |
| 164 | else |
| 165 | { |
| 166 | SaveGame::Statistics.Level.Pickups++; |
| 167 | SaveGame::Statistics.Game.Pickups++; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | void PickedUpObject(ItemInfo& item) |
| 172 | { |
no test coverage detected