summaryrefslogtreecommitdiff
path: root/protocol.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-21 21:46:40 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-21 21:46:40 -0300
commite2c84d56310f2d7da68d9ee8c6d2a504683f70fb (patch)
tree2b99928c4a9e7221ae1907d4aef3849756645c08 /protocol.py
parent9ac11f71373eaf5eb8cedc9a1a916c46385cc648 (diff)
downloadserver-e2c84d56310f2d7da68d9ee8c6d2a504683f70fb.tar.gz
server-e2c84d56310f2d7da68d9ee8c6d2a504683f70fb.tar.bz2
server-e2c84d56310f2d7da68d9ee8c6d2a504683f70fb.tar.xz
server-e2c84d56310f2d7da68d9ee8c6d2a504683f70fb.zip
Add Tavern protocols back (in theory, at least, completely untested)
Diffstat (limited to 'protocol.py')
-rw-r--r--protocol.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocol.py b/protocol.py
index 25633ee..33c4e9a 100644
--- a/protocol.py
+++ b/protocol.py
@@ -20,6 +20,7 @@
# Parses packets
import utils
import player
+import tavern
import battle.main as battle
from consts import ERR_BAD, ERR_DONE, PACKET_NACK, PACKET_ACK
@@ -102,8 +103,8 @@ def parse(packet, conn):
r=player.evolve(data[2], t);
elif data[1] == "sellunits":
r=player.sellunits(data[2], t);
- #elif data[1] == "recruit":
- # r=tavern.recruit(data[2], t)
+ elif data[1] == "recruit":
+ r=tavern.recruit(data[2], t)
#elif data[1] == "summon":
# r=battle.summon(data[2], t)
else: