Deprecate Pokemon#otgender and Pokemon#otgender=

This commit is contained in:
jonisavo
2020-10-16 14:07:09 +03:00
parent 71c7f9ce76
commit 0122ccadcf
2 changed files with 12 additions and 10 deletions

View File

@@ -94,11 +94,6 @@ class Pokemon
attr_accessor :hatchedMap
# @param value [Integer] new language
attr_writer :language
# Changes the gender of the original trainer. This is for information only,
# and is not used to verify ownership of the Pokémon.
# @param value [Integer] new value for the original trainer's gender:
# 0 - male, 1 - female, 2 - mixed, 3 - unknown
attr_writer :otgender
# @param value [Integer] new contest stat
attr_writer :cool,:beauty,:cute,:smart,:tough,:sheen
@@ -204,11 +199,6 @@ class Pokemon
end
alias isForeign? foreign?
# @return [0, 1, 2] the gender of this Pokémon original trainer (0 = male, 1 = female, 2 = unknown)
def otgender
return @otgender || 2
end
# @return [Integer] this Pokémon's level when it was obtained
def obtainLevel
return @obtainLevel || 0