Browse Source

Added max limits for feet pain due to heels

KevinSmarts 7 years ago
parent
commit
a26d81e976
1 changed files with 5 additions and 5 deletions
  1. 5 5
      locations/stat

+ 5 - 5
locations/stat

@@ -324,19 +324,19 @@ if totminut >= heelsminut + 120:
 			heelsSkilldiff = heelsRequiredskill - pcs_heels
 			if heelsSkilldiff <= 5:
 				heels_exp += rand(3,6)
-				gs 'pain', rand(0,1), 'feet', 'ache'
+				if pain['feet'] < 40: gs 'pain', rand(0,1), 'feet', 'ache'
 			elseif heelsSkilldiff <= 10:
 				heels_exp += rand(5,9)
-				gs 'pain', rand(0,2), 'feet', 'ache'
+				if pain['feet'] < 50: gs 'pain', rand(0,2), 'feet', 'ache'
 			elseif heelsSkilldiff <= 15:
 				heels_exp += rand(7,12)
-				gs 'pain', rand(1,3), 'feet', 'ache'
+				if pain['feet'] < 60: gs 'pain', rand(1,3), 'feet', 'ache'
 			elseif heelsSkilldiff <= 20:
 				heels_exp += rand(9,15)
-				gs 'pain', rand(2,4), 'feet', 'ache'
+				if pain['feet'] < 70: gs 'pain', rand(2,4), 'feet', 'ache'
 			elseif heelsSkilldiff > 20:
 				heels_exp += rand(12,20)
-				gs 'pain', rand(3,5), 'feet', 'ache'
+				if pain['feet'] < 80: gs 'pain', rand(3,5), 'feet', 'ache'
 			end
 		!! Player skill is equal to or higher than the required skill
 		!! Maybe have excessive skill result in no gain, or even a degrading skill?