summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-13 00:05:03 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-13 00:05:03 -0300
commita01837e928b4b7ec22b35a27f3222e9ce88c100a (patch)
tree70f07b15d2b63e66c2bbc65c1bac64cc504c23d3
parent297f8e9b1f412dfc0d4b92ab6b03194a8222a326 (diff)
downloadclient-a01837e928b4b7ec22b35a27f3222e9ce88c100a.tar.gz
client-a01837e928b4b7ec22b35a27f3222e9ce88c100a.tar.bz2
client-a01837e928b4b7ec22b35a27f3222e9ce88c100a.tar.xz
client-a01837e928b4b7ec22b35a27f3222e9ce88c100a.zip
Store persistent.summon, which holds the active summon
(Within the limits of `Player["max_sum"]`)
-rw-r--r--game/01_init.rpy2
-rw-r--r--game/quest.rpy2
2 files changed, 3 insertions, 1 deletions
diff --git a/game/01_init.rpy b/game/01_init.rpy
index 4d91263..d9e2168 100644
--- a/game/01_init.rpy
+++ b/game/01_init.rpy
@@ -47,6 +47,8 @@ init -3 python:
persistent.serverlist.append(["Localhost", "localhost", 61000])
if (persistent.allfiles is None):
persistent.allfiles=[]
+ if (persistent.summon is None):
+ persistent.summon=ifte(config.developer, 15, 0)
allfiles=[]
HOST=str(persistent.host)
PORT=str(persistent.port)
diff --git a/game/quest.rpy b/game/quest.rpy
index dbdc1ef..b150777 100644
--- a/game/quest.rpy
+++ b/game/quest.rpy
@@ -39,7 +39,7 @@ init python:
def loadsummon():
global Battle
# FIXME: Retrieve summon ID, etc
- raw=send_packet("summon", "[%d]" % ifte(debug, 15, 0))
+ raw=send_packet("summon", "[%d]" % persistent.summon)
bt=json_decode(raw)
if (bt == ERR_JSONDECODER):