summaryrefslogtreecommitdiff
path: root/protocol.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-20 17:51:57 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-20 17:51:57 -0300
commitcbd7d7ebd46d04181f50f4406ce75a1e27066031 (patch)
tree9d3858a5e4f8d9cdd83a6226eed646fcbc9f4394 /protocol.py
parent5c0640a140f9125fdc6ca90c63f54dc57f1e05f7 (diff)
downloadserver-cbd7d7ebd46d04181f50f4406ce75a1e27066031.tar.gz
server-cbd7d7ebd46d04181f50f4406ce75a1e27066031.tar.bz2
server-cbd7d7ebd46d04181f50f4406ce75a1e27066031.tar.xz
server-cbd7d7ebd46d04181f50f4406ce75a1e27066031.zip
Register all the old protocols (set party, upgrade, evolve, sell).
Incl. in comments "recruit" and "summon". They were not tested in Python3, beware!!
Diffstat (limited to 'protocol.py')
-rw-r--r--protocol.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/protocol.py b/protocol.py
index b560a1e..b3d972b 100644
--- a/protocol.py
+++ b/protocol.py
@@ -90,6 +90,18 @@ def parse(packet, conn):
r=battle.begin_quest(data[2], t)
elif data[1] == "get_party":
r=player.get_party(data[2], t)
+ elif data[1] == "set_party":
+ r=player.set_party(data[2], t)
+ elif data[1] == "upgrade":
+ r=player.upgrade(data[2], t);
+ elif data[1] == "evolve":
+ 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] == "summon":
+ # r=battle.summon(data[2], t)
else:
r=ERR_BAD