1
0
Prechádzať zdrojové kódy

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

KevinSmarts 6 rokov pred
rodič
commit
d1bd0ea41e
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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