MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / IsDisabled

Method IsDisabled

Source/objects.cpp:3727–3739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3725}
3726
3727bool Object::IsDisabled() const
3728{
3729 if (!*sgOptions.Gameplay.disableCripplingShrines) {
3730 return false;
3731 }
3732 if (IsAnyOf(_otype, _object_id::OBJ_GOATSHRINE, _object_id::OBJ_CAULDRON)) {
3733 return true;
3734 }
3735 if (!IsShrine()) {
3736 return false;
3737 }
3738 return IsAnyOf(static_cast<shrine_type>(_oVar1), shrine_type::ShrineFascinating, shrine_type::ShrineOrnate, shrine_type::ShrineSacred, shrine_type::ShrineMurphys);
3739}
3740
3741Object *FindObjectAtPosition(Point position, bool considerLargeObjects)
3742{

Callers 4

GetObjectStrFunction · 0.80
LeftMouseCmdFunction · 0.80
DoTelekinesisFunction · 0.80
FindItemOrObjectFunction · 0.80

Calls 1

IsAnyOfFunction · 0.85

Tested by

no test coverage detected