summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--game/battle.rpy2
-rw-r--r--game/misc.rpy2
-rw-r--r--game/quest.rpy2
-rw-r--r--game/script.rpy2
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