فهرست منبع

[changed] removed redundent `any` variable since it should just be equal to `total > 0`

anjuna krokus 2 ماه پیش
والد
کامیت
b3cd3a0f3e
2فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 1 1
      locations/gschool_grounds.qsrc
  2. 2 3
      locations/piercing_management.qsrc

+ 1 - 1
locations/gschool_grounds.qsrc

@@ -774,7 +774,7 @@ if $ARGS[0] = 'change_room':
 		end
 	end
 	*nl
-	'The locker room is accessed through the school gym and is left unlocked until '+func('time', 'get_time_string', 18, 30, cheatVars['time_format'])+' each day for the use of students using the sports ground for training and events outside school hours. The room is cold, damp and filled with lockers, benches and not much else. You can <a href="exec: gt ''wardrobe'', ''start''">change your outfit</a> by the lockers here' + iif(pcs_piercings['any'], ', and <a href="exec: gt ''piercing_management'', ''main''">manage your piercings</a>', '') + '.'
+	'The locker room is accessed through the school gym and is left unlocked until '+func('time', 'get_time_string', 18, 30, cheatVars['time_format'])+' each day for the use of students using the sports ground for training and events outside school hours. The room is cold, damp and filled with lockers, benches and not much else. You can <a href="exec: gt ''wardrobe'', ''start''">change your outfit</a> by the lockers here' + iif(pcs_piercings['total'] > 0, ', and <a href="exec: gt ''piercing_management'', ''main''">manage your piercings</a>', '') + '.'
 	*nl
 
 	if (hour = 18 and minut >= 30) or hour > 18:

+ 2 - 3
locations/piercing_management.qsrc

@@ -23,14 +23,14 @@ end
 
 
 if $ARGS[0] = 'set_manage_string':
-	if pcs_piercings['any'] > 0:
+	if pcs_piercings['total'] > 0:
 		'<a href="exec: gt ''piercing_management'', ''main''">Manage Piercings</a>'
 	end
 	exit
 end
 
 if $ARGS[0] = 'set_manage_act':
-	if pcs_piercings['any'] > 0:
+	if pcs_piercings['total'] > 0:
 		act 'Manage Piercings': gt 'piercing_management', 'main'
 	end
 	exit
@@ -40,7 +40,6 @@ end
 if $ARGS[0] = 'add':
 	if pcs_piercings[$ARGS[1]] = 0: pcs_piercings['total'] += 1
 	if pcs_piercings[$ARGS[1]] <= 0: pcs_piercings['wearing'] += 1
-	pcs_piercings['any'] = 1
 	pcs_piercings[$ARGS[1]] = ARGS[2]
 	pcs_piercings['<<$ARGS[1]>>_<<ARGS[2]>>_owned'] = 1
 	exit