Browse Source

[added] new coffee shop on the Island by nutluck with code from Djukkiller3 and me

Kevin_Smarts 1 year ago
parent
commit
a6be32601d
5 changed files with 200 additions and 4 deletions
  1. 1 0
      glife.qproj
  2. 102 0
      locations/beverage.qsrc
  3. 5 0
      locations/city_island.qsrc
  4. 40 3
      locations/food.qsrc
  5. 52 1
      locations/food_menu.qsrc

+ 1 - 0
glife.qproj

@@ -940,6 +940,7 @@
 		<Location name="shop_dolls"/>
 		<Location name="shop_nerdvana"/>
 		<Location name="shop_flamingos"/>
+		<Location name="city_coffee_hole"/>
 	</Folder>
 	<Folder name="University">
 		<Location name="uni_grounds"/>

+ 102 - 0
locations/beverage.qsrc

@@ -431,5 +431,107 @@ if $ARGS[0] = 'coffee':
 	pcs_breath = 0
 	gs 'stat'
 end
+
+
+!! ------------ just the stats, no descriptions or extra stuff with cost -----------------------
+
+if $ARGS[0] = 'only_cost_bco':
+	*clr & cla
+	frost = 0
+	if alko > 0: alko -= 1
+	money -= val($_drink['<<args[1]>>,price'])
+	if pcs_sleep <= 20: pcs_sleep += 5
+	pcs_health += 5
+	pcs_mood += 20
+	pcs_energy += 15
+	if pcs_hydra >= 100:
+		pcs_hydra += 20
+	else
+		pcs_hydra += 40
+	end
+	cumspclnt = 2
+	gs 'cum_cleanup'
+	pcs_breath = 0
+	teeth['caffe_or_tea'] += 5
+	gs 'stat'
+	killvar '$_drink'
+
+	*nl
+	'Added to your order'
+	gt 'food_menu'
+end
+
+if $ARGS[0] = 'only_cost_cof':
+	*clr & cla
+	frost = 0
+	if alko > 0: alko -= 1
+	money -= val($_drink['<<args[1]>>,price'])
+	if pcs_sleep <= 20: pcs_sleep += 5
+	pcs_health += 5
+	pcs_mood += 20
+	pcs_energy += 15
+	if pcs_hydra >= 100:
+		pcs_hydra += 20
+	else
+		pcs_hydra += 40
+	end
+	fat += 1
+	cumspclnt = 2
+	gs 'cum_cleanup'
+	pcs_breath = 0
+	teeth['caffe_or_tea'] += 5
+	gs 'stat'
+	killvar '$_drink'
+
+	*nl
+	'Added to your order'
+	gt 'food_menu'
+end
+
+if $ARGS[0] = 'only_cost_tea':
+	*clr & cla
+	frost = 0
+	if alko > 0: alko -= 1
+	money -= val($_drink['<<args[1]>>,price'])
+	pcs_health += 10
+	pcs_mood += 20
+	pcs_energy += 10
+	if pcs_hydra >= 100:
+		pcs_hydra += 25
+	else
+		pcs_hydra += 50
+	end
+	cumspclnt = 2
+	gs 'cum_cleanup'
+	pcs_breath = 0
+	teeth['caffe_or_tea'] += 2
+	gs 'stat'
+	killvar '$_drink'
+
+	*nl
+	'Added to your order'
+	gt 'food_menu'
+end
+
+if $ARGS[0] = 'only_cost_esp':
+	*clr & cla
+	frost = 0
+	if alko > 0: alko -= 1
+	money -= val($_drink['<<args[1]>>,price'])
+	if pcs_sleep <= 20: pcs_sleep += 5
+	pcs_health += 5
+	pcs_mood += 20
+	pcs_energy += 15
+	cumspclnt = 2
+	gs 'cum_cleanup'
+	pcs_breath = 0
+	gs 'stat'
+	killvar '$_drink'
+
+	*nl
+	'Added to your order'
+	gt 'food_menu'
+end
+
 --- beverage ---------------------------------
 

+ 5 - 0
locations/city_island.qsrc

@@ -69,6 +69,11 @@ if hour >= 8 and hour < 22:
 else
 	'You can see Patch Work Dolls a clothing store that caters to Alternative styles, like gothic, punk, skater, and the like. Next to that is Nerdvana the nerd clothing store, they both open every day between 08:00 - 22:00'
 end
+if hour >= 7 and hour <= 23:
+	'You can see a sign advertising a coffee shop called <a href="exec: minut += 3 & gt ''city_coffee_hole'', ''start''">The Coffee Hole</a> just a few blocks from the University.'
+else
+	'The The Coffee Hole, coffee shop is closed, they open again at 7:00'
+end
 if hour >= 4:
 	'The <a href="exec:minut += 1 & gt ''metro'', ''start''">Metro</a> Station is within a 5 minute walk from here.'
 else

+ 40 - 3
locations/food.qsrc

@@ -150,7 +150,7 @@ if $ARGS[0] = 'reuben':
 		else
 			act 'Finish':gt $loc, $loc_arg
 		end
-	end	
+	end
 
 	killvar '$_eat'
 end
@@ -934,12 +934,49 @@ if $ARGS[0] = 'watercooler':
 	cumspclnt = 2
 	gs 'cum_cleanup'
 	gs 'stat'
-	
-	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/bathroom/waterfountain.jpg"></center>'		
+
+	'<center><img <<$set_imgh>> src="images/locations/pavlovsk/community/bathroom/waterfountain.jpg"></center>'
 	'You drink some water and feel refreshed.'
 	act 'Finish':gt $loc, $loc_arg
 end
 
 
+!! ------------ just the stats, no descriptions or extra stuff with cost -----------------------
+
+if $ARGS[0] = 'only_cost_snack':
+	*clr & cla
+	gs 'stat'
+	money -= val($_eat['<<args[1]>>,price'])
+	pcs_health += 10
+	pcs_mood += 20
+	fat += 6
+	pcs_energy += 20
+	cumspclnt = 2
+	gs 'cum_cleanup'
+	pcs_breath = 0
+	killvar '$_eat'
+
+	*nl
+	'Added to your order'
+	gt 'food_menu'
+end
+
+if $ARGS[0] = 'only_cost_light_snack':
+	*clr & cla
+	money -= val($_eat['<<args[1]>>,price'])
+	pcs_health += 5
+	pcs_mood += 20
+	fat += 3
+	pcs_energy += 20
+	cumspclnt = 2
+	gs 'cum_cleanup'
+	pcs_breath = 0
+	killvar '$_eat'
+
+	*nl
+	'Added to your order'
+	gt 'food_menu'
+end
+
 --- food ---------------------------------
 

+ 52 - 1
locations/food_menu.qsrc

@@ -19,7 +19,7 @@ if $ARGS[0] ! 'mod':
 	food_loc = 1
 	killvar '$_drink'
 	killvar '$_eat'
-end	
+end
 
 act 'Return':
 	killvar 'food_loc'
@@ -474,6 +474,57 @@ elseif $loc = 'uni_cafe':
 	$_drink['5,name'] = 'Milkshake'
 	$_drink['5,type'] = 'bev_mil'
 	$_drink['5,price'] = 200
+elseif $loc = 'city_coffee_hole':
+	$loc_arg = 'eat'
+	'<center><B><font color=maroon>Cafe "Coffee hole"</font></B></center>'
+	*nl
+	'<center><img <<$set_imgh>> src="images/shared/drinks/cafedrinks.jpg"</center><br>'
+	$_eat['0,name'] = 'Biscotti'
+	$_eat['0,type'] = 'only_cost_light_snack'
+	$_eat['0,price'] = 100
+	$_eat['1,name'] = 'Cannoli'
+	$_eat['1,type'] = 'only_cost_snack'
+	$_eat['1,price'] = 120
+	$_eat['2,name'] = 'Muffin'
+	$_eat['2,type'] = 'only_cost_snack'
+	$_eat['2,price'] = 120
+	$_eat['3,name'] = 'Croissants'
+	$_eat['3,type'] = 'only_cost_snack'
+	$_eat['3,price'] = 120
+	$_eat['4,name'] = 'Danish'
+	$_eat['4,type'] = 'only_cost_snack'
+	$_eat['4,price'] = 120
+	$_eat['5,name'] = 'Cookies'
+	$_eat['5,type'] = 'only_cost_light_snack'
+	$_eat['5,price'] = 100
+	$_eat['6,name'] = 'Miagkie Plushki s Sakharom'
+	$_eat['6,type'] = 'only_cost_snack'
+	$_eat['6,price'] = 120
+	$_eat['7,name'] = 'Mannik'
+	$_eat['7,type'] = 'only_cost_snack'
+	$_eat['7,price'] = 120
+	$_eat['8,name'] = 'Korzinochki'
+	$_eat['8,type'] = 'only_cost_snack'
+	$_eat['8,price'] = 120
+
+	$_drink['0,name'] = 'Tea'
+	$_drink['0,type'] = 'only_cost_tea'
+	$_drink['0,price'] = 120
+	$_drink['1,name'] = 'Espresso'
+	$_drink['1,type'] = 'only_cost_esp'
+	$_drink['1,price'] = 100
+	$_drink['2,name'] = 'Black Coffee'
+	$_drink['2,type'] = 'only_cost_bco'
+	$_drink['2,price'] = 120
+	$_drink['3,name'] = 'Cappuccino'
+	$_drink['3,type'] = 'only_cost_cof'
+	$_drink['3,price'] = 150
+	$_drink['4,name'] = 'Cafe Latte'
+	$_drink['4,type'] = 'only_cost_cof'
+	$_drink['4,price'] = 150
+	$_drink['5,name'] = 'Iced Latte'
+	$_drink['5,type'] = 'only_cost_cof'
+	$_drink['5,price'] = 150
 end
 
 $_str = '<center><table border="0" width="800" cellpadding="0" cellspacing="1">'