def __add_items_to_level(self): _chart = ItemChart() _chart.common_items[0] = ('shotgun shell', 7) _chart.common_items[1] = ('medkit', 0) _chart.common_items[2] = ('old fatigues', 0) _chart.common_items[3] = ('flare', 0) _chart.common_items[4] = ('ritalin', 5) _chart.common_items[5] = ('baseball bat', 0) _chart.common_items[6] = ('shotgun shell', 7) _chart.common_items[7] = ('medkit', 0) _chart.common_items[8] = ('amphetamine', 5) _chart.common_items[9] = ('combat boots', 0) _chart.uncommon_items[0] = ('army helmet', 0) _chart.uncommon_items[1] = ('C4 Charge', 0) _chart.uncommon_items[2] = ('flak jacket', 0) _chart.uncommon_items[3] = ('riot helmet', 0) _chart.uncommon_items[4] = ('stimpak', 0) _chart.uncommon_items[5] = ('battery', 3) _chart.uncommon_items[6] = ('long leather coat', 0) _chart.uncommon_items[7] = ('flashlight', 0) _chart.uncommon_items[8] = ('rubber boots', 0) _chart.uncommon_items[9] = ('throwing knife', 2) _chart.uncommon_items[10] = ('9mm clip', 0) _chart.uncommon_items[11] = ('m1911a1', 0) _chart.uncommon_items[12] = ('instant coffee', 0) _chart.rare_items[0] = ('grenade', 3) _chart.rare_items[1] = ('kevlar vest', 0) _chart.rare_items[2] = ('riot gear', 0) _chart.rare_items[3] = ('chainsaw', 0) _chart.rare_items[4] = ('infra-red goggles', 0) _chart.rare_items[5] = ('targeting wizard', 0) _chart.rare_items[6] = ('flash bomb',2) _chart.rare_items[7] = ('machine gun clip', 0) _chart.rare_items[8] = ('m16 assault rifle', 0) _chart.rare_items[9] = ('taser', 0) [self.add_item(_chart) for k in range(randrange(5,10))]
def __add_items_to_level(self): _chart = ItemChart() _chart.common_items[0] = ('shotgun shell', 7) _chart.common_items[1] = ('medkit', 0) _chart.common_items[2] = ('flare', 0) _chart.common_items[3] = ('ritalin', 5) _chart.common_items[4] = ('shotgun shell', 7) _chart.common_items[5] = ('medkit', 0) _chart.common_items[6] = ('amphetamine', 5) _chart.common_items[7] = ('combat boots', 0) _chart.uncommon_items[0] = ('army helmet', 0) _chart.uncommon_items[1] = ('C4 Charge', 0) _chart.uncommon_items[2] = ('flak jacket', 0) _chart.uncommon_items[3] = ('riot helmet', 0) _chart.uncommon_items[4] = ('stimpak', 0) _chart.uncommon_items[5] = ('battery', 3) _chart.uncommon_items[6] = ('grenade', 3) _chart.uncommon_items[7] = ('long leather coat', 0) _chart.uncommon_items[8] = ('flashlight', 0) _chart.rare_items[0] = ('kevlar vest', 0) _chart.rare_items[1] = ('riot gear', 0) _chart.rare_items[2] = ('infra-red goggles', 0) _chart.rare_items[3] = ('targeting wizard', 0) [self.add_item(_chart) for k in range(randrange(8,16))]