mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06: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:
|
||||
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 = []
|
||||
|
|
Loading…
Reference in a new issue