diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-04 16:12:17 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-04 16:12:17 -0300 |
commit | 06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f (patch) | |
tree | a1acff2961cb9b12dab59b91d2f91bbdc33ba36a | |
parent | cbc4395890fdd7ca1794c7f75929348b4d19d421 (diff) | |
download | server-06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f.tar.gz server-06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f.tar.bz2 server-06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f.tar.xz server-06d5ff5fb30fc0dd8c6bd5b9e0b2c75dfe7c1b6f.zip |
I also did a typo which prevented players from gaining spheres
-rw-r--r-- | battle/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/battle/main.py b/battle/main.py index bd9c90a..3cc92f8 100644 --- a/battle/main.py +++ b/battle/main.py @@ -348,7 +348,7 @@ def battle_endturn(token, spheres): stdout("Exceeding spheres removed", 2) # Add 1~3 random spheres; But never go over 5 spheres - i=min(random.randint(1,3), len(Battle[token]["spheres"]) - 5) + i=min(random.randint(1,3), 5 - len(Battle[token]["spheres"])) while i > 0: i-=1 sp=random.choice([ |