Add rabbits, beavers and teddy bears
This commit is contained in:
parent
a4eaab0db6
commit
c329ec927f
|
@ -46,6 +46,9 @@ TexturePack.ASCII_PACK = TexturePack(
|
|||
HEDGEHOG='*',
|
||||
HEART='❤',
|
||||
BOMB='o',
|
||||
RABBIT='Y',
|
||||
BEAVER='_',
|
||||
TEDDY_BEAR='8',
|
||||
)
|
||||
|
||||
TexturePack.SQUIRREL_PACK = TexturePack(
|
||||
|
@ -62,4 +65,7 @@ TexturePack.SQUIRREL_PACK = TexturePack(
|
|||
HEDGEHOG='🦔',
|
||||
HEART='💜',
|
||||
BOMB='💣',
|
||||
RABBIT='🐇',
|
||||
BEAVER='🦫',
|
||||
TEDDY_BEAR='🧸',
|
||||
)
|
||||
|
|
|
@ -34,7 +34,25 @@ class Monster(FightingEntity):
|
|||
break
|
||||
|
||||
|
||||
class Beaver(Monster):
|
||||
name = "beaver"
|
||||
maxhealth = 30
|
||||
strength = 2
|
||||
|
||||
|
||||
class Hedgehog(Monster):
|
||||
name = "hedgehog"
|
||||
maxhealth = 10
|
||||
strength = 3
|
||||
|
||||
|
||||
class Rabbit(Monster):
|
||||
name = "rabbit"
|
||||
maxhealth = 15
|
||||
strength = 1
|
||||
|
||||
|
||||
class TeddyBear(Monster):
|
||||
name = "teddy_bear"
|
||||
maxhealth = 500
|
||||
strength = 0
|
||||
|
|
|
@ -202,8 +202,9 @@ class Entity:
|
|||
@staticmethod
|
||||
def get_all_entity_classes():
|
||||
from dungeonbattle.entities.items import Heart, Bomb
|
||||
from dungeonbattle.entities.monsters import Hedgehog
|
||||
return [Hedgehog, Heart, Bomb]
|
||||
from dungeonbattle.entities.monsters import Beaver, Hedgehog, \
|
||||
Rabbit, TeddyBear
|
||||
return [Beaver, Bomb, Heart, Hedgehog, Rabbit, TeddyBear]
|
||||
|
||||
|
||||
class FightingEntity(Entity):
|
||||
|
|
Loading…
Reference in New Issue