update 6.7

This commit is contained in:
chardub
2025-09-28 15:53:01 -04:00
parent ef5e023ae0
commit 318ff90d8d
696 changed files with 111759 additions and 198230 deletions

View File

@@ -1,11 +1,17 @@
# available channels
# :RANDOM
# :NEWS
# :WEATHER
#
def showTVText(channel = :NEWS)
TV_CHANNELS = [:NEWS, :WEATHER]
def showTVText(channel = :RANDOM)
channel = TV_CHANNELS.sample if channel == :RANDOM
case channel
when :NEWS
pbMessage(getTVNewsCaption())
when :WEATHER
pbMessage(_INTL("It's the weather channel! Let's see how things are looking out today."))
pbWeatherMapMap()
end
end
@@ -25,3 +31,41 @@ def hoennSelectStarter
pbAddPokemonSilent(selected_starter)
return selected_starter
end
def secretBaseQuest_pickedNearbySpot()
return false if !$Trainer.secretBase
expected_map = 65
expected_positions = [
[30,43],[31,43],[32,42],[33,42],[34,42],[35,42],[36,40],[37,40],#trees
[41,40] #cliff
]
picked_base_map = $Trainer.secretBase.outside_map_id
picked_position = $Trainer.secretBase.outside_entrance_position
echoln picked_base_map
echoln picked_position
echoln picked_base_map == expected_map && expected_positions.include?(picked_position)
return picked_base_map == expected_map && expected_positions.include?(picked_position)
end
#To scroll a picture on screen in a seamless, continuous loop (used in the truck scene in the intro)
# Provide 2 pictures (so that the loop isn't choppy)
# Speed in pixels per frame
def scroll_picture_loop(pic_a_nb, pic_b_nb, width, speed)
pic_a = $game_screen.pictures[pic_a_nb]
pic_b = $game_screen.pictures[pic_b_nb]
# move both
pic_a.x -= speed
pic_b.x -= speed
# wrap-around: always place offscreen one after the other
if pic_a.x <= -width
pic_a.x = pic_b.x + width
elsif pic_b.x <= -width
pic_b.x = pic_a.x + width
end
end