mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Refactored summary screen code
This commit is contained in:
@@ -314,6 +314,21 @@ class Pokemon
|
||||
@ready_to_evolve = false
|
||||
end
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Stats.
|
||||
#-----------------------------------------------------------------------------
|
||||
def stat(id)
|
||||
case id
|
||||
when :HP then return @totalhp
|
||||
when :ATTACK then return @attack
|
||||
when :DEFENSE then return @defense
|
||||
when :SPECIAL_ATTACK then return @spatk
|
||||
when :SPECIAL_DEFENSE then return @spdef
|
||||
when :SPEED then return @speed
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Types.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user