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

Function LaserSightIsEquipped

TombEngine/Game/pickup/pickup_misc_items.cpp:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23auto LaserSightIsEquipped(LaraInfo& lara)
24{
25 if (lara.Weapons[(int)LaraWeaponType::Revolver].HasLasersight ||
26 lara.Weapons[(int)LaraWeaponType::Crossbow].HasLasersight ||
27 lara.Weapons[(int)LaraWeaponType::HK].HasLasersight)
28 {
29 return true;
30 }
31
32 return false;
33};
34
35bool TryModifyMiscCount(LaraInfo & lara, GAME_OBJECT_ID objectID, std::optional<int> amount, ModificationType modType)
36{

Callers 2

TryModifyMiscCountFunction · 0.85
HasMiscItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected