Esempio n. 1
0
 def pickup(self, room, client):
     if self.spawntime != -1: return
     client.state.pickup_item(self.type)
     
     with room.broadcastbuffer(1, True) as cds: 
         swh.put_itemacc(cds, self, client)
         
     playercount = len(room.clients)
     self.spawntime = time.time() + Item.respawn_delay(self.type, playercount)
     self.announced = False