display spriter credits in fusion screen and pokedex

This commit is contained in:
infinitefusion
2023-04-08 09:19:07 -04:00
parent 43752e511a
commit 96074dd94c
21 changed files with 68 additions and 2 deletions

View File

@@ -412,6 +412,15 @@ def customSpriteExistsBase(body,head)
return download_custom_sprite(head, body) != nil
end
def getSpriteCredits(spriteName)
File.foreach(Settings::CREDITS_FILE_PATH) do |line|
row = line.split(';')
if row[0].include?(spriteName)
return row[1]
end
end
return nil
end
def getArceusPlateType(heldItem)
return :NORMAL if heldItem == nil