diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-29 22:04:35 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-29 22:04:35 -0300 |
commit | c0317012d1e4be856becc1238436842fa69c4864 (patch) | |
tree | e7318b3c8969fb6cff618904f1fa71d718b012b0 /00_init.rpy | |
parent | 58fabe77a6cd7770ef74884529f841ba107565f8 (diff) | |
download | sdk-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.rpy | 16 |
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) |