Sfoglia il codice sorgente

[Fixed] Wrong variables used in convert_dob

Awesome 2 mesi fa
parent
commit
dba9e18b2c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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'