소스 검색

[fixed] equipping lost clothes via stored clothing sets. Player now gets a message to say something is missing.

3xpurt 5 년 전
부모
커밋
46b6156d28
1개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. 11 2
      locations/wardrobe.qsrc

+ 11 - 2
locations/wardrobe.qsrc

@@ -151,7 +151,11 @@ if $ARGS[0] = 'default_entry_wear':
 	default_entry = ARGS[1]
 
 	gs 'clothing_attributes', $defclothingtype[default_entry], defclothingnumber[default_entry]
-	gs 'clothing', 'wear', $defclothingtype[default_entry], defclothingnumber[default_entry]
+	if ARRPOS('$CloLosTyp', $defclothingtype[default_entry]) ! -1 and ARRPOS('CloLosNum', defclothingnumber[default_entry]) ! -1:
+		msg '<center>You''ve lost part of this set, and are unable to wear all items.<br>Maybe you can find the missing clothes somewhere?</center>'
+	else
+		gs 'clothing', 'wear', $defclothingtype[default_entry], defclothingnumber[default_entry]
+	end
 
 	if dyneval('RESULT = <<$defbratype[default_entry]>>_bras[<<defbranumber[default_entry]>>]') = 0: $defbratype[default_entry] = 'none' & defbranumber[default_entry] = 0
 	gs 'bras', 'wear', $defbratype[default_entry], defbranumber[default_entry]
@@ -338,7 +342,12 @@ if $ARGS[0] = 'sports_entry_wear':
 	gs 'wardrobe', 'prev_entry_set'
 
 	gs 'clothing_attributes', 'exercise', sportsclothingnumber
-	gs 'clothing', 'wear', 'exercise', sportsclothingnumber
+
+	if ARRPOS('$CloLosTyp', 'exercise') ! -1 and ARRPOS('CloLosNum', sportsclothingnumber) ! -1:
+		msg '<center>You''ve lost part of this set, and are unable to wear all items.<br>Maybe you can find the missing clothes somewhere?</center>'
+	else
+		gs 'clothing', 'wear', 'exercise', sportsclothingnumber
+	end
 
 	if dyneval('RESULT = <<$sportsbratype>>_bras[<<sportsbranumber>>]') = 0: $sportsbratype = 'none' & sportsbranumber = 0
 	gs 'bras', 'wear', $sportsbratype, sportsbranumber