Remove CFO staff event

This commit is contained in:
John 2015-06-02 18:54:15 +03:00 committed by Loudrob
parent 4e60722277
commit 5a0d981185

View file

@ -386,21 +386,6 @@ class DistributedCashbotBossAI(DistributedBossCogAI.DistributedBossCogAI, FSM.FS
if toon:
toon.doResistanceEffect(self.rewardId)
if simbase.config.GetBool('cfo-staff-event', False):
withStaff = False
for avId in self.involvedToons:
av = self.air.doId2do.get(avId)
if av:
if av.adminAccess > 100:
withStaff = True
if withStaff:
participants = simbase.backups.load('cfo-staff-event', ('participants',), default={'doIds': []})
if avId not in participants['doIds']:
participants['doIds'].append(toon.doId)
simbase.backups.save('cfo-staff-event', ('participants',), participants)
def enterOff(self):
DistributedBossCogAI.DistributedBossCogAI.enterOff(self)
self.rewardedToons = []