diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-08-07 01:17:32 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-08-07 01:17:32 -0300 |
commit | 0d3afda98eafcdb80d73aa41ec256af318386779 (patch) | |
tree | f7e56fa4ca72f0f528692320b1dcaf629365618a | |
parent | 2f9ba20dec23060ea21d90feb358da7691993d67 (diff) | |
download | sdk-0d3afda98eafcdb80d73aa41ec256af318386779.tar.gz sdk-0d3afda98eafcdb80d73aa41ec256af318386779.tar.bz2 sdk-0d3afda98eafcdb80d73aa41ec256af318386779.tar.xz sdk-0d3afda98eafcdb80d73aa41ec256af318386779.zip |
Minor bugs on quest editor
-rw-r--r-- | qeditor.rpy | 2 | ||||
-rw-r--r-- | 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", |