Преглед изворни кода

[changed] added an image to auto pill notification

LinaHirata пре 7 месеци
родитељ
комит
5a0d4f4a8c
1 измењених фајлова са 15 додато и 13 уклоњено
  1. 15 13
      locations/fertility.qsrc

+ 15 - 13
locations/fertility.qsrc

@@ -31,15 +31,16 @@ if $ARGS[0] = 'auto_pill' and tabletkichday < daystart:
 	tabletkipt = 0
 
 	if tabletkicheck = 1:
+		$temp_img = '<img height = <<set_siconht>> src="images/system/icons/status/bc_pill.png"><br>'
 		if mc_inventory['contraceptive_pill'] = 0 and pillsleft[ptype] = 0:
 			tabletkicheck = 0
-			gs 'notification', 'add', 'You are out of birth control pills.'
+			gs 'notification', 'add', '<<$temp_img>>You are out of birth control pills.'
 			tabletkipi = -5
 			jump 'auto_pill_break_goto'
 		elseif mc_inventory['contraceptive_pill'] = 0 and pillsleft[ptype] = 28:
-			gs 'notification', 'add', 'You have just opened your last package of birth control pills. You need to buy more.'
+			gs 'notification', 'add', '<<$temp_img>>You have just opened your last package of birth control pills. You need to buy more.'
 		elseif mc_inventory['contraceptive_pill'] = 0 and pillsleft[ptype] <= 5:
-			gs 'notification', 'add', 'You are running out of birth control pills, you only have a few left.'
+			gs 'notification', 'add', '<<$temp_img>>You are running out of birth control pills, you only have a few left.'
 		end
 
 		birth_control['using_bc'] = 3
@@ -62,16 +63,16 @@ if $ARGS[0] = 'auto_pill' and tabletkichday < daystart:
 			if tabletkipd > -10:
 				if pcs_willpwr < willpowermax / 4:
 					!msg 'You stare at your package of birth control pills, you know you should take one but you can''t quite work up enough effort to care.'
-					gs 'notification', 'add', 'You stare at your package of birth control pills, you know you should take one but you can''t quite work up enough effort to care.'
+					gs 'notification', 'add', '<<$temp_img>>You stare at your package of birth control pills, you know you should take one but you can''t quite work up enough effort to care.'
 				elseif pcs_mood < 10:
 					!msg 'You stare at your package of birth control pills, but you don''t open it.'
-					gs 'notification', 'add', 'You stare at your package of birth control pills, but you don''t open it.'
+					gs 'notification', 'add', '<<$temp_img>>You stare at your package of birth control pills, but you don''t open it.'
 				elseif pcs_sleep < 10:
 					!msg 'You fumble with your birth control pills, trying to get a pill out. You finally give up too tired to manage it.'
-					gs 'notification', 'add', 'You fumble with your birth control pills, trying to get a pill out. You finally give up too tired to manage it.'
+					gs 'notification', 'add', '<<$temp_img>>You fumble with your birth control pills, trying to get a pill out. You finally give up too tired to manage it.'
 				else
 					!msg 'You just realized you forgot to take your birth control pill today.'
-					gs 'notification', 'add', 'You just realized you forgot to take your birth control pill today.'
+					gs 'notification', 'add', '<<$temp_img>>You just realized you forgot to take your birth control pill today.'
 				end
 			end
 			tabletkipt = 2
@@ -94,27 +95,27 @@ if $ARGS[0] = 'auto_pill' and tabletkichday < daystart:
 				end
 
 				if tabletkipd > -10:
-					gs 'notification', 'add', 'You find yourself holding the bottle of birth control pills, you cannot remember if you took one or not.'
+					gs 'notification', 'add', '<<$temp_img>>You find yourself holding the bottle of birth control pills, you cannot remember if you took one or not.'
 				end
 				if tabletkipd > 0:
 					if rand(0,9) = 0:
 						if tabletkipt < 0:
-							gs 'notification', 'add', 'You don''t think you have taken your pill today.'
+							gs 'notification', 'add', '<<$temp_img>>You don''t think you have taken your pill today.'
 						else
 							pilldaychk = daystart
-							gs 'notification', 'add', 'You think you have taken your pill today.'
+							gs 'notification', 'add', '<<$temp_img>>You think you have taken your pill today.'
 						end
 					else
 						if tabletkipt > 0:
-							gs 'notification', 'add', 'You don''t think you have taken your pill today.'
+							gs 'notification', 'add', '<<$temp_img>>You don''t think you have taken your pill today.'
 						else
 							pilldaychk = daystart
-							gs 'notification', 'add', 'You think you have taken your pill today.'
+							gs 'notification', 'add', '<<$temp_img>>You think you have taken your pill today.'
 						end
 					end
 				end
 			else
-				gs 'notification', 'add', 'You take your birth control pill for the day.'
+				gs 'notification', 'add', '<<$temp_img>>You take your birth control pill for the day.'
 				pilldaychk = daystart
 				gs 'din_bad','takepill'
 				if rand(0,7) = 0 and tabletkiday >= (daystart - 1): tabletkipd += 1
@@ -150,6 +151,7 @@ if $ARGS[0] = 'auto_pill' and tabletkichday < daystart:
 
 	gs 'fertility', 'update'
 	:auto_pill_break_goto
+	killvar '$temp_img'
 end
 
 if $ARGS[0] = 'daily_update':