mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Remove CFO staff event
This commit is contained in:
parent
4e60722277
commit
5a0d981185
1 changed files with 0 additions and 15 deletions
|
@ -386,21 +386,6 @@ class DistributedCashbotBossAI(DistributedBossCogAI.DistributedBossCogAI, FSM.FS
|
||||||
if toon:
|
if toon:
|
||||||
toon.doResistanceEffect(self.rewardId)
|
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):
|
def enterOff(self):
|
||||||
DistributedBossCogAI.DistributedBossCogAI.enterOff(self)
|
DistributedBossCogAI.DistributedBossCogAI.enterOff(self)
|
||||||
self.rewardedToons = []
|
self.rewardedToons = []
|
||||||
|
|
Loading…
Reference in a new issue