From a01837e928b4b7ec22b35a27f3222e9ce88c100a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 13 Aug 2021 00:05:03 -0300 Subject: Store persistent.summon, which holds the active summon (Within the limits of `Player["max_sum"]`) --- game/01_init.rpy | 2 ++ game/quest.rpy | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3-60-g2f50