mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Shortened the default inspect message for everything, corrected the extension of GameData::Encounter
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
#===============================================================================
|
||||
class Object
|
||||
alias full_inspect inspect
|
||||
|
||||
def inspect
|
||||
return "#<#{self.class}>"
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
|
||||
@@ -21,8 +21,8 @@ class Interpreter
|
||||
end
|
||||
|
||||
def inspect
|
||||
str = self.to_s.chop
|
||||
str << format(' event ID: %d>', @event_id)
|
||||
str = super.chop
|
||||
str << format(' @event_id: %d>', @event_id)
|
||||
return str
|
||||
end
|
||||
|
||||
|
||||
@@ -74,10 +74,6 @@ class Window
|
||||
attr_reader :openness
|
||||
attr_reader :stretch
|
||||
|
||||
def inspect
|
||||
return self.to_s.chop + ">"
|
||||
end
|
||||
|
||||
def windowskin
|
||||
@_windowskin
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ module GameData
|
||||
DATA = {}
|
||||
DATA_FILENAME = "encounters.dat"
|
||||
|
||||
extend ClassMethods
|
||||
extend ClassMethodsSymbols
|
||||
include InstanceMethods
|
||||
|
||||
# @param map_id [Integer]
|
||||
|
||||
@@ -93,7 +93,7 @@ class Pokemon
|
||||
MAX_MOVES = 4
|
||||
|
||||
def inspect
|
||||
str = self.to_s.chop
|
||||
str = super.chop
|
||||
str << format(' %s Lv.%s>', @species, @level.to_s || '???')
|
||||
return str
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ class Trainer
|
||||
attr_accessor :party
|
||||
|
||||
def inspect
|
||||
str = self.to_s.chop
|
||||
str = super.chop
|
||||
party_str = @party.map { |p| p.species_data.species }.inspect
|
||||
str << format(' %s @party=%s>', self.full_name, party_str)
|
||||
return str
|
||||
|
||||
@@ -6,7 +6,7 @@ class Player < Trainer
|
||||
attr_reader :accessible_dexes
|
||||
|
||||
def inspect
|
||||
str = self.to_s.chop
|
||||
str = super.chop
|
||||
str << format(' seen: %d, owned: %d>', self.seen_count, self.owned_count)
|
||||
return str
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user