def patrolPurge(self): # destealth self.destealth = int(sum(map(lambda x: x.destealth,self.patrollers))) - min(unrest/2,50)+max(self.pd - 14,0) effectiveness = self.destealth + open_roll(1,25)+open_roll(1,25)-open_roll(1,25)-open_roll(1,25) patrol = self.pd / 10 self.patrolmurdered += patrol self.unrest -= patrol return patrol
def unrestGenerate(self,slaves): return open_roll(3 * slaves + 4)