mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Slightly simplified phone trainer contacts
This commit is contained in:
@@ -364,11 +364,12 @@ SaveData.register_conversion(:v21_replace_phone_data) do
|
||||
@phoneNumbers.each do |contact|
|
||||
if contact.length > 4
|
||||
# Trainer
|
||||
# TODO: Is there any way to ensure the versions count is accurate?
|
||||
Phone.add_silent(contact[6], contact[7], contact[1], contact[2], 0, [contact[5], 3].max)
|
||||
# TODO: Is there any way to ensure the versions count (contact[5]
|
||||
# is the next version to be battled) is accurate?
|
||||
Phone.add_silent(contact[6], contact[7], contact[1], contact[2], contact[5], 0)
|
||||
new_contact = Phone.get(contact[1], contact[2], 0)
|
||||
new_contact.visible = contact[0]
|
||||
new_contact.version = contact[5]
|
||||
new_contact.version = [contact[5] - 1, 0].max
|
||||
new_contact.rematch_flag = [contact[4] - 1, 0].max
|
||||
else
|
||||
# Non-trainer
|
||||
|
||||
Reference in New Issue
Block a user