summaryrefslogtreecommitdiff
path: root/game/01_init.rpy
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-19 00:31:37 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-19 00:31:37 -0300
commite0a24b62090551fa0f79eaea64ad34a56e3e569f (patch)
tree8ccb8badc21301e63d021993899b65389a47595e /game/01_init.rpy
parenta2f84b028b463e2c9337edad08b173c6699fa558 (diff)
downloadclient-e0a24b62090551fa0f79eaea64ad34a56e3e569f.tar.gz
client-e0a24b62090551fa0f79eaea64ad34a56e3e569f.tar.bz2
client-e0a24b62090551fa0f79eaea64ad34a56e3e569f.tar.xz
client-e0a24b62090551fa0f79eaea64ad34a56e3e569f.zip
Add support to HTTP requests.
Python2.7 for Android is... not very good for HTTPS requests, that's all =/
Diffstat (limited to 'game/01_init.rpy')
-rw-r--r--game/01_init.rpy7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/01_init.rpy b/game/01_init.rpy
index 15e8b2a..0a71d63 100644
--- a/game/01_init.rpy
+++ b/game/01_init.rpy
@@ -129,6 +129,13 @@ init -3 python:
time.sleep(delta)
return
+ # IF Then Else (IFTE)
+ def ifte(ifs, then, elses):
+ if (ifs):
+ return then
+ else:
+ return elses
+
# Global classes
# We need to override standard list method. Original by Triptych (stackoverflow)