mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Tidying up
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user