Shortened the default inspect message for everything, corrected the extension of GameData::Encounter

This commit is contained in:
Maruno17
2021-05-09 01:52:55 +01:00
parent 218225cc91
commit 326e2e7929
8 changed files with 19 additions and 18 deletions

View File

@@ -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

View File

@@ -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