mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Adds experimental mode in which levels don't affect stats
This commit is contained in:
@@ -33,6 +33,7 @@ module Settings
|
||||
BACKSPRITE_POSITION_OFFSET = 20
|
||||
FRONTSPRITE_POSITION = 200
|
||||
SHINY_HUE_OFFSET = 75
|
||||
NO_LEVEL_MODE_LEVEL = 25
|
||||
|
||||
RIVAL_STARTER_PLACEHOLDER_SPECIES = :MEW #(MEW)
|
||||
VAR_1_PLACEHOLDER_SPECIES = :DIALGA
|
||||
|
||||
@@ -230,8 +230,8 @@ class PokemonDataBox < SpriteWrapper
|
||||
end
|
||||
pbDrawTextPositions(self.bitmap,textPos)
|
||||
# Draw Pokémon's level
|
||||
imagePos.push(["Graphics/Pictures/Battle/overlay_lv",@spriteBaseX+140,16])
|
||||
pbDrawNumber(@battler.level,self.bitmap,@spriteBaseX+162,16)
|
||||
imagePos.push(["Graphics/Pictures/Battle/overlay_lv",@spriteBaseX+140,16]) if !$game_switches[SWITCH_NO_LEVELS_MODE]
|
||||
pbDrawNumber(@battler.level,self.bitmap,@spriteBaseX+162,16) if !$game_switches[SWITCH_NO_LEVELS_MODE]
|
||||
# Draw shiny icon
|
||||
if @battler.shiny?
|
||||
shinyX = (@battler.opposes?(0)) ? 206 : -6 # Foe's/player's
|
||||
|
||||
@@ -1136,6 +1136,11 @@ class Pokemon
|
||||
base_stats = self.baseStats
|
||||
this_level = self.level
|
||||
this_IV = self.calcIV
|
||||
|
||||
if $game_switches[SWITCH_NO_LEVELS_MODE]
|
||||
this_level = Settings::NO_LEVEL_MODE_LEVEL
|
||||
end
|
||||
|
||||
# Format stat multipliers due to nature
|
||||
nature_mod = {}
|
||||
GameData::Stat.each_main { |s| nature_mod[s.id] = 100 }
|
||||
|
||||
@@ -22,6 +22,7 @@ SWITCH_GAME_DIFFICULTY_EASY = 665
|
||||
SWITCH_GAME_DIFFICULTY_HARD = 666
|
||||
SWITCH_MODERN_MODE=974
|
||||
SWITCH_V5_1=825
|
||||
SWITCH_NO_LEVELS_MODE=774
|
||||
|
||||
#Game progression switches
|
||||
SWITCH_DURING_INTRO = 917
|
||||
|
||||
@@ -32,6 +32,7 @@ def download_sprite(base_path, head_id, body_id)
|
||||
end
|
||||
|
||||
def download_autogen_sprite(head_id, body_id)
|
||||
return nil if !$PokemonSystem.download_sprites
|
||||
base_path = "https://raw.githubusercontent.com/Aegide/autogen-fusion-sprites/master/Battlers/{1}/{1}.{2}.png"
|
||||
sprite = download_sprite(_INTL(base_path,head_id,body_id),head_id,body_id)
|
||||
return sprite if sprite
|
||||
@@ -39,6 +40,7 @@ def download_autogen_sprite(head_id, body_id)
|
||||
end
|
||||
|
||||
def download_custom_sprite(head_id, body_id)
|
||||
return nil if !$PokemonSystem.download_sprites
|
||||
base_path = "https://raw.githubusercontent.com/Aegide/custom-fusion-sprites/main/CustomBattlers/{1}.{2}.png"
|
||||
sprite = download_sprite(_INTL(base_path,head_id,body_id),head_id,body_id)
|
||||
return sprite if sprite
|
||||
|
||||
Reference in New Issue
Block a user