1
0
Quellcode durchsuchen

[added] akossis light/heavyweight trait idea

julzor vor 4 Jahren
Ursprung
Commit
bfeae66117
2 geänderte Dateien mit 79 neuen und 5 gelöschten Zeilen
  1. 32 4
      locations/drugs.qsrc
  2. 47 1
      locations/traits.qsrc

+ 32 - 4
locations/drugs.qsrc

@@ -122,7 +122,13 @@ elseif $ARGS[0] = 'alcohol':
 	gs 'cum_cleanup'
 	pcs_breath = 0
 	if $ARGS[1] = 'beer':
-		alko += 1
+		if alko_trait = -1:
+			alko += rand(1,2)
+		elseif alko_trait = 1:
+			alko += rand(0,1)
+		else
+			alko += 1
+		end
 		fat += 3
 		pcs_mood += 10
 		if pcs_hydra >= 100:
@@ -130,8 +136,15 @@ elseif $ARGS[0] = 'alcohol':
 		else
 			pcs_hydra += 10
 		end
+		alko_trait_day += 1
 	elseif $ARGS[1] = 'wine' or $ARGS[1] = 'champagne':
-		alko += 2
+		if alko_trait = -1:
+			alko += 3
+		elseif alko_trait = 1:
+			alko += 1
+		else
+			alko += 2
+		end
 		fat += 4
 		pcs_mood += 20
 		if pcs_hydra >= 100:
@@ -139,22 +152,37 @@ elseif $ARGS[0] = 'alcohol':
 		else
 			pcs_hydra += 10
 		end
+		alko_trait_day += 2
 	elseif $ARGS[1] = 'vodka' or $ARGS[1] = 'whiskey' or $ARGS[1] = 'scotch' or $ARGS[1] = 'rum':
-		alko += 3
+		if alko_trait = -1:
+			alko += rand(4,5)
+		elseif alko_trait = 1:
+			alko += rand(1,2)
+		else
+			alko += 3
+		end
 		fat += 6
 		if pcs_hydra >= 100:
 			pcs_hydra -= 5
 		else
 			pcs_hydra -= 10
 		end
+		alko_trait_day += 3
 	elseif $ARGS[1] = 'moonshine':
-		alko += 5
+		if alko_trait = -1:
+			alko += rand(7,8)
+		elseif alko_trait = 1:
+			alko += rand(2,3)
+		else
+			alko += 5
+		end
 		fat += 6
 		if pcs_hydra >= 100:
 			pcs_hydra -= 5
 		else
 			pcs_hydra -= 10
 		end
+		alko_trait_day += 5
 	else
 		'<br><font color = red>Developer note: The type of alcohol is missing in this scene. Please report this and a small part of the text of the current scene as a bug.</font>'
 	end

+ 47 - 1
locations/traits.qsrc

@@ -105,6 +105,16 @@ if $ARGS[0] = 'menu':
 		'It allows you to remove cum from certain locations and eat it'
 		'This trait cannot be lost.'
 	end
+	
+	*nl
+	
+	if alko_trait = -1:
+		'<center><b>Lightweight</b></center>'
+		'It doesn''t take much for you to get drunk. You don''t have to drink as much to feel the affects of alcohol.'
+	elseif alko_trait = 1:
+		'<center><b>Heavyweight</b></center>'
+		'You''ve built up a tolerance, making it harder for you to feel the affects of alcohol.'
+	end
 
 	act 'Exit the menu': gt $loc, $metka
 	'</td></tr></table></center>'
@@ -118,7 +128,43 @@ if $ARGS[0] = 'hourly':
 end
 
 if $ARGS[0] = 'overnight':
-
+	!!alko_trait: light weight (-1), normal (0), heavy weight (+1)
+	!!alko_trait_counter: between -100 and 100, tracks if sveta is a light or heavy wight
+	!!alko_trait_day: amount of alko sveta has drunk today
+	
+	!!Gains/Decay
+	if alko_trait_day > 0:
+		if alko_trait_day > 12:
+			alko_trait_counter += 12
+		else
+			alko_trait_counter += alko_trait_day
+		end
+	elseif alko_trait_day = 0:
+		alko_trait_counter -= 4
+	end
+	
+	!!Trait selection
+	if alko_trait_counter > 50 and alko_trait < 1:
+		alko_trait = 1
+		msg 'You have gained the trait ''Heavyweight''.'
+	if alko_trait_counter < -50 and alko_trait > -1:
+		alko_trait = -1	
+		msg 'You have gained the trait ''Lighweight''.'
+	elseif alko_trait = -1 and alko_trait_counter > 0:
+		alko_trait = 0
+		msg 'You have lost the trait ''Lighweight''.'
+	elseif alko_trait = 1 and alko_trait_counter < 0:
+		alko_trait = 0
+		msg 'You have lost the trait ''Heavyweight''.'
+	end
+	
+	!!Cleanup
+	alko_trait_day = 0
+	if alko_trait_counter > 100: 
+		alko_trait_counter = 100
+	elseif alko_trait_counter < -100: 
+		alko_trait_counter = -100
+	end
 end
 
 --- traits ---------------------------------