Esempio n. 1
0
 async def infection(self):
     percent = (DB.who_healthy_and_walk() + DB.who_ill_and_walk()*1.5) / (DB.show_users_count())
     if percent <= 0:
         return self.min_chance
     elif percent > self.max_chance:
         return self.max_chance
     return round(percent, 2)
Esempio n. 2
0
    async def stocks(self): return DB.show_users_count() * randint(50, 100)

    def __init__(self, file='situation.world'):