Refactored phone/rematches code, added Phone.rematches_enabled/Phone.rematch_variant/map metadata flag "NoPhoneSignal", changed event layout, trainer contacts can use Common Events for their calls, etc.

This commit is contained in:
Maruno17
2022-08-13 16:52:42 +01:00
parent c79b970d6b
commit aa9b1a9e23
9 changed files with 851 additions and 412 deletions

View File

@@ -14,8 +14,9 @@ class PokemonGlobalMetadata
attr_accessor :stepcount
attr_accessor :pcItemStorage
attr_accessor :mailbox
attr_accessor :phoneNumbers
attr_accessor :phoneTime
attr_accessor :phoneNumbers # Deprecated
attr_accessor :phoneTime # Deprecated
attr_accessor :phone
attr_accessor :partner
attr_accessor :creditsPlayed
# Pokédex
@@ -64,8 +65,7 @@ class PokemonGlobalMetadata
@stepcount = 0
@pcItemStorage = nil
@mailbox = nil
@phoneNumbers = []
@phoneTime = 0
@phone = Phone.new
@partner = nil
@creditsPlayed = false
# Pokédex