Przeglądaj źródła

[Fixed] Glamour spell running out caused massive appearance drop

Awesome 2 tygodni temu
rodzic
commit
516882da9d
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 1 0
      locations/AppearanceSystem.qsrc
  2. 2 1
      locations/spell.qsrc

+ 1 - 0
locations/AppearanceSystem.qsrc

@@ -34,6 +34,7 @@ if $args[0] = 'UpdateBaseAppearance':
 
 
 	! Calculte base appearance
 	! Calculte base appearance
 	pcs_apprncbase = skinBonus + bodyShapeBonus + attributeBonus - visibleAgePenalty - teethPenalty + supnatvnesh
 	pcs_apprncbase = skinBonus + bodyShapeBonus + attributeBonus - visibleAgePenalty - teethPenalty + supnatvnesh
+	if glamouractive = 1: pcs_apprncbase += 150
 
 
 end
 end
 
 

+ 2 - 1
locations/spell.qsrc

@@ -335,12 +335,13 @@ if $ARGS[0] = 'glamour':
 	if SuccessValue > 0:
 	if SuccessValue > 0:
 		! Add large bonus to appearance.
 		! Add large bonus to appearance.
 		pcs_apprncbase += 150
 		pcs_apprncbase += 150
+		glamouractive = 1
 		! Add Timer to remove Appearance bonus after 2 hours
 		! Add Timer to remove Appearance bonus after 2 hours
 		!	spellName = 'glamour'
 		!	spellName = 'glamour'
 		!	duration  = 120
 		!	duration  = 120
 		!	CompCode = 'pcs_apprncbase -= 150' Remove bonus
 		!	CompCode = 'pcs_apprncbase -= 150' Remove bonus
 		!	TickCode = ''  Do nothing
 		!	TickCode = ''  Do nothing
-		gs 'spellTimer', 'add', 'glamour', 120, 'pcs_apprncbase -= 150', ''
+		gs 'spellTimer', 'add', 'glamour', 120, 'glamouractive = 0 & gs ''AppearanceSystem'', ''UpdateBaseAppearance''', ''
 		msg '<b><font color = <<$SplTxtColGood>>>You feel gorgeous. People will love you.</font></b>'
 		msg '<b><font color = <<$SplTxtColGood>>>You feel gorgeous. People will love you.</font></b>'
 		gs 'stat' 
 		gs 'stat' 
 	else
 	else