1
0
Преглед на файлове

The wear fuction uses 'none' and 0 if lastworn not filled fix

KevinSmarts преди 6 години
родител
ревизия
6997499121
променени са 2 файла, в които са добавени 14 реда и са изтрити 4 реда
  1. 7 2
      locations/bras
  2. 7 2
      locations/panties

+ 7 - 2
locations/bras

@@ -22,8 +22,13 @@ end
 if $ARGS[0] = 'wear':
 	if $ARGS[1] = '':
 		bra_none = 0
-		$braworntype = $lastwornbratype
-		brawornnumber = lastwornbranumber
+		if $lastwornbratype ! '':
+			$braworntype = $lastwornbratype
+			brawornnumber = lastwornbranumber
+		else
+			$braworntype = 'none'
+			brawornnumber = 0
+		end
 	else
 		$braworntype = $ARGS[1]
 		brawornnumber = ARGS[2]

+ 7 - 2
locations/panties

@@ -22,8 +22,13 @@ end
 if $ARGS[0] = 'wear':
 	if $ARGS[1] = '':
 		panty_none = 0
-		$pantyworntype = $lastwornpantytype
-		pantywornnumber = lastwornpantynumber
+		if $lastwornpantytype ! '':
+			$pantyworntype = $lastwornpantytype
+			pantywornnumber = lastwornpantynumber
+		else
+			$pantyworntype = 'none'
+			pantywornnumber = 0
+		end
 	else
 		$pantyworntype = $ARGS[1]
 		pantywornnumber = ARGS[2]