More or less standardised separator comments in the code

This commit is contained in:
Maruno17
2024-06-27 21:21:26 +01:00
parent 225549bfce
commit 509a414f37
198 changed files with 1907 additions and 1263 deletions

View File

@@ -65,7 +65,7 @@ class BattleSwapScene
@mode = 1
end
# End the scene here
# End the scene here.
def pbEndScene
pbFadeOutAndHide(@sprites) { pbUpdate }
pbDisposeSpriteHash(@sprites)
@@ -93,7 +93,7 @@ class BattleSwapScene
return commands
end
# Processes the scene
# Processes the scene.
def pbChoosePokemon(canCancel)
pbActivateWindow(@sprites, "list") do
loop do

View File

@@ -79,6 +79,7 @@ end
#===============================================================================
#
#===============================================================================
EventHandlers.add(:on_enter_map, :end_safari_game,
proc { |_old_map_id|
pbSafariState.pbEnd if !pbInSafari?
@@ -104,6 +105,7 @@ EventHandlers.add(:on_player_step_taken_can_transfer, :safari_game_counter,
#===============================================================================
#
#===============================================================================
EventHandlers.add(:on_calling_wild_battle, :safari_battle,
proc { |pkmn, handled|
# handled is an array: [nil]. If [true] or [false], the battle has already
@@ -177,6 +179,10 @@ class PokemonPauseMenu
end
end
#===============================================================================
#
#===============================================================================
MenuHandlers.add(:pause_menu, :quit_safari_game, {
"name" => _INTL("Quit"),
"order" => 60,

View File

@@ -118,7 +118,7 @@ class PokemonChallengeRules
end
#===============================================================================
# Stadium Cups rules
# Stadium Cups rules.
#===============================================================================
def pbPikaCupRules(double)
ret = PokemonChallengeRules.new
@@ -213,7 +213,7 @@ def pbStrictLittleCupRules(double)
end
#===============================================================================
# Battle Frontier rules
# Battle Frontier rules.
#===============================================================================
def pbBattleTowerRules(double, openlevel)
ret = PokemonChallengeRules.new
@@ -256,7 +256,7 @@ def pbBattleFactoryRules(double, openlevel)
end
#===============================================================================
# Other Interesting Rulesets
# Other Interesting Rulesets.
#===============================================================================
=begin
# Official Species Restriction

View File

@@ -310,6 +310,7 @@ end
#===============================================================================
#
#===============================================================================
EventHandlers.add(:on_map_or_spriteset_change, :show_bug_contest_timer,
proc { |scene, _map_changed|
next if !pbInBugContest? || pbBugContestState.decision != 0 || BugContestState::TIME_ALLOWED == 0
@@ -347,6 +348,7 @@ EventHandlers.add(:on_leave_map, :end_bug_contest,
#===============================================================================
#
#===============================================================================
EventHandlers.add(:on_calling_wild_battle, :bug_contest_battle,
proc { |pkmn, handled|
# handled is an array: [nil]. If [true] or [false], the battle has already
@@ -423,6 +425,10 @@ class PokemonPauseMenu
end
end
#===============================================================================
#
#===============================================================================
MenuHandlers.add(:pause_menu, :quit_bug_contest, {
"name" => _INTL("Quit Contest"),
"order" => 60,