Ver código fonte

[Fixed] Wrong variables used in convert_dob

Awesome 2 meses atrás
pai
commit
dba9e18b2c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      locations/shortgs.qsrc

+ 2 - 2
locations/shortgs.qsrc

@@ -1278,10 +1278,10 @@ end
 if $ARGS[0] = 'convert_dob':
 	!! Calculate NPC birthday and convert to human readable format
 	temp_npc_birthday = (npc_dob['A<<ARGS[1]>>'] mod 100)
-	$temp_day_suffix = func('shortgs', 'get_number_suffix', birthday)
+	$temp_day_suffix = func('shortgs', 'get_number_suffix', temp_npc_birthday)
 	temp_npc_birthmonth = (npc_dob['A<<ARGS[1]>>'] / 100) mod 100
 	temp_npc_birthyear = npc_dob['A<<ARGS[1]>>'] / 10000
-	$result = '<<birthday>><<$temp_day_suffix>> ' + $monthName[birthmonth]+ ', ' + temp_npc_birthyear
+	$result = '<<temp_npc_birthday>><<$temp_day_suffix>> ' + $monthName[temp_npc_birthmonth]+ ', ' + temp_npc_birthyear
 	killvar 'temp_npc_birthday'
 	killvar 'temp_npc_birthmonth'
 	killvar 'temp_npc_birthyear'