Updated to mkxp-z 2.1.2, added def inspect to some classes

This commit is contained in:
Maruno17
2021-05-02 00:58:25 +01:00
parent 7877f75f99
commit 8e6ee21c20
8 changed files with 23 additions and 113 deletions

View File

@@ -8,6 +8,13 @@ class Trainer
attr_accessor :language
attr_accessor :party
def inspect
str = self.to_s.chop
party_str = @party.map { |p| p.species_data.species }.inspect
str << format(' %s @party=%s>', self.full_name, party_str)
return str
end
def full_name
return _INTL("{1} {2}", trainer_type_name, @name)
end