From 31d5ef802987b9ac74468295ab0bbbb6cc95d7ee Mon Sep 17 00:00:00 2001 From: Cameron Smart Date: Sun, 26 Apr 2020 01:11:15 -0700 Subject: [PATCH] incresed speed boost on kills --- triple-dungeon/config.py | 4 ++-- triple-dungeon/main.py | 1 + triple-dungeon/mobs.py | 1 - triple-dungeon/recipe.py | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/triple-dungeon/config.py b/triple-dungeon/config.py index 7eb7327..0c666d7 100644 --- a/triple-dungeon/config.py +++ b/triple-dungeon/config.py @@ -42,7 +42,7 @@ class Config(object): BOON_LIST = ["heal", "harden", "hurry"] HEAL_AMOUNT = 20 ARMOR_AMOUNT = 1 - SPEED_AMOUNT = 2 + SPEED_AMOUNT = 5 # How many pixels to keep as a minimum margin between the characters and the edge of the screen. LEFT_VIEWPORT_MARGIN = 700 @@ -54,7 +54,7 @@ class Config(object): DEBUG = False # Monster Count to be spawned - MONSTER_COUNT = 8 + MONSTER_COUNT = 6 class Enums(Enum): diff --git a/triple-dungeon/main.py b/triple-dungeon/main.py index 8667c1b..7142760 100644 --- a/triple-dungeon/main.py +++ b/triple-dungeon/main.py @@ -247,6 +247,7 @@ class Game(arcade.Window): boon = self.Recipe.add_kill(enemy_hit_list[0].monster_type) if boon >= 0: getattr(self.player, Config.BOON_LIST[boon])(); + self.player.hurry() enemy_hit_list[0].remove_from_sprite_lists() bullet.remove_from_sprite_lists() diff --git a/triple-dungeon/mobs.py b/triple-dungeon/mobs.py index 064d3d7..cbb04b6 100644 --- a/triple-dungeon/mobs.py +++ b/triple-dungeon/mobs.py @@ -67,7 +67,6 @@ class MobHandler: # Enemy activation and update for enemy in reversed(self.enemy_list): - # TODO replace with distance checking distance = self.get_distance(enemy) enemy.collisions.update() if (distance < 300): diff --git a/triple-dungeon/recipe.py b/triple-dungeon/recipe.py index 71b5488..d2bf5b9 100644 --- a/triple-dungeon/recipe.py +++ b/triple-dungeon/recipe.py @@ -64,7 +64,6 @@ class ActiveRecipe(arcade.SpriteList): ret_val = -1 if len(self.kill_list) >= 3: if self.active == self.kill_list: - print("+++++++++++++++++++++++++++++++++++++++++++++++++++++++") self.kill_list = [] ret_val = self.pos self.kill_list = []