Quellcode durchsuchen

[change] Use array which maps $loc to int to keep track of where park dog was first encountered

oldentree vor 5 Jahren
Ursprung
Commit
85008dd4de
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4 1
      locations/mod_bestmod_park_dog.qsrc

+ 4 - 1
locations/mod_bestmod_park_dog.qsrc

@@ -3,6 +3,9 @@ menu_off = 1
 
 !! Set a default large volume of sperm for stray dog
 sexvolume = rand(100, 200)
+$bm_park_array['gskver'] = 1
+$bm_park_array['park'] = 2
+$bm_park_array['lug'] = 3
 
 !! Might be interesting to add calls to a function like "'gadforest', 'torncloth'"
 
@@ -46,7 +49,7 @@ if $ARGS[0] = 'first_follow':
 			*clr & cla
 			bm_know_parkdog = 1
 			bm_parkdog_QW += 1
-			bm_firstmet_parkdog = 1
+			bm_firstmet_parkdog = bm_park_array[$loc]
 			'You take the sandwich out from your bag and offer it to the dog. He sniffs at it for a bit, but seems hesitant to get very close to you.'
 			'You figure he might not trust you too much, so you put the sandwich down on the ground and step back. You guessed right, as the dog jumped forward after a moment''s pause and devoured the sandwich meat, leaving the bread behind.'
 			''