mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed inconsistency in
Data/Scripts/001_Settings.rb sprite folder paths and modified all references to these constants to match the new convention. These paths will now always contain the ending slash.
This commit is contained in:
@@ -104,7 +104,7 @@ class PokeBattle_Battle
|
||||
end
|
||||
|
||||
#######
|
||||
# end of class
|
||||
# end of class
|
||||
######
|
||||
|
||||
####methodes utilitaires
|
||||
@@ -401,10 +401,10 @@ end
|
||||
# i = rand(filesList.length-1)
|
||||
# path = filesList[i]
|
||||
# file = File.basename(path, ".*")
|
||||
# splitPoke = file.split(".")
|
||||
# splitPoke = file.split(".")
|
||||
# head = splitPoke[0].to_i
|
||||
# body = splitPoke[1].to_i
|
||||
# return (body*NB_POKEMON)+head
|
||||
# return (body*NB_POKEMON)+head
|
||||
#end
|
||||
|
||||
|
||||
@@ -412,7 +412,7 @@ def getCustomSpeciesList(allowOnline=true)
|
||||
speciesList = []
|
||||
|
||||
for num in 1..NB_POKEMON
|
||||
path = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + "/" + num.to_s + "/*"
|
||||
path = Settings::CUSTOM_BATTLERS_FOLDER_INDEXED + num.to_s + "/*"
|
||||
filesList = Dir[path]
|
||||
maxDexNumber = (NB_POKEMON * NB_POKEMON) + NB_POKEMON
|
||||
maxVal = filesList.length - 1
|
||||
@@ -695,7 +695,7 @@ def replaceRivalStarterIfNecessary(species)
|
||||
end
|
||||
|
||||
def fixRivalStarter()
|
||||
#set starter baseform
|
||||
#set starter baseform
|
||||
if $PokemonGlobal.psuedoBSTHash == nil
|
||||
psuedoHash = Hash.new
|
||||
for i in 0..NB_POKEMON
|
||||
@@ -738,4 +738,3 @@ def fixRivalStarter()
|
||||
pbSet(250, rivalStarter)
|
||||
$game_switches[840] = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user