Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Remove extra logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogenvik committed Jul 4, 2020
1 parent 67e7097 commit c98eff7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions data/rulesets/basic/scripts/mind/goals/common/combat.py
Expand Up @@ -161,7 +161,6 @@ def get_enemy(self, me):
return enemy

def attack_melee(self, me):
print("attack melee")
enemy = self.get_enemy(me)
# check that we can reach the target, and if so attack it
distance = me.steering.distance_to(enemy, ai.EDGE, ai.EDGE)
Expand All @@ -180,7 +179,6 @@ def attack_melee(self, me):
return True

if attached_current:
print("Hitting with a weapon")
return move_to_face + Operation("use", Operation(self.weapon_usage, Entity(attached_current.id,
targets=[Entity(enemy.id)])))
else:
Expand All @@ -201,7 +199,6 @@ def attack_melee(self, me):
Root(args=[Entity("stop")], id="melee", objtype="task"))

def attack_ranged(self, me):
print("attack ranged")
enemy = self.get_enemy(me)
# check that we can reach the target, and if so attack it
distance = me.steering.distance_to(enemy, ai.EDGE, ai.EDGE)
Expand All @@ -212,7 +209,6 @@ def attack_ranged(self, me):
tasks_prop = me.entity.get_prop_map('tasks')

if distance < 50:
print("in range")
move_to_face = me.face(enemy)

if attached_current:
Expand Down

0 comments on commit c98eff7

Please sign in to comment.