Browse Source

[added] seeding for Fitness Freak trait

hornguy6 2 weeks ago
parent
commit
836500a32c
2 changed files with 18 additions and 0 deletions
  1. 12 0
      locations/exercise.qsrc
  2. 6 0
      locations/stat.qsrc

+ 12 - 0
locations/exercise.qsrc

@@ -531,9 +531,11 @@ if $ARGS[0] = 'tier1':
 	if ARGS[1] = 0:
 		minut += 15
 		mult = 1
+		if pcs_traits['fitness_freak'] = 1: pcs_horny += 15
 	else
 		minut += ARGS[1]
 		mult = (ARGS[1]-1)/15 + 1
+		if pcs_traits['fitness_freak'] = 1: pcs_horny += ARGS[1] / 2
 	end
 
 	gs 'exercise', 'get_sport_clothes_exercise_bonus'
@@ -571,6 +573,7 @@ if $ARGS[0] = 'tier1':
 	end
 	mcnt += 1
 	if mcnt < mult: jump 'timeexploop1'
+	stat['last_workout_trig'] = 1
 	killvar 'mcnt'
 	killvar 'mult'
 end
@@ -579,9 +582,11 @@ if $ARGS[0] = 'tier2':
 	if ARGS[1] = 0:
 		minut += 15
 		mult = 1
+		if pcs_traits['fitness_freak'] = 1: pcs_horny += 15
 	else
 		minut += ARGS[1]
 		mult = (ARGS[1]-1)/15 + 1
+		if pcs_traits['fitness_freak'] = 1: pcs_horny += ARGS[1] / 2
 	end
 
 	gs 'exercise', 'get_sport_clothes_exercise_bonus'
@@ -619,6 +624,7 @@ if $ARGS[0] = 'tier2':
 	end
 	mcnt += 1
 	if mcnt < mult: jump 'timeexploop2'
+	stat['last_workout_trig'] = 1
 	killvar 'mcnt'
 	killvar 'mult'
 end
@@ -627,9 +633,11 @@ if $ARGS[0] = 'tier3':
 	if ARGS[1] = 0:
 		minut += 15
 		mult = 1
+		if pcs_traits['fitness_freak'] = 1: pcs_horny += 15
 	else
 		minut += ARGS[1]
 		mult = (ARGS[1]-1)/15 + 1
+		if pcs_traits['fitness_freak'] = 1: pcs_horny += ARGS[1]
 	end
 
 	gs 'exercise', 'get_sport_clothes_exercise_bonus'
@@ -667,6 +675,7 @@ if $ARGS[0] = 'tier3':
 	end
 	mcnt += 1
 	if mcnt < mult: jump 'timeexploop3'
+	stat['last_workout_trig'] = 1
 	killvar 'mcnt'
 	killvar 'mult'
 end
@@ -675,9 +684,11 @@ if $ARGS[0] = 'tier4':
 	if ARGS[1] = 0:
 		minut += 15
 		mult = 1
+		if pcs_traits['fitness_freak'] = 1: pcs_horny += 15
 	else
 		minut += ARGS[1]
 		mult = (ARGS[1]-1)/15 + 1
+		if pcs_traits['fitness_freak'] = 1: pcs_horny += ARGS[1]
 	end
 
 	gs 'exercise', 'get_sport_clothes_exercise_bonus'
@@ -715,6 +726,7 @@ if $ARGS[0] = 'tier4':
 	end
 	mcnt += 1
 	if mcnt < mult: jump 'timeexploop4'
+	stat['last_workout_trig'] = 1
 	killvar 'mcnt'
 	killvar 'mult'
 end

+ 6 - 0
locations/stat.qsrc

@@ -266,6 +266,12 @@ gs 'spellTimer', prevtotmin, totminut
 !! deodorant
 if deodorant_on = 1 and totminut > deodorant_time: gs 'sweat', 'remove_deo'
 
+!! exercise tracking
+if stat['last_workout_trig'] = 1: 
+	stat['last_workout_trig'] = 0
+	stat['last_workout'] = totminut
+end
+
 !!painkiller
 if pain['killer'] > 0:
 	if pain['killer'] = 1: pain_timer = totminut - 2