@@ -45,7 +45,8 @@ def __init__(self, name, _class, max_health, melee_attack, magic_attack,
4545 self .equipped_weapon = equipped_weapon
4646 self .equipped_armor = equipped_armor
4747
48- self .inventory = []
48+ self .inventory = [Items .flint , Items .water ]
49+ # start with a couple of things so we can play with inventory management
4950 self .inventory_limit = 10
5051
5152 # Map position
@@ -64,8 +65,9 @@ def move(self, _dir):
6465 print (WorldMap .access_information (new_x , new_y , "Name" ))
6566 pause ()
6667
68+ # TODO methods like this should probably be moved to mechanics
69+ # the script classes shouldn't be dealing with UI, only handling the class instances
6770 def inspect_area (self ):
68- print ("======CALLED=======" )
6971 info = {
7072 "Name" : WorldMap .access_information (self .pos_x , self .pos_y , "Name" ),
7173 "Resources" : WorldMap .access_information (self .pos_x , self .pos_y , "Resources" ),
@@ -78,45 +80,3 @@ def inspect_area(self):
7880 print ("Spawns: " + str (info ["Spawns" ]))
7981 print ("Info: " + str (info ["Info" ]))
8082 pause ()
81-
82-
83- """
84- # enemy mobs
85- # Zombies are a close fighter, he needs to be with in 1 block from mob to attack
86- zombie = Mob(name="Zombie", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
87- defense=15, luck=5, mob_class="Undead", gold_drop=10, exp_drop=10, item_drop="Flesh")
88- yeti = Mob(name="Yeti", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
89- defense=15, luck=5, mob_class="Undead", gold_drop=10, exp_drop=10, item_drop="Flesh")
90- bandit = Mob(name="Bandit", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
91- defense=15, luck=5, mob_class="Human", gold_drop=10, exp_drop=10, item_drop="Flesh")
92- mercenary = Mob(name="Mercenary", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
93- defense=15, luck=5, mob_class="Human", gold_drop=10, exp_drop=10, item_drop="Flesh")
94- skeleton = Mob(name="Skeleton", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
95- defense=15, luck=5, mob_class="Undead", gold_drop=10, exp_drop=10, item_drop="Flesh")
96- golem = Mob(name="Golem", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
97- defense=15, luck=5, mob_class="Elemental", gold_drop=10, exp_drop=10, item_drop="Flesh")
98- witch = Mob(name="Witch", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
99- defense=15, luck=5, mob_class="Human", gold_drop=10, exp_drop=10, item_drop="Flesh")
100- hellHounds = Mob(name="Hell Hounds", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
101- defense=15, luck=5, mob_class="Undead", gold_drop=10, exp_drop=10, item_drop="Flesh")
102-
103- # animal mobs
104- dog = Mob(name="Dog", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
105- defense=15, luck=5, mob_class="Animal", gold_drop=10, exp_drop=10, item_drop="Flesh")
106-
107- # bosses
108- wyrm = Mob(name="Wyrm", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
109- defense=15, luck=5, mob_class="Dragon", gold_drop=10, exp_drop=10, item_drop="Dragon Scale",
110- special_item_drop="Special Drop")
111- kraken = Mob(name="Kraken", max_health=100, melee_attack=10, magic_attack=0, max_mana=0, max_stamina=20,
112- defense=15, luck=5, mob_class="Dragon", gold_drop=10, exp_drop=10, item_drop="Dragon Scale",
113- special_item_drop="Special Drop")
114-
115- hostile_mobs = {"Zombie": zombie, "Yeti": yeti, "Bandit": bandit, "Mercenary": mercenary, "Skeleton": skeleton,
116- "Golem": golem, "Witch": witch,
117- "Hell Hounds": hellHounds}
118-
119- friendly_mobs = {"Dog": dog}
120-
121- bosses = {"Wyrm": wyrm, "Kraken": kraken}
122- """
0 commit comments