def _player_create(player, user): for attr_name, start_value in player.race.base_attrs.items(): setattr(player, attr_name, start_value) setattr(player, 'perm_{}'.format(attr_name), start_value) fill_pools(player) if player.race.start_instanced: player.instance_room_id = player.race.start_room.dbo_id player.room_id = None else: player.room_id = player.race.start_room.dbo_id
def config_instance(self, mobile, owner): mobile.skills = {} for default_skill in self.default_skills: add_skill(default_skill.skill_template, mobile, default_skill.skill_level, 'mobile') fill_pools(mobile) super().config_instance(mobile, owner)