Browse Source

mid($start_type,1,3) == 'uni' -> setup.startingCharacterTagsIncludes('uni')

Stephan Fuchs 8 months ago
parent
commit
66d3b33463

+ 2 - 2
sugarcube/src/activities/sleep/sleep.tw

@@ -409,7 +409,7 @@
 		<<if getvar("$disable_autosave") == 0>>
 			<<if setup.startingCharacterTagsIncludes('city')>>
 				savegame 'autosave_city.sav'
-			<<elseif mid($start_type,1,3) == 'uni'>>
+			<<elseif setup.startingCharacterTagsIncludes('uni')>>
 				savegame 'autosave_uni.sav'
 			<<else>>
 				savegame 'autosave_sg.sav'
@@ -440,7 +440,7 @@
 		<<if getvar("$disable_autosave") == 0>>
 			<<if setup.startingCharacterTagsIncludes('city')>>
 				savegame 'autosave_city.sav'
-			<<elseif mid($start_type,1,3) == 'uni'>>
+			<<elseif setup.startingCharacterTagsIncludes('uni')>>
 				savegame 'autosave_uni.sav'
 			<<else>>
 				savegame 'autosave_sg.sav'

+ 1 - 1
sugarcube/src/autogenerated/unsorted/mainQW.tw

@@ -53,7 +53,7 @@ You sit in the back seat of the black jeep, Gustav starts to drive while Tatiana
 					<<set $time.minutes += 15>>
 					<<if setup.startingCharacterTagsIncludes('city')>>
 						<<gt 'city_residential'>>
-					<<elseif mid($start_type,1,3) == 'uni'>>
+					<<elseif setup.startingCharacterTagsIncludes('uni')>>
 						<<gt 'city_island'>>
 					<<else>>
 						<<gt 'pav_residential'>>

+ 1 - 1
sugarcube/src/autogenerated/unsorted/placer_sex.tw

@@ -1256,7 +1256,7 @@
 	<<if getvar("$disable_autosave") == 0>>
 		<<if setup.startingCharacterTagsIncludes('city')>>
 			savegame 'autosave_city.sav'
-		<<elseif mid($start_type,1,3) == 'uni'>>
+		<<elseif setup.startingCharacterTagsIncludes('uni')>>
 			savegame 'autosave_uni.sav'
 		<<else>>
 			savegame 'autosave_sg.sav'

+ 1 - 1
sugarcube/src/locations/city/city_island.tw

@@ -68,7 +68,7 @@ The university and shops and clubs that cater to the students dominate this area
 	The <<link "University dorms">><<gt 'uni_dorm' 'start'>><</link>> offers small, but cheap, living space, for university students.
 
 <</if>>
-<<if getvar("$pcs_magik") >= 1 and getvar("$mainQW") == 0 and mid($start_type,1,3) == 'uni'>>
+<<if getvar("$pcs_magik") >= 1 and getvar("$mainQW") == 0 and setup.startingCharacterTagsIncludes('uni')>>
 	<<set $menu_off = 1>>
 	<<set $mainQW = 1>>
 	<<image "locations/city/citycenter/lab/event/main.jpg">>

+ 1 - 1
sugarcube/src/locations/city/city_sauna.tw

@@ -225,7 +225,7 @@
 					<<if getvar("$disable_autosave") == 0>>
 						<<if setup.startingCharacterTagsIncludes('city')>>
 							savegame 'autosave_city.sav'
-						<<elseif mid($start_type,1,3) == 'uni'>>
+						<<elseif setup.startingCharacterTagsIncludes('uni')>>
 							savegame 'autosave_uni.sav'
 						<<else>>
 							savegame 'autosave_sg.sav'