From c25ec571bdc73e354746e0cf905d8520f90b18d3 Mon Sep 17 00:00:00 2001 From: adrianyang2012 <69127002+adrianyang2012@users.noreply.github.com> Date: Mon, 3 May 2021 13:39:43 -0700 Subject: [PATCH] Update enemies.py --- sources/enemies.py | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/sources/enemies.py b/sources/enemies.py index 730ecde..2f7d5bf 100644 --- a/sources/enemies.py +++ b/sources/enemies.py @@ -1,8 +1,4 @@ -""" Text adventure game - @insta = @lakshaytalkstocomputer - @year = 2018 -""" -__author__ = "lakshaytalkstocomputer" + class Enemy: @@ -21,7 +17,7 @@ def __init__(self): self.name = " Giant Spider" self.hp = 10 self.damage = 2 - + self.agresive_level = 3 #from 1 - 3 class Ogre(Enemy): def __init__(self): @@ -35,6 +31,7 @@ def __init__(self): self.name = "Colony of Bats" self.hp = 100 self.damage = 4 + self.agresive_level = 2 #from 1 - 3 class RockMonster(Enemy): @@ -42,3 +39,23 @@ def __init__(self): self.name = "Rock Monster" self.hp = 80 self.damage = 15 + self.agresive_level = 3 #from 1 - 3 + +class sheep(Enemy): + def __init__(self): + self.name = "Rock Monster" + self.hp = 10 + self.damage = 0 + self.agresive_level = 1 #from 1 - 3 +class cow(Enemy): + def __init__(self): + self.name = "Rock Monster" + self.hp = 15 + self.damage = 0 + self.agresive_level = 1 #from 1 - 3 +class electicity_dragon(Enemy): + def __init__(self): + self.name = "Rock Monster" + self.hp = 300 + self.damage = 50 + self.agresive_level = 3 #from 1 - 3