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

Function TryAddingWeapon

TombEngine/Game/pickup/pickup_weapon.cpp:102–105  ·  view source on GitHub ↗

Adding a weapon will not give the player any ammo even if they already have the weapon.

Source from the content-addressed store, hash-verified

100
101// Adding a weapon will not give the player any ammo even if they already have the weapon.
102bool TryAddingWeapon(LaraInfo& lara, GAME_OBJECT_ID objectID)
103{
104 return TryModifyWeapon(lara, objectID, 1, ModificationType::Add);
105}
106
107// Removing a weapon is the reverse of the above; it will remove the weapon (if it's there).
108bool TryRemovingWeapon(LaraInfo& lara, GAME_OBJECT_ID objectID)

Callers 1

PickedUpObjectFunction · 0.85

Calls 1

TryModifyWeaponFunction · 0.85

Tested by

no test coverage detected