Tidying up

This commit is contained in:
Maruno17
2021-06-19 20:36:17 +01:00
parent e472d0fcdf
commit 9b4bc66dc0
5 changed files with 20 additions and 20 deletions

View File

@@ -239,7 +239,7 @@ class Pokemon
end
# Sets this Pokémon's status. See {GameData::Status} for all possible status effects.
# @param value [Symbol, String, GameData::Status, Integer] status to set
# @param value [Symbol, String, GameData::Status] status to set
def status=(value)
return if !able?
new_status = GameData::Status.try_get(value)

View File

@@ -11,7 +11,7 @@ class Pokemon
attr_reader :ppup
# Creates a new Move object.
# @param move_id [Symbol, String, Integer] move ID
# @param move_id [Symbol, String, GameData::Move] move ID
def initialize(move_id)
@id = GameData::Move.get(move_id).id
@ppup = 0
@@ -20,7 +20,7 @@ class Pokemon
# Sets this move's ID, and caps the PP amount if it is now greater than this
# move's total PP.
# @param value [Symbol, String, Integer] the new move ID
# @param value [Symbol, String, GameData::Move] the new move ID
def id=(value)
@id = GameData::Move.get(value).id
@pp = @pp.clamp(0, total_pp)