summaryrefslogtreecommitdiff
path: root/00_init.rpy
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-29 22:04:35 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-29 22:04:35 -0300
commitc0317012d1e4be856becc1238436842fa69c4864 (patch)
treee7318b3c8969fb6cff618904f1fa71d718b012b0 /00_init.rpy
parent58fabe77a6cd7770ef74884529f841ba107565f8 (diff)
downloadsdk-c0317012d1e4be856becc1238436842fa69c4864.tar.gz
sdk-c0317012d1e4be856becc1238436842fa69c4864.tar.bz2
sdk-c0317012d1e4be856becc1238436842fa69c4864.tar.xz
sdk-c0317012d1e4be856becc1238436842fa69c4864.zip
Increase scope of ParseEle and use it at Quest Editor
Diffstat (limited to '00_init.rpy')
-rw-r--r--00_init.rpy16
1 files changed, 16 insertions, 0 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)