|
@@ -127,74 +127,204 @@ end
|
|
|
|
|
|
if $ARGS[0] = 'class_activity':
|
|
|
!!This adds the point for doing an in class activity that is not modified.
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 2'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 5'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 7'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 9'
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 1'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 3'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 5'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 5'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 4'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 6'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 8'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 9'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 10'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 5'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 7'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 9'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 10'
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
|
|
|
if $ARGS[0] = 'class_activity_skill':
|
|
|
!!This adds the point for doing an in class activity modified by a skill.
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (5*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (7*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (9*(85+<<ARGS[3]>>))/100'
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (5*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (7*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (9*(85+<<ARGS[3]>>))/200'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (10*(85+<<ARGS[3]>>))/200'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (6*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (15*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (21*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (27*(85+<<ARGS[3]>>))/400'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (30*(85+<<ARGS[3]>>))/400'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (10*(85+<<ARGS[3]>>))/100'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (5*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (7*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (9*(85+<<ARGS[3]>>))/100'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (10*(85+<<ARGS[3]>>))/100'
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
|
|
|
if $ARGS[0] = 'class_activity_attributes':
|
|
|
!!This adds the point for doing an in class activity modified by an attributes.
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (5*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (7*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (9*(50+<<ARGS[3]>>))/100'
|
|
|
- else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (10*(50+<<ARGS[3]>>))/100'
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
-if $ARGS[0] = 'optional_activity':
|
|
|
-!!This adds the point for doing an optional out of class activity that is not modified.
|
|
|
- if dyneval('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_use_computer'']') = 0 or $ARGS[3] = 'yes':
|
|
|
+ if pcs_stam <= 0:
|
|
|
if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 2'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/200'
|
|
|
elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 5'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (5*(50+<<ARGS[3]>>))/200'
|
|
|
elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 7'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (7*(50+<<ARGS[3]>>))/200'
|
|
|
elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 9'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (9*(50+<<ARGS[3]>>))/200'
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 10'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (10*(50+<<ARGS[3]>>))/200'
|
|
|
end
|
|
|
- elseif dyneval('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_use_computer'']') = 1:
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 1'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (6*(50+<<ARGS[3]>>))/400'
|
|
|
elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 2'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (15*(50+<<ARGS[3]>>))/400'
|
|
|
elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 3'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (21*(50+<<ARGS[3]>>))/400'
|
|
|
elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += 4'
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (27*(50+<<ARGS[3]>>))/400'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (30*(50+<<ARGS[3]>>))/400'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (5*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (7*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (9*(50+<<ARGS[3]>>))/100'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (10*(50+<<ARGS[3]>>))/100'
|
|
|
+ end
|
|
|
+ end
|
|
|
+end
|
|
|
+
|
|
|
+if $ARGS[0] = 'optional_activity':
|
|
|
+!!This adds the point for doing an optional out of class activity that is not modified.
|
|
|
+ if dyneval('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_use_computer'']') = 0 or $ARGS[3] = 'yes':
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 1'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 3'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 4'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 5'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 4'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 6'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 8'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 9'
|
|
|
+ end
|
|
|
+ else
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 5'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 7'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 9'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 10'
|
|
|
+ end
|
|
|
+ end
|
|
|
+ elseif dyneval('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_use_computer'']') = 1:
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 1'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 1'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 2'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 3'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 1'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 3'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 4'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 5'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 1'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 2'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 3'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 4'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += 5'
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
|
|
@@ -206,28 +336,80 @@ end
|
|
|
if $ARGS[0] = 'optional_activity_skill':
|
|
|
!!This adds the point for doing an optional out of class activity modified by a skill.
|
|
|
if dyneval('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_use_computer'']') = 0 or $ARGS[3] = 'yes':
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (5*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (7*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (9*(85+<<ARGS[3]>>))/100'
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (7*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (9*(85+<<ARGS[3]>>))/200'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (10*(85+<<ARGS[4]>>))/200'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (6*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (15*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (21*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (27*(85+<<ARGS[3]>>))/400'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (30*(85+<<ARGS[4]>>))/400'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (10*(85+<<ARGS[4]>>))/100'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (7*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (9*(85+<<ARGS[3]>>))/100'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (10*(85+<<ARGS[4]>>))/100'
|
|
|
+ end
|
|
|
end
|
|
|
elseif dyneval('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_use_computer'']') = 1:
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (1*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (3*(85+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (4*(85+<<ARGS[3]>>))/100'
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (1*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (3*(85+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (4*(85+<<ARGS[3]>>))/200'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(85+<<ARGS[4]>>))/200'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (3*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (6*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (9*(85+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (12*(85+<<ARGS[3]>>))/400'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (15*(85+<<ARGS[4]>>))/400'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(85+<<ARGS[4]>>))/100'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (1*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (2*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (3*(85+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (4*(85+<<ARGS[3]>>))/100'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(85+<<ARGS[4]>>))/100'
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
|
|
@@ -239,28 +421,80 @@ end
|
|
|
if $ARGS[0] = 'optional_activity_attribute':
|
|
|
!!This adds the point for doing an optional out of class activity modified by an attributes.
|
|
|
if dyneval('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_use_computer'']') = 0 or $ARGS[3] = 'yes':
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (5*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (7*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (9*(50+<<ARGS[3]>>))/100'
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(50+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (7*(50+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (9*(50+<<ARGS[3]>>))/200'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (10*(50+<<ARGS[4]>>))/200'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (6*(50+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (15*(50+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (21*(50+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (27*(50+<<ARGS[3]>>))/400'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (30*(50+<<ARGS[4]>>))/400'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (10*(50+<<ARGS[4]>>))/100'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (7*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (9*(50+<<ARGS[3]>>))/100'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (10*(50+<<ARGS[4]>>))/100'
|
|
|
+ end
|
|
|
end
|
|
|
elseif dyneval('RESULT = class[''<<$ARGS[1]>>_<<$ARGS[2]>>_use_computer'']') = 1:
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (1*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (3*(50+<<ARGS[3]>>))/100'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_weekly_grade_gain''] += (4*(50+<<ARGS[3]>>))/100'
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (1*(50+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (3*(50+<<ARGS[3]>>))/200'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (4*(50+<<ARGS[3]>>))/200'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(50+<<ARGS[4]>>))/200'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (3*(50+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (6*(50+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (9*(50+<<ARGS[3]>>))/400'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (12*(50+<<ARGS[3]>>))/400'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (15*(50+<<ARGS[4]>>))/400'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(50+<<ARGS[4]>>))/100'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (1*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (2*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (3*(50+<<ARGS[3]>>))/100'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (4*(50+<<ARGS[3]>>))/100'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$ARGS[2]>>_optional_weekly_grade_gain''] += (5*(50+<<ARGS[4]>>))/100'
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
|
|
@@ -287,28 +521,80 @@ if $ARGS[0] = 'homework':
|
|
|
if $class_list_institution[i] = $ARGS[1]:
|
|
|
if dyneval ('RESULT = class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_homework'']') = 1:
|
|
|
if $ARGS[2] = 'no':
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*1*(50+modifier))/100)'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*2*(50+modifier))/100)'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*3*(50+modifier))/100)'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*4*(50+modifier))/100)'
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*1*(50+modifier))/200)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*2*(50+modifier))/200)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*3*(50+modifier))/200)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*4*(50+modifier))/200)'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*5*(50+modifier))/200)'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*3*(50+modifier))/400)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*6*(50+modifier))/400)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*9*(50+modifier))/400)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*12*(50+modifier))/400)'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*15*(50+modifier))/400)'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*5*(50+modifier))/100)'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*1*(50+modifier))/100)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*2*(50+modifier))/100)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*3*(50+modifier))/100)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*4*(50+modifier))/100)'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*(((2-class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_use_computer''])*5*(50+modifier))/100)'
|
|
|
+ end
|
|
|
end
|
|
|
else
|
|
|
- if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((2*(50+modifier))/100)'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((5*(50+modifier))/100)'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((7*(50+modifier))/100)'
|
|
|
- elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((9*(50+modifier))/100)'
|
|
|
+ if pcs_stam <= 0:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((2*(50+modifier))/200)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((5*(50+modifier))/200)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((7*(50+modifier))/200)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((9*(50+modifier))/200)'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((10*(50+modifier))/200)'
|
|
|
+ end
|
|
|
+ elseif pcs_stam < stammax / 5:
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((6*(50+modifier))/400)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((15*(50+modifier))/400)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((21*(50+modifier))/400)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((27*(50+modifier))/400)'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((30*(50+modifier))/400)'
|
|
|
+ end
|
|
|
else
|
|
|
- dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((10*(50+modifier))/100)'
|
|
|
+ if pcs_condition['lack_of_sleep'] >= 20:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((2*(50+modifier))/100)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 10:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((5*(50+modifier))/100)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 5:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((7*(50+modifier))/100)'
|
|
|
+ elseif pcs_condition['lack_of_sleep'] >= 2:
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((9*(50+modifier))/100)'
|
|
|
+ else
|
|
|
+ dynamic 'class[''<<$ARGS[1]>>_<<$class_list_name[i]>>_weekly_grade_gain''] += <<ARGS[3]>>*((10*(50+modifier))/100)'
|
|
|
+ end
|
|
|
end
|
|
|
end
|
|
|
end
|