summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--00_init.rpy16
-rw-r--r--qeditor.rpy2
-rw-r--r--ueditor.rpy16
3 files changed, 17 insertions, 17 deletions
diff --git a/00_init.rpy b/00_init.rpy
index 843be94..c43e4fc 100644
--- a/00_init.rpy
+++ b/00_init.rpy
@@ -27,6 +27,22 @@ init -3 python:
persistent.allfiles=[]
allfiles=[]
+ def ParseEle(ele):
+ if ele == 0:
+ return "Neutral"
+ elif ele == 1:
+ return "Fire"
+ elif ele == 2:
+ return "Water"
+ elif ele == 3:
+ return "Nature"
+ elif ele == 4:
+ return "Light"
+ elif ele == 5:
+ return "Shadow"
+ else:
+ return "ERROR (%d)" % ele
+
# Smart Print command
def stdout(message):
print(message)
diff --git a/qeditor.rpy b/qeditor.rpy
index 37cfe0a..3d5112b 100644
--- a/qeditor.rpy
+++ b/qeditor.rpy
@@ -174,7 +174,7 @@ screen quest_editor():
textbutton "{size=20}%d{/size}" % mob["sprite"] action None
hbox:
spacing 7
- textbutton "{size=20}Ele: %d{/size}" % mob["attribute"] action None
+ textbutton "{size=20}Ele: %s{/size}" % ParseEle(mob["attribute"]) action None
textbutton "{size=20}Boss: %s{/size}" % str(mob["boss"]) action Function(qeditor_input, "waves", wc-1, "bool", key3=mc-1, key4="boss")
null width 20
textbutton _("X Delete") action Function(qeditor_delete, "waves", wc-1, mc-1)
diff --git a/ueditor.rpy b/ueditor.rpy
index 45ff1f4..055de35 100644
--- a/ueditor.rpy
+++ b/ueditor.rpy
@@ -210,22 +210,6 @@ init python:
else:
return "ERROR (%d)" % job
- def ParseEle(ele):
- if ele == 0:
- return "Neutral"
- elif ele == 1:
- return "Fire"
- elif ele == 2:
- return "Water"
- elif ele == 3:
- return "Nature"
- elif ele == 4:
- return "Light"
- elif ele == 5:
- return "Shadow"
- else:
- return "ERROR (%d)" % ele
-
def RestartInteraction():
renpy.restart_interaction()
return