Adds experimental mode in which levels don't affect stats

This commit is contained in:
chardub
2023-02-07 17:09:46 -05:00
parent 80543cb31a
commit a487f45800
12 changed files with 12 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 }

View File

@@ -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

View File

@@ -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