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?
|
|
||||||
shouldShow = @rsprite.visible
|
|
||||||
if !shouldShow
|
|
||||||
# Just-in-time disposal of sprite
|
|
||||||
if @sprite
|
|
||||||
@sprite.dispose
|
|
||||||
@sprite = nil
|
|
||||||
end
|
|
||||||
return
|
return
|
||||||
end
|
# return if disposed?
|
||||||
# Just-in-time creation of sprite
|
# shouldShow = @rsprite.visible
|
||||||
@sprite = Sprite.new(@viewport) if !@sprite
|
# if !shouldShow
|
||||||
if @sprite
|
# # Just-in-time disposal of sprite
|
||||||
x = @rsprite.x-@rsprite.ox
|
# if @sprite
|
||||||
y = @rsprite.y-@rsprite.oy
|
# @sprite.dispose
|
||||||
y -= 32 if @rsprite.character.character_name[/offset/i]
|
# @sprite = nil
|
||||||
@height = $PokemonGlobal.bridge if !@fixedheight
|
# end
|
||||||
y += @height*16
|
# return
|
||||||
width = @rsprite.src_rect.width
|
# end
|
||||||
height = @rsprite.src_rect.height
|
# # Just-in-time creation of sprite
|
||||||
@sprite.x = x+width/2
|
# @sprite = Sprite.new(@viewport) if !@sprite
|
||||||
@sprite.y = y+height+height/2
|
# if @sprite
|
||||||
@sprite.ox = width/2
|
# x = @rsprite.x-@rsprite.ox
|
||||||
@sprite.oy = height/2-2 # Hard-coded 2 pixel shift up
|
# y = @rsprite.y-@rsprite.oy
|
||||||
@sprite.oy -= @rsprite.character.bob_height*2
|
# y -= 32 if @rsprite.character.character_name[/offset/i]
|
||||||
@sprite.z = -50 # Still water is -100, map is 0 and above
|
# @height = $PokemonGlobal.bridge if !@fixedheight
|
||||||
@sprite.zoom_x = @rsprite.zoom_x
|
# y += @height*16
|
||||||
@sprite.zoom_y = @rsprite.zoom_y
|
# width = @rsprite.src_rect.width
|
||||||
frame = (Graphics.frame_count%40)/10
|
# height = @rsprite.src_rect.height
|
||||||
@sprite.zoom_x *= [1.0, 0.95, 1.0, 1.05][frame]
|
# @sprite.x = x+width/2
|
||||||
@sprite.angle = 180.0
|
# @sprite.y = y+height+height/2
|
||||||
@sprite.mirror = true
|
# @sprite.ox = width/2
|
||||||
@sprite.bitmap = @rsprite.bitmap
|
# @sprite.oy = height/2-2 # Hard-coded 2 pixel shift up
|
||||||
@sprite.tone = @rsprite.tone
|
# @sprite.oy -= @rsprite.character.bob_height*2
|
||||||
if @height>0
|
# @sprite.z = -50 # Still water is -100, map is 0 and above
|
||||||
@sprite.color = Color.new(48,96,160,255) # Dark still water
|
# @sprite.zoom_x = @rsprite.zoom_x
|
||||||
@sprite.opacity = @rsprite.opacity
|
# @sprite.zoom_y = @rsprite.zoom_y
|
||||||
@sprite.visible = !Settings::TIME_SHADING # Can't time-tone a colored sprite
|
# frame = (Graphics.frame_count%40)/10
|
||||||
else
|
# @sprite.zoom_x *= [1.0, 0.95, 1.0, 1.05][frame]
|
||||||
@sprite.color = Color.new(224,224,224,96)
|
# @sprite.angle = 180.0
|
||||||
@sprite.opacity = @rsprite.opacity*3/4
|
# @sprite.mirror = true
|
||||||
@sprite.visible = true
|
# @sprite.bitmap = @rsprite.bitmap
|
||||||
end
|
# @sprite.tone = @rsprite.tone
|
||||||
@sprite.src_rect = @rsprite.src_rect
|
# if @height>0
|
||||||
end
|
# @sprite.color = Color.new(48,96,160,255) # Dark still water
|
||||||
|
# @sprite.opacity = @rsprite.opacity
|
||||||
|
# @sprite.visible = !Settings::TIME_SHADING # Can't time-tone a colored sprite
|
||||||
|
# else
|
||||||
|
# @sprite.color = Color.new(224,224,224,96)
|
||||||
|
# @sprite.opacity = @rsprite.opacity*3/4
|
||||||
|
# @sprite.visible = true
|
||||||
|
# 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,27 +562,24 @@ 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
|
|
||||||
if command[0] == 0 # Use a move
|
|
||||||
move = commands[0][command[1]][0]
|
move = commands[0][command[1]][0]
|
||||||
user = $Trainer.party[commands[0][command[1]][3]]
|
user = $Trainer.party[commands[0][command[1]][3]]
|
||||||
if isConst?(move, PBMoves, :FLY)
|
if move == :FLY || move == :TELEPORT
|
||||||
###############################################
|
###############################################
|
||||||
pbHideMenu
|
pbHideMenu
|
||||||
ret = pbBetterRegionMap(-1, true, true)
|
ret = pbBetterRegionMap(-1, true, true)
|
||||||
@@ -596,9 +593,9 @@ class PokemonReadyMenu
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
pbHideMenu
|
pbHideMenu
|
||||||
if Kernel.pbConfirmUseHiddenMove(user, move)
|
if pbConfirmUseHiddenMove(user,move)
|
||||||
$game_temp.in_menu = false
|
$game_temp.in_menu = false
|
||||||
Kernel.pbUseHiddenMove(user, move)
|
pbUseHiddenMove(user,move)
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
pbShowMenu
|
pbShowMenu
|
||||||
@@ -608,12 +605,13 @@ class PokemonReadyMenu
|
|||||||
item = commands[1][command[1]][0]
|
item = commands[1][command[1]][0]
|
||||||
pbHideMenu
|
pbHideMenu
|
||||||
if ItemHandlers.triggerConfirmUseInField(item)
|
if ItemHandlers.triggerConfirmUseInField(item)
|
||||||
break if Kernel.pbUseKeyItemInField(item)
|
$game_temp.in_menu = false
|
||||||
|
break if pbUseKeyItemInField(item)
|
||||||
|
$game_temp.in_menu = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
pbShowMenu
|
pbShowMenu
|
||||||
end
|
end
|
||||||
end
|
|
||||||
@scene.pbEndScene
|
@scene.pbEndScene
|
||||||
end
|
end
|
||||||
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