示例#1
0
 def _is_buildable(self, building_id):
     building_increments = BuildTab.get_building_increments()
     return building_id in building_increments and \
            building_increments[ building_id ] <= self.session.world.player.settler_level
	def _is_buildable(self, building_id):
		building_tiers = BuildTab.get_building_tiers()
		return building_id in building_tiers and \
		       building_tiers[ building_id ] <= self.session.world.player.settler_level
示例#3
0
 def _is_buildable(self, building_id):
     building_increments = BuildTab.get_building_increments()
     return (
         building_id in building_increments
         and building_increments[building_id] <= self.session.world.player.settler_level
     )