From 0d3afda98eafcdb80d73aa41ec256af318386779 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 7 Aug 2022 01:17:32 -0300 Subject: Minor bugs on quest editor --- qeditor.rpy | 2 +- qeditor_adv.rpy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qeditor.rpy b/qeditor.rpy index 2137e0b..3ad8c48 100644 --- a/qeditor.rpy +++ b/qeditor.rpy @@ -233,7 +233,7 @@ init python: alltquests["Main"].sort(key=lambda x: x["quest_id"]) allquests=alltquests["Main"] f=open(get_path("quests.editor.json"), "w") - json.dump(allquests, f, indent=4, separators=(',', ': ')) + json.dump(allquests, f, indent=4, separators=(',', ': '), sort_keys=True) f.close() renpy.notify("File saved as quests.editor.json") return diff --git a/qeditor_adv.rpy b/qeditor_adv.rpy index be86f04..4c23d3c 100644 --- a/qeditor_adv.rpy +++ b/qeditor_adv.rpy @@ -114,7 +114,7 @@ label qeditor_supernew: "quest_id": queid, "difficulty": qdif, # FIXME too steep "requeriment": qeid-1, - "cost": 1+(qeid / 5), + "cost": 1+(qeid // 5), "flags": qefl, "music": "bgm03", "bg": "battle", -- cgit v1.2.3-60-g2f50