mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-15 00:08:07 -04:00
this seems to have been test code...we can reenable if something feels missing later
This commit is contained in:
@@ -608,19 +608,11 @@ bool BuildingObject::isAllowed(CreatureObject const &who) const
|
||||
// allow non-player-controlled creatures in private buildings with no owner
|
||||
if (!who.isPlayerControlled() && getOwnerId() == NetworkId::cms_invalid)
|
||||
return true;
|
||||
|
||||
// allow vendor-creatures to be placed in the building
|
||||
if (who.hasCondition(static_cast<int>(ServerTangibleObjectTemplate::C_vendor)))
|
||||
return true;
|
||||
|
||||
// allow non-player-controlled creatures in private buildings if the *creature* has no owner
|
||||
if (!who.isPlayerControlled()
|
||||
&& who.getMasterId() == NetworkId::cms_invalid
|
||||
&& who.getLevel() < 10 // temp change to < 0 after testing holo item
|
||||
)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return CellPermissions::isOnList(m_allowed.get(), who);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user