97404a56 by Barry

Added bugfix for mobs and requirements for install.

1 parent 9f3f498e
......@@ -41,9 +41,13 @@ def run_mobs(players, mud):
print(player)
print('checking actions in room: ' + player['room'])
room_monsters = utils.load_object_from_file('rooms/{}_monsters.json'.format(player['room']))
if not room_monsters:
continue
for mon_name, monster in room_monsters.items():
print(mon_name)
monster_template = utils.load_object_from_file('mobs/{}.json'.format(mon_name))
if not monster_template:
continue
print(monster)
for active_monster in monster['active']:
if active_monster['action'] == "attack" and active_monster['target'] == player['name']:
......
ecdsa==0.13
esptool==2.3.1
future==0.16.0
iso8601==0.1.12
psutil==5.4.5
pyaes==1.6.1
pyserial==3.4
PyYAML==3.12