diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-21 10:41:14 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-21 10:41:14 -0300 |
commit | d824e256f9e6482a10134d7ab6f124627f3dad88 (patch) | |
tree | 3998328ff173c76e047b24cbc433ed564e0c656e | |
parent | fd43c9fd5b37ecc99c4a48c455485249f108ae3e (diff) | |
download | client-d824e256f9e6482a10134d7ab6f124627f3dad88.tar.gz client-d824e256f9e6482a10134d7ab6f124627f3dad88.tar.bz2 client-d824e256f9e6482a10134d7ab6f124627f3dad88.tar.xz client-d824e256f9e6482a10134d7ab6f124627f3dad88.zip |
update_ap now uses the websocket stream, so it no longer needs a value.
-rw-r--r-- | game/battle.rpy | 2 | ||||
-rw-r--r-- | game/misc.rpy | 2 | ||||
-rw-r--r-- | game/quest.rpy | 2 | ||||
-rw-r--r-- | game/script.rpy | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/game/battle.rpy b/game/battle.rpy index 28f3c26..8b89d1e 100644 --- a/game/battle.rpy +++ b/game/battle.rpy @@ -145,7 +145,7 @@ label results: if (response["rank"]): Player["level"]+=1 Player["max_ap"]+=response["rank"]-1 - update_ap(Player["max_ap"]-Player["ap"]) + update_ap() #Player["exp"]+=1 expmsg="PLAYER {b}RANK UP!{/b} (Max Ap: %d -> %d)" % (Player["max_ap"]-response["rank"]+1, Player["max_ap"]) diff --git a/game/misc.rpy b/game/misc.rpy index adc7876..41d8224 100644 --- a/game/misc.rpy +++ b/game/misc.rpy @@ -307,7 +307,7 @@ init python: pass return - def update_ap(newval=0): + def update_ap(): Player["aptime"] = now() renpy.invoke_in_thread(ap_restore) return diff --git a/game/quest.rpy b/game/quest.rpy index 0eb310f..b6025ba 100644 --- a/game/quest.rpy +++ b/game/quest.rpy @@ -122,7 +122,7 @@ label quest_selected: python: # Consume the AP - update_ap(-(quest["cost"])) + update_ap() # Before fighting, should we perhaps show story? if Player["quest"] < qid: diff --git a/game/script.rpy b/game/script.rpy index 3c81e7e..b4cce2c 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -217,7 +217,7 @@ label prologue: call SQ00001_prologue # Automatically begin quest $ Battle=loadquest(1) - $ update_ap(-1) + $ update_ap() play music MUSIC_BATTLE.id() fadein 0.5 $ renpy.free_memory() window hide |