# Step 4: find out the avg damage from each type of attack and sort them
# find out if we need to do defensive actions given the amount of life left in the enemy vs how much damage it does.
# We should also store how hard the AI has hit previously and adjust accordingly (Store previous average damage per hit). IE project how much damage we will
...
...
@@ -934,38 +1003,45 @@ class Monster:
resisted=False
damage=0
self.get_best_action(monster)
######
# TODO: Build some type of AI / testing to find the most powerful attack and use that (magic, melee, or ranged)
@@ -1201,12 +1278,13 @@ if __name__ == "__main__":
print("{} {} {} against {} for {}.".format(action.attacker.get_monster_name(),action.message,action.spell,action.target.get_monster_name(),action.damage))