Browse Source

[fixed] food_loc reset

Lusticon 4 months ago
parent
commit
9c240fc662
2 changed files with 2 additions and 0 deletions
  1. 1 0
      locations/food_menu.qsrc
  2. 1 0
      locations/stat.qsrc

+ 1 - 0
locations/food_menu.qsrc

@@ -16,6 +16,7 @@ menu_off = 1
 if $ARGS[0] ! 'mod':
 	*clr & cla
 	food_loc = 1
+	$food_loc = $loc
 	killvar '$_drink'
 	killvar '$_eat'
 end

+ 1 - 0
locations/stat.qsrc

@@ -123,6 +123,7 @@ if SNarkTimes >= SNarkvnesh * 25:
 	SNarkvnesh += 1
 	vidage += 1
 end
+if food_loc > 0 and $food_loc <> $loc: killvar 'food_loc'
 
 if gopota >= 20 and gnewQW = 1:gnewQW = 2
 if workDisk = 4 and week > 5:workDisk = 1