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

[fixed] missing ends and colons

anjuna krokus пре 8 месеци
родитељ
комит
9422459af3
2 измењених фајлова са 6 додато и 7 уклоњено
  1. 2 1
      locations/npc_set_preference.qsrc
  2. 4 6
      locations/pcs_has_attr.qsrc

+ 2 - 1
locations/npc_set_preference.qsrc

@@ -65,6 +65,7 @@ if isnum(mid($ARGS[0], 2)):
 					if $npc_pref_traits = $ARGS[1]:
 						if temp_trait_value ! 0:
 							npc_trait_values[$ARGS[1]] = temp_trait_value
+						end
 
 						!!Rebuild the $npc_pref....[$ARGS[0]] strings from the grounds up
 						gs 'npc_set_preference', 'rebuild_preferences', $ARGS[0]
@@ -136,7 +137,7 @@ end
 
 
 if $ARGS[0] = 'remove_preference':
-	if arrsize('$npc_pref_traits') > 0
+	if arrsize('$npc_pref_traits') > 0:
 		!! Check the position of the preference in the preference array.
 		temp_trait_position = arrpos('$npc_pref_traits', $ARGS[1])
 		

+ 4 - 6
locations/pcs_has_attr.qsrc

@@ -242,6 +242,7 @@ elseif $ARGS[0] = 'body_weak':
 		result = 1
 	else
 		result = 0
+	end
 end
 
 
@@ -568,7 +569,7 @@ if $ARGS[0] = 'hair_pubes_shaven':
 		result = 0
 	end
 
-elseif $ARGS[0] = 'hair_pubes_grown'
+elseif $ARGS[0] = 'hair_pubes_grown':
 	if pcs_pubes > 11 and lashair = 0:
 		result = 1
 	else
@@ -579,14 +580,11 @@ end
 
 
 if $ARGS[0] = 'hair_pubes_style_':
-	if pcs_pubes > 16 and pcs_pubes <= 25 and lashair = 0:
+	result = 0
+	if pcs_pubes > 16 and pcs_pubes <= 25 and lashair = 0 and func('pcs_has_attr', 'clothes_exposed_pussy'):
 		if pubestyle=0:
 			result = 1
-		else
-			result = 0
 		end
-	else
-		result = 0
 	end
 end