Example #1
0
 def _on_db_created(self):
     for attr_name, start_value in self.race.base_attrs.items():
         setattr(self, attr_name, start_value)
         setattr(self, 'perm_{}'.format(attr_name), start_value)
     fill_pools(self)
     if self.race.start_instanced:
         self.instance_room_id = self.race.start_room.dbo_id
         self.room_id = None
     else:
         self.room_id = self.race.start_room.dbo_id
Example #2
0
 def _on_attach(self):
     self.skills = {}
     for default_skill in self.default_skills:
         add_skill(default_skill.skill_template, self, default_skill.skill_level, "mobile")
     fill_pools(self)