Skip to content

Commit 90c4e3f

Browse files
committed
Merge branch 'main' into tool-only
2 parents a51113b + 6859001 commit 90c4e3f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

game/tool/utility.rpy

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,17 @@ init -999 python:
2020
return Null()
2121
config.displayable_prefix['check'] = null_or_image
2222

23+
def compare(a= 0, b= 0) -> int:
24+
if a is None and b is None:
25+
return 0
26+
elif b is None:
27+
return 1
28+
elif a is None:
29+
return -1
30+
return a - b
31+
32+
def isGreaterThan(a= 0, b= 0) -> bool:
33+
return compare(a, b) > 0
34+
2335
label set_background(img):
2436
scene expression (img) as bg

0 commit comments

Comments
 (0)