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

Function TryRemovingWeapon

TombEngine/Game/pickup/pickup_weapon.cpp:108–111  ·  view source on GitHub ↗

Removing a weapon is the reverse of the above; it will remove the weapon (if it's there).

Source from the content-addressed store, hash-verified

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)
109{
110 return TryModifyWeapon(lara, objectID, 1, ModificationType::Remove);
111}
112
113std::optional<bool> HasWeapon(LaraInfo& lara, GAME_OBJECT_ID objectID)
114{

Callers 1

Calls 1

TryModifyWeaponFunction · 0.85

Tested by

no test coverage detected