summaryrefslogtreecommitdiff
path: root/battle
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-29 22:13:19 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-29 22:13:19 -0300
commitb584451b4bcaee9ecbab92acff4ab4755e0611aa (patch)
treef959c86d3c4c35a58f502ac8ed7b9c97e9b058dd /battle
parent7b8cbddcda672b79cf0162c8719576587ded1aae (diff)
downloadserver-b584451b4bcaee9ecbab92acff4ab4755e0611aa.tar.gz
server-b584451b4bcaee9ecbab92acff4ab4755e0611aa.tar.bz2
server-b584451b4bcaee9ecbab92acff4ab4755e0611aa.tar.xz
server-b584451b4bcaee9ecbab92acff4ab4755e0611aa.zip
Reduce AP cost for the quests.
Add prototype code for sphere movement.
Diffstat (limited to 'battle')
-rw-r--r--battle/main.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/battle/main.py b/battle/main.py
index 42418d2..753413e 100644
--- a/battle/main.py
+++ b/battle/main.py
@@ -412,6 +412,13 @@ def battle(args, token):
stdout("Supplied data is valid: Attempt to add invalid members")
raise Exception("Attempted to add invalid members")
"""
+ # Check if all spheres you've told us are valid
+ # FIXME: bt["sphere"] should be bt["action"]
+ """
+ if sorted(bt["sphere"]) != sorted(Battle[token]["spheres"]):
+ stdout("Spheres differ: %s != %s" % (str(sorted(bt["sphere"])), str(sorted(Battle[token]["spheres"]))))
+ raise Exception("Different spheres")
+ """
except:
# Invalid data
return ERR_BAD