Procházet zdrojové kódy

[fixes] stat file change for fat to energy conversion so that excess fat can restore low energy from Vaelon

KevinSmarts před 6 roky
rodič
revize
d1bd0ea41e
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      locations/stat.qsrc

+ 3 - 0
locations/stat.qsrc

@@ -510,6 +510,9 @@ if minut >= 60:
 	if pcs_energy > 100:
 		fat += (pcs_energy - 100) / 4
 		pcs_energy = 100
+	elseif pcs_energy <= (10 + vitalbuf / 25) and fat > (2 + vitalbuf / 25):
+		pcs_energy += 6
+		fat -= 2
 	end
 
 	if pcs_hydra > 200: pcs_hydra = 200