diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-11 01:14:30 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-11 01:14:30 -0300 |
commit | 08ed7098e4df53a8ede5f65e27e77c783edfb901 (patch) | |
tree | 71462b1e219e25e907b013792b0739cce7a21d65 /battle | |
parent | a0f64244cfc0ff5f36c1d9baab7783afd11d33c7 (diff) | |
download | server-08ed7098e4df53a8ede5f65e27e77c783edfb901.tar.gz server-08ed7098e4df53a8ede5f65e27e77c783edfb901.tar.bz2 server-08ed7098e4df53a8ede5f65e27e77c783edfb901.tar.xz server-08ed7098e4df53a8ede5f65e27e77c783edfb901.zip |
Summoning protocol, alpha version (working)
Diffstat (limited to 'battle')
-rw-r--r-- | battle/summons.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/battle/summons.py b/battle/summons.py index ff128e1..ec60b7c 100644 --- a/battle/summons.py +++ b/battle/summons.py @@ -28,8 +28,8 @@ def handle_summon(token, summon): global Battle, Player try: - # Log that summon was used - Battle[token]["log"].append(["", 0, SRV_SUMMON, summon["summon_id"], "", 0]) + # Log that summon was used (single action log) + Battle[token]["log"]=[["", 0, SRV_SUMMON, summon["summon_id"], "", 0]] # Summon strength is based on player rank force=summon["strength"]*Player[token]["level"] @@ -77,13 +77,13 @@ def summon(args, token): stdout("All fine thus far") except: # Invalid data - return ERR_SUMMON + return compress(ERR_SUMMON) # Already summoned (reverse logic) try: Battle["s"]+=1 Battle["s"]-=1 - return ERR_SUMMON + return compress(ERR_SUMMON) except: pass |