mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
quick surf + bug fixes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@
|
|||||||
module Settings
|
module Settings
|
||||||
# The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format.
|
# The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format.
|
||||||
GAME_VERSION = '5.0.0'
|
GAME_VERSION = '5.0.0'
|
||||||
GAME_VERSION_NUMBER = "5.0.9 - beta"
|
GAME_VERSION_NUMBER = "5.0.10 - beta"
|
||||||
|
|
||||||
#
|
#
|
||||||
FUSION_ICON_SPRITE_OFFSET = 10
|
FUSION_ICON_SPRITE_OFFSET = 10
|
||||||
|
|||||||
@@ -37,50 +37,51 @@ class Sprite_Reflection
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
return if disposed?
|
return
|
||||||
shouldShow = @rsprite.visible
|
# return if disposed?
|
||||||
if !shouldShow
|
# shouldShow = @rsprite.visible
|
||||||
# Just-in-time disposal of sprite
|
# if !shouldShow
|
||||||
if @sprite
|
# # Just-in-time disposal of sprite
|
||||||
@sprite.dispose
|
# if @sprite
|
||||||
@sprite = nil
|
# @sprite.dispose
|
||||||
end
|
# @sprite = nil
|
||||||
return
|
# end
|
||||||
end
|
# return
|
||||||
# Just-in-time creation of sprite
|
# end
|
||||||
@sprite = Sprite.new(@viewport) if !@sprite
|
# # Just-in-time creation of sprite
|
||||||
if @sprite
|
# @sprite = Sprite.new(@viewport) if !@sprite
|
||||||
x = @rsprite.x-@rsprite.ox
|
# if @sprite
|
||||||
y = @rsprite.y-@rsprite.oy
|
# x = @rsprite.x-@rsprite.ox
|
||||||
y -= 32 if @rsprite.character.character_name[/offset/i]
|
# y = @rsprite.y-@rsprite.oy
|
||||||
@height = $PokemonGlobal.bridge if !@fixedheight
|
# y -= 32 if @rsprite.character.character_name[/offset/i]
|
||||||
y += @height*16
|
# @height = $PokemonGlobal.bridge if !@fixedheight
|
||||||
width = @rsprite.src_rect.width
|
# y += @height*16
|
||||||
height = @rsprite.src_rect.height
|
# width = @rsprite.src_rect.width
|
||||||
@sprite.x = x+width/2
|
# height = @rsprite.src_rect.height
|
||||||
@sprite.y = y+height+height/2
|
# @sprite.x = x+width/2
|
||||||
@sprite.ox = width/2
|
# @sprite.y = y+height+height/2
|
||||||
@sprite.oy = height/2-2 # Hard-coded 2 pixel shift up
|
# @sprite.ox = width/2
|
||||||
@sprite.oy -= @rsprite.character.bob_height*2
|
# @sprite.oy = height/2-2 # Hard-coded 2 pixel shift up
|
||||||
@sprite.z = -50 # Still water is -100, map is 0 and above
|
# @sprite.oy -= @rsprite.character.bob_height*2
|
||||||
@sprite.zoom_x = @rsprite.zoom_x
|
# @sprite.z = -50 # Still water is -100, map is 0 and above
|
||||||
@sprite.zoom_y = @rsprite.zoom_y
|
# @sprite.zoom_x = @rsprite.zoom_x
|
||||||
frame = (Graphics.frame_count%40)/10
|
# @sprite.zoom_y = @rsprite.zoom_y
|
||||||
@sprite.zoom_x *= [1.0, 0.95, 1.0, 1.05][frame]
|
# frame = (Graphics.frame_count%40)/10
|
||||||
@sprite.angle = 180.0
|
# @sprite.zoom_x *= [1.0, 0.95, 1.0, 1.05][frame]
|
||||||
@sprite.mirror = true
|
# @sprite.angle = 180.0
|
||||||
@sprite.bitmap = @rsprite.bitmap
|
# @sprite.mirror = true
|
||||||
@sprite.tone = @rsprite.tone
|
# @sprite.bitmap = @rsprite.bitmap
|
||||||
if @height>0
|
# @sprite.tone = @rsprite.tone
|
||||||
@sprite.color = Color.new(48,96,160,255) # Dark still water
|
# if @height>0
|
||||||
@sprite.opacity = @rsprite.opacity
|
# @sprite.color = Color.new(48,96,160,255) # Dark still water
|
||||||
@sprite.visible = !Settings::TIME_SHADING # Can't time-tone a colored sprite
|
# @sprite.opacity = @rsprite.opacity
|
||||||
else
|
# @sprite.visible = !Settings::TIME_SHADING # Can't time-tone a colored sprite
|
||||||
@sprite.color = Color.new(224,224,224,96)
|
# else
|
||||||
@sprite.opacity = @rsprite.opacity*3/4
|
# @sprite.color = Color.new(224,224,224,96)
|
||||||
@sprite.visible = true
|
# @sprite.opacity = @rsprite.opacity*3/4
|
||||||
end
|
# @sprite.visible = true
|
||||||
@sprite.src_rect = @rsprite.src_rect
|
# end
|
||||||
end
|
# @sprite.src_rect = @rsprite.src_rect
|
||||||
end
|
# end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -722,6 +722,12 @@ def pbSurf
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if $PokemonSystem.quicksurf == 1
|
||||||
|
surfbgm = GameData::Metadata.get.surf_BGM
|
||||||
|
pbCueBGM(surfbgm, 0.5) if surfbgm
|
||||||
|
pbStartSurfing
|
||||||
|
return true
|
||||||
|
end
|
||||||
if pbConfirmMessage(_INTL("The water is a deep blue...\nWould you like to surf on it?"))
|
if pbConfirmMessage(_INTL("The water is a deep blue...\nWould you like to surf on it?"))
|
||||||
speciesname = (movefinder) ? movefinder.name : $Trainer.name
|
speciesname = (movefinder) ? movefinder.name : $Trainer.name
|
||||||
pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
|
pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ class PokemonSystem
|
|||||||
attr_accessor :bgmvolume
|
attr_accessor :bgmvolume
|
||||||
attr_accessor :sevolume
|
attr_accessor :sevolume
|
||||||
attr_accessor :textinput
|
attr_accessor :textinput
|
||||||
|
attr_accessor :quicksurf
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@textspeed = 1 # Text speed (0=slow, 1=normal, 2=fast)
|
@textspeed = 1 # Text speed (0=slow, 1=normal, 2=fast)
|
||||||
@@ -26,6 +27,7 @@ class PokemonSystem
|
|||||||
@bgmvolume = 100 # Volume of background music and ME
|
@bgmvolume = 100 # Volume of background music and ME
|
||||||
@sevolume = 100 # Volume of sound effects
|
@sevolume = 100 # Volume of sound effects
|
||||||
@textinput = 1 # Text input mode (0=cursor, 1=keyboard)
|
@textinput = 1 # Text input mode (0=cursor, 1=keyboard)
|
||||||
|
@quicksurf = 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -394,6 +396,14 @@ class PokemonOption_Scene
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if $game_switches && $game_switches[GOT_BADGE_5] #badge for Surf
|
||||||
|
@PokemonOptions <<
|
||||||
|
EnumOption.new(_INTL("Quick Surf"), [_INTL("Off"), _INTL("On")],
|
||||||
|
proc { $PokemonSystem.quicksurf },
|
||||||
|
proc { |value| $PokemonSystem.quicksurf = value }
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
@PokemonOptions = pbAddOnOptions(@PokemonOptions)
|
@PokemonOptions = pbAddOnOptions(@PokemonOptions)
|
||||||
@sprites["option"] = Window_PokemonOption.new(@PokemonOptions, 0,
|
@sprites["option"] = Window_PokemonOption.new(@PokemonOptions, 0,
|
||||||
@sprites["title"].height, Graphics.width,
|
@sprites["title"].height, Graphics.width,
|
||||||
|
|||||||
@@ -1,28 +1,40 @@
|
|||||||
#Switches
|
#Switches
|
||||||
NEW_GAME_PLUS = 972
|
NEW_GAME_PLUS = 972
|
||||||
|
BEAT_MT_SILVER = 918
|
||||||
|
|
||||||
|
GOT_BADGE_1 = 4
|
||||||
|
GOT_BADGE_2 = 5
|
||||||
|
GOT_BADGE_3 = 6
|
||||||
|
GOT_BADGE_4 = 7
|
||||||
|
GOT_BADGE_5 = 8
|
||||||
|
GOT_BADGE_6 = 9
|
||||||
|
GOT_BADGE_7 = 10
|
||||||
|
GOT_BADGE_8 = 11
|
||||||
BEAT_THE_LEAGUE = 12
|
BEAT_THE_LEAGUE = 12
|
||||||
BEAT_MT_SILVER=918
|
GOT_BADGE_9 = 38
|
||||||
|
GOT_BADGE_10 = 39
|
||||||
|
GOT_BADGE_11 = 40
|
||||||
|
GOT_BADGE_12 = 41
|
||||||
|
GOT_BADGE_13 = 43
|
||||||
|
GOT_BADGE_14 = 44
|
||||||
|
GOT_BADGE_15 = 45
|
||||||
|
GOT_BADGE_16 = 50
|
||||||
|
|
||||||
#Variables
|
#Variables
|
||||||
DEFAULT_BATTLE_TYPE = 242
|
DEFAULT_BATTLE_TYPE = 242
|
||||||
BATTLE_FACTORY_TOKENS = 243
|
BATTLE_FACTORY_TOKENS = 243
|
||||||
NB_GYM_REMATCHES = 162
|
NB_GYM_REMATCHES = 162
|
||||||
|
|
||||||
|
|
||||||
#Settings
|
#Settings
|
||||||
# This is for settings that are used in scripts since it's a chore to change them everywhere to include the module name
|
# This is for settings that are used in scripts since it's a chore to change them everywhere to include the module name
|
||||||
NUM_BADGES=Settings::NB_BADGES
|
NUM_BADGES = Settings::NB_BADGES
|
||||||
EGGINITIALLEVEL=Settings::EGG_LEVEL
|
EGGINITIALLEVEL = Settings::EGG_LEVEL
|
||||||
|
|
||||||
|
|
||||||
#this is fucking stupid but apparently necessary
|
#this is fucking stupid but apparently necessary
|
||||||
FALSE = false
|
FALSE = false
|
||||||
TRUE = true
|
TRUE = true
|
||||||
|
|
||||||
|
DIRECTION_LEFT = 4
|
||||||
DIRECTION_LEFT=4
|
DIRECTION_RIGHT = 6
|
||||||
DIRECTION_RIGHT=6
|
DIRECTION_DOWN = 2
|
||||||
DIRECTION_DOWN=2
|
DIRECTION_UP = 8
|
||||||
DIRECTION_UP=8
|
|
||||||
@@ -160,7 +160,7 @@ def generateSameEggGroupFusionsTeam(eggGroup_id)
|
|||||||
while !foundFusionPartner
|
while !foundFusionPartner
|
||||||
species2 = rand(Settings::NB_POKEMON) + 1
|
species2 = rand(Settings::NB_POKEMON) + 1
|
||||||
if getPokemonEggGroups(species2).include?(eggGroup)
|
if getPokemonEggGroups(species2).include?(eggGroup)
|
||||||
generatedTeam << getFusionSpecies(species1, species2)
|
generatedTeam << getFusionSpecies(species1, specieres2)
|
||||||
foundFusionPartner = true
|
foundFusionPartner = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -562,57 +562,55 @@ def calculatePointsAndCenter(mapwidth)
|
|||||||
end
|
end
|
||||||
|
|
||||||
class PokemonReadyMenu
|
class PokemonReadyMenu
|
||||||
def pbStartReadyMenu(moves, items)
|
def pbStartReadyMenu(moves,items)
|
||||||
commands = [[], []] # Moves, items
|
commands = [[],[]] # Moves, items
|
||||||
for i in moves
|
for i in moves
|
||||||
commands[0].push([i[0], PBMoves.getName(i[0]), true, i[1]])
|
commands[0].push([i[0], GameData::Move.get(i[0]).name, true, i[1]])
|
||||||
end
|
end
|
||||||
commands[0].sort! { |a, b| a[1] <=> b[1] }
|
commands[0].sort! { |a,b| a[1]<=>b[1] }
|
||||||
for i in items
|
for i in items
|
||||||
commands[1].push([i, PBItems.getName(i), false])
|
commands[1].push([i, GameData::Item.get(i).name, false])
|
||||||
end
|
end
|
||||||
commands[1].sort! { |a, b| a[1] <=> b[1] }
|
commands[1].sort! { |a,b| a[1]<=>b[1] }
|
||||||
|
|
||||||
@scene.pbStartScene(commands)
|
@scene.pbStartScene(commands)
|
||||||
loop do
|
loop do
|
||||||
command = @scene.pbShowCommands
|
command = @scene.pbShowCommands
|
||||||
if command == -1
|
break if command==-1
|
||||||
break
|
if command[0]==0 # Use a move
|
||||||
else
|
move = commands[0][command[1]][0]
|
||||||
if command[0] == 0 # Use a move
|
user = $Trainer.party[commands[0][command[1]][3]]
|
||||||
move = commands[0][command[1]][0]
|
if move == :FLY || move == :TELEPORT
|
||||||
user = $Trainer.party[commands[0][command[1]][3]]
|
###############################################
|
||||||
if isConst?(move, PBMoves, :FLY)
|
pbHideMenu
|
||||||
###############################################
|
ret = pbBetterRegionMap(-1, true, true)
|
||||||
pbHideMenu
|
pbShowMenu unless ret
|
||||||
ret = pbBetterRegionMap(-1, true, true)
|
###############################################
|
||||||
pbShowMenu unless ret
|
if ret
|
||||||
###############################################
|
$PokemonTemp.flydata = ret
|
||||||
if ret
|
$game_temp.in_menu = false
|
||||||
$PokemonTemp.flydata = ret
|
Kernel.pbUseHiddenMove(user, move)
|
||||||
$game_temp.in_menu = false
|
break
|
||||||
Kernel.pbUseHiddenMove(user, move)
|
end
|
||||||
break
|
else
|
||||||
end
|
pbHideMenu
|
||||||
else
|
if pbConfirmUseHiddenMove(user,move)
|
||||||
pbHideMenu
|
$game_temp.in_menu = false
|
||||||
if Kernel.pbConfirmUseHiddenMove(user, move)
|
pbUseHiddenMove(user,move)
|
||||||
$game_temp.in_menu = false
|
break
|
||||||
Kernel.pbUseHiddenMove(user, move)
|
else
|
||||||
break
|
pbShowMenu
|
||||||
else
|
|
||||||
pbShowMenu
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else # Use an item
|
|
||||||
item = commands[1][command[1]][0]
|
|
||||||
pbHideMenu
|
|
||||||
if ItemHandlers.triggerConfirmUseInField(item)
|
|
||||||
break if Kernel.pbUseKeyItemInField(item)
|
|
||||||
end
|
end
|
||||||
end
|
else # Use an item
|
||||||
pbShowMenu
|
item = commands[1][command[1]][0]
|
||||||
|
pbHideMenu
|
||||||
|
if ItemHandlers.triggerConfirmUseInField(item)
|
||||||
|
$game_temp.in_menu = false
|
||||||
|
break if pbUseKeyItemInField(item)
|
||||||
|
$game_temp.in_menu = true
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
pbShowMenu
|
||||||
end
|
end
|
||||||
@scene.pbEndScene
|
@scene.pbEndScene
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -80,8 +80,13 @@ def useLantern()
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
Kernel.pbMessage(_INTL("The Lantern illuminated the cave!"))
|
Kernel.pbMessage(_INTL("The Lantern illuminated the cave!"))
|
||||||
$PokemonGlobal.flashUsed = true
|
|
||||||
darkness.radius += 176
|
darkness.radius += 176
|
||||||
|
while darkness.radius<176
|
||||||
|
Graphics.update
|
||||||
|
Input.update
|
||||||
|
pbUpdateSceneMapd
|
||||||
|
darkness.radius+=4
|
||||||
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -104,12 +109,18 @@ ItemHandlers::UseInField.add(:TELEPORTER, proc { |item|
|
|||||||
def useTeleporter()
|
def useTeleporter()
|
||||||
if HiddenMoveHandlers.triggerCanUseMove(:TELEPORT, 0,true)
|
if HiddenMoveHandlers.triggerCanUseMove(:TELEPORT, 0,true)
|
||||||
Kernel.pbMessage(_INTL("Teleport to where?", $Trainer.name))
|
Kernel.pbMessage(_INTL("Teleport to where?", $Trainer.name))
|
||||||
scene = PokemonRegionMapScene.new(-1, false)
|
ret = pbBetterRegionMap(-1, true, true)
|
||||||
screen = PokemonRegionMap.new(scene)
|
pbShowMenu unless ret
|
||||||
ret = screen.pbStartFlyScreen
|
###############################################
|
||||||
if ret
|
if ret
|
||||||
$PokemonTemp.flydata = ret
|
$PokemonTemp.flydata = ret
|
||||||
end
|
end
|
||||||
|
# scene = PokemonRegionMapScene.new(-1, false)
|
||||||
|
# screen = PokemonRegionMap.new(scene)
|
||||||
|
# ret = screen.pbStartFlyScreen
|
||||||
|
# if ret
|
||||||
|
# $PokemonTemp.flydata = ret
|
||||||
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
if !$PokemonTemp.flydata
|
if !$PokemonTemp.flydata
|
||||||
@@ -194,18 +205,18 @@ ItemHandlers::UseFromBag.add(:LANTERN, proc { |item|
|
|||||||
darkness = $PokemonTemp.darknessSprite
|
darkness = $PokemonTemp.darknessSprite
|
||||||
if !darkness || darkness.disposed?
|
if !darkness || darkness.disposed?
|
||||||
Kernel.pbMessage(_INTL("The cave is already illuminated."))
|
Kernel.pbMessage(_INTL("The cave is already illuminated."))
|
||||||
return false
|
next false
|
||||||
end
|
end
|
||||||
Kernel.pbMessage(_INTL("The Lantern illuminated the cave!"))
|
Kernel.pbMessage(_INTL("The Lantern illuminated the cave!"))
|
||||||
$PokemonGlobal.flashUsed = true
|
$PokemonGlobal.flashUsed = true
|
||||||
darkness.radius += 176
|
darkness.radius += 176
|
||||||
#while darkness.radius<176
|
while darkness.radius<176
|
||||||
# Graphics.update
|
Graphics.update
|
||||||
# Input.update
|
Input.update
|
||||||
# pbUpdateSceneMap
|
pbUpdateSceneMap
|
||||||
# darkness.radius+=4
|
darkness.radius+=4
|
||||||
#end
|
end
|
||||||
return true
|
next true
|
||||||
})
|
})
|
||||||
|
|
||||||
ItemHandlers::UseFromBag.add(:AZUREFLUTE, proc { |item|
|
ItemHandlers::UseFromBag.add(:AZUREFLUTE, proc { |item|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user