mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-24 07:16:00 +00:00
Deprecate Pokemon#trainerID and Pokemon#publicID
This commit is contained in:
@@ -77,10 +77,6 @@ class Pokemon
|
||||
attr_accessor :pokerus
|
||||
# @return [Integer] this Pokémon's personal ID
|
||||
attr_accessor :personalID
|
||||
# The 32-bit ID of this Pokémon's trainer. The secret ID is in the
|
||||
# upper 16 bits.
|
||||
# @return [Integer] the ID of this Pokémon's trainer
|
||||
attr_accessor :trainerID
|
||||
# @return [Integer] the manner this Pokémon was obtained:
|
||||
# 0 (met), 1 (as egg), 2 (traded), 4 (fateful encounter)
|
||||
attr_accessor :obtainMode
|
||||
@@ -198,11 +194,6 @@ class Pokemon
|
||||
@owner = new_owner
|
||||
end
|
||||
|
||||
# @return [Integer] the public portion of the original trainer's ID
|
||||
def publicID
|
||||
return @trainerID & 0xFFFF
|
||||
end
|
||||
|
||||
# @param trainer [PokeBattle_Trainer] the trainer to compare to the OT
|
||||
# @return [Boolean] whether the given trainer and this Pokémon's original trainer don't match
|
||||
def foreign?(trainer)
|
||||
|
||||
Reference in New Issue
Block a user