diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-20 17:51:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-20 17:51:57 -0300 |
commit | cbd7d7ebd46d04181f50f4406ce75a1e27066031 (patch) | |
tree | 9d3858a5e4f8d9cdd83a6226eed646fcbc9f4394 /protocol.py | |
parent | 5c0640a140f9125fdc6ca90c63f54dc57f1e05f7 (diff) | |
download | server-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.py | 12 |
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 |