Browse Source

[added] amphetamine to drugs

julzor 5 years ago
parent
commit
bab640c0dc
2 changed files with 11 additions and 12 deletions
  1. 1 12
      locations/din_bad.qsrc
  2. 10 0
      locations/drugs.qsrc

+ 1 - 12
locations/din_bad.qsrc

@@ -151,7 +151,7 @@ if $ARGS[0] = 'd_bag':
 	else
 		'You are out of condoms.'
 	end
-	if amphetamine > 0:	'You have <b><<amphetamine>></b> tablets of amphetamine left in your purse. <a href="exec:dynamic $use_amphetamines & gs ''din_bad'', ''d_bag''">Take One</a>'
+	if amphetamine > 0:	'You have <b><<amphetamine>></b> tablets of amphetamine left in your purse. <a href="exec: gs ''drugs'', ''amphetamine'' & gs ''din_bad'', ''d_bag''">Take One</a>'
 	if tabletki > 0 and pillsleft[ptype] > 0:
 		'You have <b><<tabletki>></b> unopened packages of <a href="exec:dynamic $d_tabletkied">birth control pills</a> and <b><<pillsleft[ptype]>></b> pills left in your opened package.'
 	elseif tabletki	= 0 and pillsleft[ptype] > 0:
@@ -815,17 +815,6 @@ $use_steroids = {
 	end
 }
 
-$use_amphetamines = {
-	if amphIntake < 2:
-		'<font color= blue>You swallow the white pill.</font>'
-		amphIntake += 1
-		amphetamine -=1
-		amphHigh = 12
-	else
-		'Your heart is already beating uncontrollably in your chest, you should avoid taking anymore pills.'
-	end
-}
-
 $use_bcream = {
 	if bcream_used < 1:
 		'<font color = #DB7093>You smear the cream onto your breasts and rub it in.</font>'

+ 10 - 0
locations/drugs.qsrc

@@ -5,6 +5,7 @@
 !! Joint/Weed: gs 'drugs', 'joint' (if it isn''t svetas joint, you have to add joint += 1)
 !! Heroin: gs 'drugs', 'heroin'
 !! Cocaine: gs 'drugs', 'cocaine' (if it isn''t svetas cocaine, you have to add dur += 1)
+!! Amphetamine: gs 'drugs', 'amphetamine' (if it isn''t svetas amphetamine, you have to add amphetamine += 1)
 
 !! Alcohol: gs 'drugs', 'alcohol', 'type', count
 !! Types: beer, champagne, moonshine, rum, scotch, vodka, wine, whiskey
@@ -70,6 +71,15 @@ elseif $ARGS[0] = 'cocaine':
 	pcs_mood = 100
 	pcs_horny = 100
 	nark += 10
+elseif $ARGS[0] = 'amphetamine':
+	if amphIntake < 2:
+		'<font color= blue>You swallow the white pill.</font>'
+		amphIntake += 1
+		amphetamine -=1
+		amphHigh = 12
+	else
+		'Your heart is already beating uncontrollably in your chest, you should avoid taking anymore pills.'
+	end
 elseif $ARGS[0] = 'alcohol':
 	if ARGS[2] <= 1: 
 		alc_count = 1