Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update enemies.py #10

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions sources/enemies.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
""" Text adventure game
@insta = @lakshaytalkstocomputer
@year = 2018
"""
__author__ = "lakshaytalkstocomputer"



class Enemy:
Expand All @@ -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):
Expand All @@ -35,10 +31,31 @@ def __init__(self):
self.name = "Colony of Bats"
self.hp = 100
self.damage = 4
self.agresive_level = 2 #from 1 - 3


class RockMonster(Enemy):
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