mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
custom sprites fixes + various map fixes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -407,26 +407,51 @@ end
|
|||||||
# return (body*NB_POKEMON)+head
|
# return (body*NB_POKEMON)+head
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
|
||||||
def getCustomSpeciesList()
|
def getCustomSpeciesList()
|
||||||
filesList = Dir["./Graphics/CustomBattlers/*"]
|
|
||||||
speciesList = []
|
speciesList = []
|
||||||
maxDexNumber = (NB_POKEMON * NB_POKEMON) + NB_POKEMON
|
|
||||||
maxVal = filesList.length - 1
|
for num in 1..NB_POKEMON
|
||||||
for i in 0..maxVal
|
path = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + "/" + num.to_s + "/*"
|
||||||
path = filesList[i]
|
filesList = Dir[path]
|
||||||
file = File.basename(path, ".*")
|
echo filesList
|
||||||
splitPoke = file.split(".")
|
echo "\n\n"
|
||||||
head = splitPoke[0].to_i
|
|
||||||
body = splitPoke[1].to_i
|
maxDexNumber = (NB_POKEMON * NB_POKEMON) + NB_POKEMON
|
||||||
fused = (body * NB_POKEMON) + head
|
maxVal = filesList.length - 1
|
||||||
if fused <= maxDexNumber && fused > 0
|
for i in 0..maxVal
|
||||||
speciesList << fused
|
path = filesList[i]
|
||||||
|
file = File.basename(path, ".*")
|
||||||
|
splitPoke = file.split(".")
|
||||||
|
head = splitPoke[0].to_i
|
||||||
|
body = splitPoke[1].to_i
|
||||||
|
fused = (body * NB_POKEMON) + head
|
||||||
|
if fused <= maxDexNumber && fused > 0
|
||||||
|
speciesList << fused
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return speciesList
|
return speciesList
|
||||||
end
|
end
|
||||||
|
# def getCustomSpeciesList()
|
||||||
|
# filesList = Dir["./Graphics/CustomBattlers/*"]
|
||||||
|
# maxDexNumber = (NB_POKEMON * NB_POKEMON) + NB_POKEMON
|
||||||
|
# maxVal = filesList.length - 1
|
||||||
|
# for i in 0..maxVal
|
||||||
|
# path = filesList[i]
|
||||||
|
# file = File.basename(path, ".*")
|
||||||
|
# splitPoke = file.split(".")
|
||||||
|
# head = splitPoke[0].to_i
|
||||||
|
# body = splitPoke[1].to_i
|
||||||
|
# fused = (body * NB_POKEMON) + head
|
||||||
|
# if fused <= maxDexNumber && fused > 0
|
||||||
|
# speciesList << fused
|
||||||
|
# end
|
||||||
|
#
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
|
||||||
|
|
||||||
def Kernel.getBaseStats(species)
|
def Kernel.getBaseStats(species)
|
||||||
if $pkmn_dex[species] == nil
|
if $pkmn_dex[species] == nil
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ class DoublePreviewScreen
|
|||||||
|
|
||||||
|
|
||||||
def getPicturePath(head_pokemon, body_pokemon)
|
def getPicturePath(head_pokemon, body_pokemon)
|
||||||
pathCustom = _INTL("Graphics/CustomBattlers/{1}.{2}.png", head_pokemon, body_pokemon)
|
pathCustom = _INTL("Graphics/CustomBattlers/indexed/{1}/{1}.{2}.png", head_pokemon, body_pokemon)
|
||||||
if (pbResolveBitmap(pathCustom))
|
if (pbResolveBitmap(pathCustom))
|
||||||
picturePath = pathCustom
|
picturePath = pathCustom
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ def obtainPokemonSpritePath(bodyId, headId, include_customs = true)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def getCustomSpritePath(body,head)
|
def getCustomSpritePath(body,head)
|
||||||
return _INTL("Graphics/CustomBattlers/{1}.{2}.png", head, body)
|
return _INTL("Graphics/CustomBattlers/indexed/{1}/{1}.{2}.png", head, body)
|
||||||
end
|
end
|
||||||
|
|
||||||
def customSpriteExists(species)
|
def customSpriteExists(species)
|
||||||
|
|||||||
@@ -147,12 +147,12 @@ class PokemonPokedexInfo_Scene
|
|||||||
head_id = getHeadID(@species, body_id)
|
head_id = getHeadID(@species, body_id)
|
||||||
|
|
||||||
baseFilename = head_id.to_s + "." + body_id.to_s
|
baseFilename = head_id.to_s + "." + body_id.to_s
|
||||||
baseFilePath = Settings::CUSTOM_BATTLERS_FOLDER + "/" + head_id.to_s + "/" + baseFilename + ".png"
|
baseFilePath = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + "/" + head_id.to_s + "/" + baseFilename + ".png"
|
||||||
if pbResolveBitmap(baseFilePath)
|
if pbResolveBitmap(baseFilePath)
|
||||||
ret << baseFilePath
|
ret << baseFilePath
|
||||||
end
|
end
|
||||||
POSSIBLE_ALTS.each { |alt_letter|
|
POSSIBLE_ALTS.each { |alt_letter|
|
||||||
altFilePath = Settings::CUSTOM_BATTLERS_FOLDER + "/" + head_id.to_s + "/" + baseFilename + alt_letter + ".png"
|
altFilePath = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + "/" + head_id.to_s + "/" + baseFilename + alt_letter + ".png"
|
||||||
if pbResolveBitmap(altFilePath)
|
if pbResolveBitmap(altFilePath)
|
||||||
ret << altFilePath
|
ret << altFilePath
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user