mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Cinnabar cutscene changes + resort gorgeous fix
This commit is contained in:
@@ -16,7 +16,7 @@ module Settings
|
||||
LEADER_VICTORY_MUSIC="Battle victory leader"
|
||||
TRAINER_VICTORY_MUSIC="trainer-victory"
|
||||
WILD_VICTORY_MUSIC="wild-victory"
|
||||
#
|
||||
#getRandomCustomFusionForIntro
|
||||
FUSION_ICON_SPRITE_OFFSET = 10
|
||||
|
||||
#Infinite fusion settings
|
||||
@@ -42,7 +42,8 @@ module Settings
|
||||
BACKSPRITE_POSITION_OFFSET = 20
|
||||
FRONTSPRITE_POSITION = 200
|
||||
SHINY_HUE_OFFSET = 75
|
||||
NO_LEVEL_MODE_LEVEL = 25
|
||||
NO_LEVEL_MODE_LEVEL_INCR = 5.8
|
||||
NO_LEVEL_MODE_LEVEL_BASE = 6
|
||||
|
||||
RIVAL_STARTER_PLACEHOLDER_SPECIES = :MEW #(MEW)
|
||||
VAR_1_PLACEHOLDER_SPECIES = :DIALGA
|
||||
|
||||
@@ -1139,6 +1139,16 @@ class Pokemon
|
||||
return ((((base * 2 + iv + (ev / 4)) * level / 100).floor + 5) * nat / 100).floor
|
||||
end
|
||||
|
||||
def adjust_level_for_base_stats_mode()
|
||||
nb_badges = $Trainer.badge_count
|
||||
this_level = ((nb_badges * Settings::NO_LEVEL_MODE_LEVEL_INCR) + Settings::NO_LEVEL_MODE_LEVEL_BASE).ceil
|
||||
if this_level > Settings::MAXIMUM_LEVEL
|
||||
this_level = Settings::MAXIMUM_LEVEL
|
||||
end
|
||||
return this_level
|
||||
end
|
||||
|
||||
|
||||
# Recalculates this Pokémon's stats.
|
||||
def calc_stats
|
||||
base_stats = self.baseStats
|
||||
@@ -1146,7 +1156,7 @@ class Pokemon
|
||||
this_IV = self.calcIV
|
||||
|
||||
if $game_switches[SWITCH_NO_LEVELS_MODE]
|
||||
this_level = Settings::NO_LEVEL_MODE_LEVEL
|
||||
this_level = adjust_level_for_base_stats_mode()
|
||||
end
|
||||
|
||||
# Format stat multipliers due to nature
|
||||
|
||||
@@ -429,7 +429,7 @@ def getCustomSpeciesList(allowOnline = true, redownload_file=false)
|
||||
end
|
||||
end
|
||||
|
||||
if speciesList.length <= 200 && allowOnline
|
||||
if speciesList.length <= 20000 && allowOnline
|
||||
if redownload_file && Kernel.pbConfirmMessage(_INTL("Not enough local sprites found. Attempt to fetch list from the internet?"))
|
||||
updateOnlineCustomSpritesFile
|
||||
end
|
||||
|
||||
@@ -162,7 +162,6 @@ def getRandomCustomFusionForIntro(returnRandomPokemonIfNoneFound = true, customP
|
||||
randPoke << rand(maxPoke) + 1
|
||||
end
|
||||
end
|
||||
|
||||
return randPoke
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user