Browse Source

[fixed] small bugfix to blackmailer. The blackmailer should now not text you if you've paid on that day

anjuna krokus 2 weeks ago
parent
commit
c07aeaa645
1 changed files with 33 additions and 27 deletions
  1. 33 27
      locations/blackmailer.qsrc

+ 33 - 27
locations/blackmailer.qsrc

@@ -324,38 +324,44 @@ end
 if $ARGS[0] = 'Add_SMS1_reminder':
 	gs 'telefon', 'ClearSMSSchedule', 'Blackmailer'
 
-	$SMSTree['0'] = '<<$pcs_firstname>> don''t forget, if you don''t leave <<blackmailQW[''next_payment'']>> <b>₽</b> beneath the fourth park bench, you will regret it'
-
-	gs 'SMStext_builder', 'start'
-		gs 'SMStext_builder', 'receive', $SMSTree['0']
-		gs 'SMSText_builder', 'receive_img', $blackmailQW['blackmail_image_chosen']
-		gs 'SMStext_builder', 'add_sms', 'Blackmailer'
-	gs 'SMStext_builder', 'end'
-	killvar '$SMSTree'
+	if blackmailQW['next_payment'] > 0:
+		$SMSTree['0'] = '<<$pcs_firstname>> don''t forget, if you don''t leave <<blackmailQW[''next_payment'']>> <b>₽</b> beneath the fourth park bench, you will regret it'
+
+		gs 'SMStext_builder', 'start'
+			gs 'SMStext_builder', 'receive', $SMSTree['0']
+			gs 'SMSText_builder', 'receive_img', $blackmailQW['blackmail_image_chosen']
+			gs 'SMStext_builder', 'add_sms', 'Blackmailer'
+		gs 'SMStext_builder', 'end'
+		killvar '$SMSTree'
+	end
 end
 
 if $ARGS[0] = 'Add_SMS_failure':
 	gs 'telefon', 'ClearSMSSchedule', 'Blackmailer'
-	blackmailQW['stage'] = -1
 
-	$SMSTree['0'] = 'Guess you like it when people know you''re a whore'
-		$SMSTree['1'] = 'or you didn''t think I''d go through with it'
-			$SMSTree['2'] = 'we''ll see'
-
-	gs 'SMStext_builder', 'start'
-		gs 'SMStext_builder', 'receive', $SMSTree['0']
-		gs 'SMStext_builder', 'receive', $SMSTree['1']
-		gs 'SMStext_builder', 'receive', $SMSTree['2']
-		gs 'SMStext_builder', 'add_sms', 'Blackmailer'
-	gs 'SMStext_builder', 'end'
-
-	if blackmailQW['stage'] < 6:
-		if blackmailQW['init_flashregion'] = 'city':
-			fame['city_sex'] += 2 * blackmailQW['total_material']
-		elseif blackmailQW['init_flashregion'] = 'gad':
-			fame['gad_sex'] += 10 * blackmailQW['total_material']
-		else
-			fame['pav_sex'] += 5 * blackmailQW['total_material']
+	if blackmailQW['next_payment'] > 0:
+		blackmailQW['stage'] = -1
+		blackmailQW['next_payment'] = 0
+
+		$SMSTree['0'] = 'Guess you like it when people know you''re a whore'
+			$SMSTree['1'] = 'or you didn''t think I''d go through with it'
+				$SMSTree['2'] = 'we''ll see'
+
+		gs 'SMStext_builder', 'start'
+			gs 'SMStext_builder', 'receive', $SMSTree['0']
+			gs 'SMStext_builder', 'receive', $SMSTree['1']
+			gs 'SMStext_builder', 'receive', $SMSTree['2']
+			gs 'SMStext_builder', 'add_sms', 'Blackmailer'
+		gs 'SMStext_builder', 'end'
+
+		if blackmailQW['stage'] < 6:
+			if blackmailQW['init_flashregion'] = 'city':
+				fame['city_sex'] += 2 * blackmailQW['total_material']
+			elseif blackmailQW['init_flashregion'] = 'gad':
+				fame['gad_sex'] += 10 * blackmailQW['total_material']
+			else
+				fame['pav_sex'] += 5 * blackmailQW['total_material']
+			end
 		end
 	end
 end