mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Renamed some constants
This commit is contained in:
@@ -277,9 +277,9 @@ class HallOfFame_Scene
|
||||
end
|
||||
|
||||
def getDifficulty
|
||||
if $game_switches[GAME_DIFFICULTY_EASY]
|
||||
if $game_switches[SWITCH_GAME_DIFFICULTY_EASY]
|
||||
return "Easy"
|
||||
elsif $game_switches[GAME_DIFFICULTY_HARD]
|
||||
elsif $game_switches[SWITCH_GAME_DIFFICULTY_HARD]
|
||||
return "Hard"
|
||||
else
|
||||
return "Normal"
|
||||
|
||||
@@ -18,7 +18,7 @@ class PokemonTrainerCard_Scene
|
||||
end
|
||||
cardexists = pbResolveBitmap(sprintf("Graphics/Pictures/Trainer Card/card_f"))
|
||||
@sprites["card"] = IconSprite.new(0,0,@viewport)
|
||||
is_postgame = $game_switches[BEAT_THE_LEAGUE]
|
||||
is_postgame = $game_switches[SWITCH_BEAT_THE_LEAGUE]
|
||||
if $Trainer.female? && cardexists
|
||||
path = "Graphics/Pictures/Trainer Card/card_f"
|
||||
if is_postgame
|
||||
@@ -74,7 +74,7 @@ class PokemonTrainerCard_Scene
|
||||
pbDrawTextPositions(overlay,textPositions)
|
||||
x = 72
|
||||
imagePositions = []
|
||||
postgame = $game_switches[BEAT_THE_LEAGUE]
|
||||
postgame = $game_switches[SWITCH_BEAT_THE_LEAGUE]
|
||||
numberOfBadgesDisplayed = postgame ? 16 : 8
|
||||
for i in 0...numberOfBadgesDisplayed
|
||||
badgeRow= i<8 ? 0 : 1
|
||||
|
||||
@@ -413,19 +413,19 @@ class PokemonOption_Scene
|
||||
]
|
||||
|
||||
|
||||
if $game_switches && ($game_switches[NEW_GAME_PLUS] || $game_switches[BEAT_THE_LEAGUE]) #beat the league
|
||||
if $game_switches && ($game_switches[SWITCH_NEW_GAME_PLUS] || $game_switches[SWITCH_BEAT_THE_LEAGUE]) #beat the league
|
||||
options <<
|
||||
EnumOption.new(_INTL("Battle type"), [_INTL("1v1"), _INTL("2v2"), _INTL("3v3")],
|
||||
proc { $PokemonSystem.battle_type },
|
||||
proc { |value|
|
||||
if value == 0
|
||||
$game_variables[DEFAULT_BATTLE_TYPE] = [1, 1]
|
||||
$game_variables[VAR_DEFAULT_BATTLE_TYPE] = [1, 1]
|
||||
elsif value == 1
|
||||
$game_variables[DEFAULT_BATTLE_TYPE] = [2, 2]
|
||||
$game_variables[VAR_DEFAULT_BATTLE_TYPE] = [2, 2]
|
||||
elsif value == 2
|
||||
$game_variables[DEFAULT_BATTLE_TYPE] = [3, 3]
|
||||
$game_variables[VAR_DEFAULT_BATTLE_TYPE] = [3, 3]
|
||||
else
|
||||
$game_variables[DEFAULT_BATTLE_TYPE] = [1, 1]
|
||||
$game_variables[VAR_DEFAULT_BATTLE_TYPE] = [1, 1]
|
||||
end
|
||||
$PokemonSystem.battle_type=value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user