Commit e9c44130 authored by wswiston2's avatar wswiston2
Browse files

Fixed instructions, fixed various bugs.

parent e9c1d192
......@@ -619,14 +619,14 @@ class Gangsta(Thrower):
target_bee = self._target_bee
if target_bee is not None:
self._hit_bee(target_bee)
self.ammo -= 2
self.ammo -= 1
# The next clause includes himself in range, so this is one of two ways of fixing this problem.
if self.ammo <= 0:
self.reduce_health(self.health)
for ant in game_state.ants:
if ant is not None and self.place is not None:
if abs(ant.place.world_x - self.place.world_x) < 2 and abs(ant.place.world_y - self.place.world_y) < 2:
if abs(ant.place.world_x - self.place.world_x) < 2 and abs(ant.place.world_y - self.place.world_y) < 2 and not ant.place == self.place:
self.ammo += 1
......@@ -737,7 +737,7 @@ STANDARD_ANT_ARCHETYPES = (
Harvester(UnitType.HARVESTER, food_cost=3, health=1, production=1),
Thrower(UnitType.THROWER, food_cost=7, health=1, damage=2, ammo=4, minimum_range=0, maximum_range=2),
SuperHarvester(UnitType.SUPER_HARVESTER, food_cost=5, health=1, production=2),
Gangsta(UnitType.GANGSTA, food_cost=5, health=1, damage=1, ammo=2, minimum_range=0, maximum_range=5),
Gangsta(UnitType.GANGSTA, food_cost=5, health=1, damage=1, ammo=4, minimum_range=0, maximum_range=5),
Protector(UnitType.PROTECTOR, food_cost=5, health=3)
)
......
......@@ -103,10 +103,10 @@ ScreenManager:
text: 'A super harvester costs 5 food units to deploy and harvests 2 food rather than 1 assuming it is next to a thrower. If not, it will die.'
CaptionedSprite:
source: 'assets/ant_gangsta.gif'
text: 'I really don\'t know what this one does because I haven\'t programmed it yet...'
text: 'A gangsta ant costs 5 food and gains 1 ammo from each ant around it.'
CaptionedSprite:
source: 'assets/ant_protector.gif'
text: 'A protector ant costs 5 food to deploy and has no attack, but gains health depending on the number of adjacent ants, capping at 5 health.'
text: 'A protector ant costs 5 food to deploy and has no attack, but gains health depending on the number of adjacent ants, capping at 5 health, starting at 3.'
Paragraph:
text: 'To sacrifice an ant, which can be useful if you need space for new deployments, select the sacrifice tool and tap on the ant you want to sacrifice.'
Paragraph:
......
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