Commit f281013b authored by nschroeder1771's avatar nschroeder1771
Browse files

Added more functionality to the NinjaThrower.

parent 057c71f6
......@@ -307,7 +307,6 @@ class SuperHarvester(Harvester):
"""
class Thrower(Ant):
"""
A Thrower throws a leaf each turn at the nearest Bee in its range.
......@@ -555,7 +554,7 @@ class NinjaThrower(Thrower):
self.ammo -= 1
if self.ammo <= 0:
self.reduce_health(self.health)
if target_bee is None:
if self.ammo == 1:
self.ammo += 1
......@@ -683,7 +682,7 @@ STANDARD_ANT_ARCHETYPES = (
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),
NinjaThrower(UnitType.NINJA_THROWER, food_cost=10, health=1, damage=2, ammo=4, minimum_range=0, maximum_range=2),
WallAnt(UnitType.WALL_ANT, food_cost=5, health= 3)
WallAnt(UnitType.WALL_ANT, food_cost=5, health=3)
)
......
......@@ -103,7 +103,7 @@ ScreenManager:
text: 'A super harvester ant costs 5 food units to deploy, but produces 2 units of food per turn. This ant also must be next to a leaf thrower in order to survive'
CaptionedSprite:
source: 'assets/ant_ninja.gif'
text: 'A ninja thrower ant costs 10 food units to deploy and dies after throwing four leaves, this ant also regains an additional leaf when kills a bee. It will only throw leaves outward, away from the queen. However, each leaf does twice the damage of a leaf thrower.'
text: 'A ninja thrower ant costs 10 food units to deploy and dies after throwing four leaves, this ant also regains an additional leaf when it reaches one ammo left as a heroic act. It will only throw leaves outward, away from the queen. However, each leaf does twice the damage of a leaf thrower.'
CaptionedSprite:
source: 'assets/ant_wall.gif'
text: 'A wall ant costs 5 food units to deploy and has three times the health of the other ants. This wall ant must be placed next to another ant in order to survive.'
......
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