Преглед изворни кода

[fixed] simplify conditional in sitr

Spackled Lanturn пре 3 година
родитељ
комит
ef38565374
1 измењених фајлова са 2 додато и 8 уклоњено
  1. 2 8
      locations/sitr.qsrc

+ 2 - 8
locations/sitr.qsrc

@@ -61,14 +61,8 @@ gs 'exercise', 'start'
 !!if husband > 0 and husbandrink ! 10 and week = 5 and hour > 17 and hour < 21 and housegostrand > 15:gt 'sitr', 'guest'
 
 if husband > 0 and husbandrink ! 10 and husbandrinkday ! daystart:
-	if week < 6:
-		if hour > 17 and hour <= 22:'<a href="exec:gt ''husb'', ''start''">Your husband sits on the couch and watches television.</a>'
-	else
-		if hour > 7 and hour < 17:
-			'<a href="exec:gt ''husb'', ''start''">Your husband sits on the couch and watches television.</a>'
-		elseif hour > 17 and hour <= 22:
-			'<a href="exec:gt ''husb'', ''start''">Your husband sits on the couch and watches television.</a>'
-		end
+	if (week >= 6 and hour > 7 and hour < 17) or (hour > 17 and hour <= 22):
+		'<a href="exec:gt ''husb'', ''start''">Your husband sits on the couch and watches television.</a>'
 	end
 end