Browse Source

[fixed] Killvars for pcs_magik and rubido were breaking manamax calc so moved it to before the killvar

Kevin_Smarts 2 years ago
parent
commit
9a3d5f4424
1 changed files with 3 additions and 4 deletions
  1. 3 4
      locations/stat.qsrc

+ 3 - 4
locations/stat.qsrc

@@ -148,8 +148,9 @@ if pcs_horny < 50 and cheatHorny = 1: pcs_horny = 50
 boxing = pcs_jab + pcs_punch + pcs_kick + pcs_def
 if boxing > 100: boxing = 100
 
-if $start_type[1] = 'magic':
+manamax = (pcs_intel * pcs_magik) + pcs_magik * 100 + pcs_vital * 10 + rikudo
 
+if $start_type[1] = 'magic':
 	if pcs_magik > magikhigh:
 		magikhigh += 1
 		rikudo += pcs_magik * 100
@@ -158,9 +159,8 @@ if $start_type[1] = 'magic':
 		if (pcs_magik mod 2 ! 0) and pcs_eyesize < 2: pcs_eyesize += 1
 		if (pcs_magik mod 2 = 0) and pcs_lashes < 2: pcs_lashes += 1
 	end
-
 else
-!!This is for error catching
+!!This is for error catching but also broke manamax calc which is why its now above this
 	killvar 'pcs_magik'
 	killvar 'rikudo'
 	killvar 'pcs_splcstng'
@@ -184,7 +184,6 @@ end
 
 healthmax = (pcs_vital * 10 + pcs_stren * 5)
 stammax = 5 * (2 * pcs_vital + pcs_agil + pcs_stren) / 2
-manamax = (pcs_intel * pcs_magik) + pcs_magik * 100 + pcs_vital * 10 + rikudo
 speed = (2 * (pcs_stren + pcs_agil) + pcs_vital) / 5
 if healthmax < 1: healthmax = 1
 if willpowermax < 50: willpowermax = 50