mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Moved methods that return item/trainer graphics, refactored evolution helper methods, rearranged some methods
This commit is contained in:
@@ -523,11 +523,9 @@ module Compiler
|
||||
# doesn't have a charset
|
||||
if firstpage.graphic.character_name=="" && GameData::TrainerType.exists?(trtype)
|
||||
trainerid = GameData::TrainerType.get(trtype).id
|
||||
if trainerid
|
||||
filename = pbTrainerCharNameFile(trainerid)
|
||||
if FileTest.image_exist?("Graphics/Characters/"+filename)
|
||||
firstpage.graphic.character_name = sprintf(filename)
|
||||
end
|
||||
filename = GameData::TrainerType.charset_filename_brief(trainerid)
|
||||
if FileTest.image_exist?("Graphics/Characters/"+filename)
|
||||
firstpage.graphic.character_name = sprintf(filename)
|
||||
end
|
||||
end
|
||||
# Create strings that will be used repeatedly
|
||||
|
||||
Reference in New Issue
Block a user