Commit 1744d80c authored by nschroeder1771's avatar nschroeder1771
Browse files

Added the super harvester ant and its food cost and production levels.

parent 319be45c
......@@ -113,7 +113,7 @@ class UnitType(Enum):
BEE = 'BEE'
HARVESTER = 'HARVESTER'
THROWER = 'THROWER'
SUPER_HARVESTER = 'SUPER HARVESTER'
class Insect(object):
"""
......@@ -280,6 +280,8 @@ class Harvester(Ant):
"""
game_state.food += self.production
class SuperHarvester(Harvester):
class Thrower(Ant):
"""
......@@ -536,6 +538,7 @@ class GameState(object):
STANDARD_ANT_ARCHETYPES = (
Harvester(UnitType.HARVESTER, food_cost=3, health=1, production=1),
Thrower(UnitType.THROWER, food_cost=7, health=1, damage=1, ammo=4, minimum_range=0, maximum_range=2),
SuperHarvester(UnitType.SUPER_HARVESTER, food_cost=5, health=1, production=2)
)
......
......@@ -112,6 +112,7 @@ class Game(BoxLayout):
ants_vs_some_bees.UnitType.BEE: 'assets/bee.gif',
ants_vs_some_bees.UnitType.HARVESTER: 'assets/ant_harvester.gif',
ants_vs_some_bees.UnitType.THROWER: 'assets/ant_medium.gif',
ants_vs_some_bees.UnitType.SUPER_HARVESTER: 'ant_fire.gif'
}
LEAF_SPRITE_FILENAMES = {
ants_vs_some_bees.UnitType.THROWER: 'assets/leaf_green.gif',
......
#:import Game main.Game
#:import UnitType ants_vs_some_bees.UnitType
#:set SPRITE_SIZE (Game.SPRITE_WIDTH, Game.SPRITE_HEIGHT)
#:set UNIT_NAMES {UnitType.HARVESTER: 'Harvester Ant', UnitType.THROWER: 'Leaf Thrower'}
#:set UNIT_NAMES {UnitType.HARVESTER: 'Harvester Ant', UnitType.THROWER: 'Leaf Thrower', UnitType.SUPER_HARVESTER: 'Super Harvester Ant'}
ScreenManager:
Screen:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment