1
0
Переглянути джерело

[fixed] alko reduction below 0 makes inhibition jump

julzor 4 роки тому
батько
коміт
ad0bd004c8

+ 1 - 1
locations/anushapt.qsrc

@@ -1036,7 +1036,7 @@ if $ARGS[0] = 'snack':
 	menu_off = 1
 	*clr & cla
 	minut += 15
-	alko -= 1
+	if alko > 0: alko -= 1
 	pcs_health += 20
 	pcs_mood += 20
 	fat += 6

+ 1 - 1
locations/artemhome.qsrc

@@ -564,7 +564,7 @@ if $ARGS[0] = 'snack':
 	menu_off = 1
 	*clr & cla
 	minut += 15
-	alko -= 1
+	if alko > 0: alko -= 1
 	pcs_health += 20
 	pcs_mood += 20
 	fat += 6

+ 4 - 4
locations/beverage.qsrc

@@ -35,7 +35,7 @@ end
 if $ARGS[0] = 'bev_jui':
 	*clr & cla
 	frost = 1
-	alko -= 1
+	if alko > 0: alko -= 1
 	minut += 10
 	fat += 3
 	money -= val($_drink['<<args[1]>>,price'])
@@ -96,7 +96,7 @@ end
 if $ARGS[0] = 'bev_wat':
 	*clr & cla
 	frost = 1
-	alko -= 1
+	if alko > 0: alko -= 1
 	minut += 1
 	money -= val($_drink['<<args[1]>>,price'])
 	pcs_health += 10
@@ -124,7 +124,7 @@ end
 if $ARGS[0] = 'bev_cof':
 	*clr & cla
 	frost = 0
-	alko -= 1
+	if alko > 0: alko -= 1
 	minut += 10
 	money -= val($_drink['<<args[1]>>,price'])
 	pcs_health += 5
@@ -154,7 +154,7 @@ end
 if $ARGS[0] = 'bev_tea':
 	*clr & cla
 	frost = 0
-	alko -= 1
+	if alko > 0: alko -= 1
 	minut += 10
 	money -= val($_drink['<<args[1]>>,price'])
 	pcs_health += 10

+ 1 - 1
locations/dimaHome.qsrc

@@ -415,7 +415,7 @@ if $ARGS[0] = 'kitchen1':
 		act 'He has?':
 			*clr & cla
 			frost = 0
-			alko -= 1
+			if alko > 0: alko -= 1
 			minut += 10
 			pcs_health += 10
 			pcs_mood += 20

+ 1 - 1
locations/gschool_break.qsrc

@@ -34,7 +34,7 @@ if $ARGS[0] = 'watercooler':
 	act 'Take a drink':
 		cla & *nl
 		frost = 1
-		alko -= 1
+		if alko > 0: alko -= 1
 		minut += 5
 		pcs_health += 10
 		pcs_energy += 4

+ 1 - 1
locations/kiosk.qsrc

@@ -168,7 +168,7 @@ if $ARGS[0] = 'counter':
 		act 'Buy some water (40 <b>₽</b>) (0:05)':
 			*clr & cla
 			frost = 1
-			alko -= 1
+			if alko > 0: alko -= 1
 			minut += 5
 			money -= 40
 			pcs_health += 10

+ 1 - 1
locations/natbelapt.qsrc

@@ -1469,7 +1469,7 @@ if $ARGS[0] = 'snack':
 	*nl
 	!!Snack + Water
 	minut += 15
-	alko -= 1
+	if alko > 0: alko -= 1
 	pcs_health += 20
 	pcs_mood += 20
 	fat += 6