Ver Fonte

[fixed] iif doesn't seem to work

julzor há 4 anos atrás
pai
commit
3c824471ea
2 ficheiros alterados com 10 adições e 2 exclusões
  1. 5 1
      locations/preCUST.qsrc
  2. 5 1
      locations/saveupdater.qsrc

+ 5 - 1
locations/preCUST.qsrc

@@ -672,7 +672,11 @@ if $ARGS[0] = 'Done':
 		lastmens = daylastperiod+4
 	end
 
-	iif (difficulty = 4, cyccustom = 0, cyccustom = 1)
+	if difficulty = 4:
+		cyccustom = 0
+	else
+		cyccustom = 1
+	end
 	
 	pcs_horny = 0
 	killvar 'opPRE'

+ 5 - 1
locations/saveupdater.qsrc

@@ -687,7 +687,11 @@ end
 if cyc_update = 0:
 	cyc_update = 1
 	daylastperiod = firstmens
-	iif (difficulty = 4, cyccustom = 0, cyccustom = 1)
+	if difficulty = 4:
+		cyccustom = 0
+	else
+		cyccustom = 1
+	end
 end
 
 --- saveupdater ---------------------------------