Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Barry
/
esp8266-Mud
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
97404a56
authored
2018-05-04 00:49:28 -0700
by
Barry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added bugfix for mobs and requirements for install.
1 parent
9f3f498e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
mobs.txt
requirements.txt
mobs.txt
View file @
97404a5
...
...
@@ -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']:
...
...
requirements.txt
0 → 100644
View file @
97404a5
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
Please
register
or
sign in
to post a comment