瀏覽代碼

[changed] Also including the heels skill in the new way of adding exp.

bgkjdgbizgblzdgbr 2 年之前
父節點
當前提交
091febda7b
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      locations/stat.qsrc

+ 9 - 9
locations/stat.qsrc

@@ -377,19 +377,19 @@ if totminut >= heelsminut + 120:
 		if pcs_heels < heelsRequiredskill:
 			heelsSkilldiff = heelsRequiredskill - pcs_heels
 			if heelsSkilldiff <= 5:
-				heels_exp += rand(3,6)
+				gs 'exp_gain', 'heels', rand(3,6)
 				if pain['feet'] < 40: gs 'pain', rand(0,1), 'feet', 'ache'
 			elseif heelsSkilldiff <= 10:
-				heels_exp += rand(5,9)
+				gs 'exp_gain', 'heels', rand(5,9)
 				if pain['feet'] < 50: gs 'pain', rand(0,2), 'feet', 'ache'
 			elseif heelsSkilldiff <= 15:
-				heels_exp += rand(7,12)
+				gs 'exp_gain', 'heels', rand(7,12)
 				if pain['feet'] < 60: gs 'pain', rand(1,3), 'feet', 'ache'
 			elseif heelsSkilldiff <= 20:
-				heels_exp += rand(9,15)
+				gs 'exp_gain', 'heels', rand(9,15)
 				if pain['feet'] < 70: gs 'pain', rand(2,4), 'feet', 'ache'
 			elseif heelsSkilldiff > 20:
-				heels_exp += rand(12,20)
+				gs 'exp_gain', 'heels', rand(12,20)
 				if pain['feet'] < 80: gs 'pain', rand(3,5), 'feet', 'ache'
 			end
 		!! Player skill is equal to or higher than the required skill
@@ -397,13 +397,13 @@ if totminut >= heelsminut + 120:
 		else
 			heelsSkilldiff = pcs_heels - heelsRequiredskill
 			if heelsSkilldiff <= 5:
-				heels_exp += rand(3,6)
+				gs 'exp_gain', 'heels', rand(3,6)
 			elseif heelsSkilldiff <= 10:
-				heels_exp += rand(2,4)
+				gs 'exp_gain', 'heels', rand(2,4)
 			elseif heelsSkilldiff <= 15:
-				heels_exp += rand(1,2)
+				gs 'exp_gain', 'heels', rand(1,2)
 			elseif heelsSkilldiff <= 20:
-				heels_exp += 0
+				gs 'exp_gain', 'heels', 0
 			elseif heelsSkilldiff > 20:
 				heels_deg -= rand(0,1)
 			end