|
@@ -61,5 +61,22 @@ if $ARGS[0] = 'spendmoneystring':
|
|
|
end &! --- spendmoneystring ---
|
|
|
|
|
|
|
|
|
+!! following function returns the basic adjustment for max_grades.
|
|
|
+!! hardcore: (115 * pcs_intel)/100
|
|
|
+!! realistic: 133
|
|
|
+!! relaxed: 155
|
|
|
+!! easy peasy: 185
|
|
|
+!! use func('_difficulty','getmaxgrades')
|
|
|
+if $ARGS[0] = 'getmaxgrades':
|
|
|
+ if difficulty = 1 : max_grades = (pcs_intel * 185) / 100
|
|
|
+ if difficulty = 2 : max_grades = (pcs_intel * 155) / 100
|
|
|
+ if difficulty = 3 : max_grades = (pcs_intel * 133) / 100
|
|
|
+ if difficulty = 4 : max_grades = (pcs_intel * 115) / 100
|
|
|
+
|
|
|
+ if max_grades > 100: max_grades = 100
|
|
|
+
|
|
|
+end &! --- getexpadj ---
|
|
|
+
|
|
|
+
|
|
|
--- _difficulty ---------------------------------
|
|
|
|