mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-26 16:26:01 +00:00
@@ -1,5 +1,5 @@
|
|||||||
#===============================================================================
|
#===============================================================================
|
||||||
#
|
#
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
class CustomTilemapAutotiles
|
class CustomTilemapAutotiles
|
||||||
attr_accessor :changed
|
attr_accessor :changed
|
||||||
@@ -28,7 +28,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
#
|
#
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
class CustomTilemap
|
class CustomTilemap
|
||||||
attr_reader :tileset
|
attr_reader :tileset
|
||||||
@@ -62,7 +62,7 @@ class CustomTilemap
|
|||||||
]
|
]
|
||||||
Animated_Autotiles_Frames = 5*Graphics.frame_rate/20 # Frequency of updating animated autotiles
|
Animated_Autotiles_Frames = 5*Graphics.frame_rate/20 # Frequency of updating animated autotiles
|
||||||
FlashOpacity = [100,90,80,70,80,90]
|
FlashOpacity = [100,90,80,70,80,90]
|
||||||
|
|
||||||
def initialize(viewport)
|
def initialize(viewport)
|
||||||
@tileset = nil # Refers to Map Tileset Name
|
@tileset = nil # Refers to Map Tileset Name
|
||||||
@autotiles = CustomTilemapAutotiles.new
|
@autotiles = CustomTilemapAutotiles.new
|
||||||
@@ -567,7 +567,7 @@ class CustomTilemap
|
|||||||
@fullyrefreshedautos = true
|
@fullyrefreshedautos = true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@fullyrefreshedautos = true
|
@fullyrefreshedautos = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -823,7 +823,7 @@ class CustomTilemap
|
|||||||
@layer0.visible = false if usesprites
|
@layer0.visible = false if usesprites
|
||||||
end
|
end
|
||||||
if @fullyrefreshed
|
if @fullyrefreshed
|
||||||
if !@priotilesrect || !@priotilesfast ||
|
if !@priotilesrect || !@priotilesfast ||
|
||||||
@priotilesrect[0]!=minX ||
|
@priotilesrect[0]!=minX ||
|
||||||
@priotilesrect[1]!=minY ||
|
@priotilesrect[1]!=minY ||
|
||||||
@priotilesrect[2]!=maxX ||
|
@priotilesrect[2]!=maxX ||
|
||||||
@@ -843,7 +843,7 @@ class CustomTilemap
|
|||||||
count = addTile(@tiles,count,xpos,ypos,prio[3])
|
count = addTile(@tiles,count,xpos,ypos,prio[3])
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if !@priotilesrect || !@priotilesfast ||
|
if !@priotilesrect || !@priotilesfast ||
|
||||||
@priotilesrect[0]!=minX ||
|
@priotilesrect[0]!=minX ||
|
||||||
@priotilesrect[1]!=minY ||
|
@priotilesrect[1]!=minY ||
|
||||||
@priotilesrect[2]!=maxX ||
|
@priotilesrect[2]!=maxX ||
|
||||||
@@ -944,4 +944,4 @@ class CustomTilemap
|
|||||||
@autotiles.changed = false
|
@autotiles.changed = false
|
||||||
@tilesetChanged = false
|
@tilesetChanged = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class PokeBattle_Battler
|
|||||||
end
|
end
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
#
|
#
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
def pbBeginTurn(choice)
|
def pbBeginTurn(choice)
|
||||||
# Cancel some lingering effects which only apply until the user next moves
|
# Cancel some lingering effects which only apply until the user next moves
|
||||||
@@ -255,7 +255,7 @@ class PokeBattle_Battler
|
|||||||
end
|
end
|
||||||
@battle.lastMoveUsed = move.id # For Copycat
|
@battle.lastMoveUsed = move.id # For Copycat
|
||||||
@battle.lastMoveUser = @index # For "self KO" battle clause to avoid draws
|
@battle.lastMoveUser = @index # For "self KO" battle clause to avoid draws
|
||||||
@battle.successStates[@index].useState = 1 # Battle Arena - assume failure
|
@battle.successStates[@index].useState = 1 # Battle Arena - assume failure
|
||||||
# Find the default user (self or Snatcher) and target(s)
|
# Find the default user (self or Snatcher) and target(s)
|
||||||
user = pbFindUser(choice,move)
|
user = pbFindUser(choice,move)
|
||||||
user = pbChangeUser(choice,move,user)
|
user = pbChangeUser(choice,move,user)
|
||||||
@@ -360,7 +360,7 @@ class PokeBattle_Battler
|
|||||||
end
|
end
|
||||||
# Protean
|
# Protean
|
||||||
if user.hasActiveAbility?(:PROTEAN) && !move.callsAnotherMove? && !move.snatched
|
if user.hasActiveAbility?(:PROTEAN) && !move.callsAnotherMove? && !move.snatched
|
||||||
if user.pbHasOtherType?(moveType) && !PBTypes.isPseudoType?(move.calcType)
|
if user.pbHasOtherType?(move.calcType) && !PBTypes.isPseudoType?(move.calcType)
|
||||||
@battle.pbShowAbilitySplash(user)
|
@battle.pbShowAbilitySplash(user)
|
||||||
user.pbChangeTypes(move.calcType)
|
user.pbChangeTypes(move.calcType)
|
||||||
typeName = PBTypes.getName(move.calcType)
|
typeName = PBTypes.getName(move.calcType)
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ class PokeBattle_Move
|
|||||||
target.damageState.calcDamage = damage
|
target.damageState.calcDamage = damage
|
||||||
end
|
end
|
||||||
|
|
||||||
def pbCalcDamageMultipliers(user,target,numTargets,baseDmg,type,multipliers)
|
def pbCalcDamageMultipliers(user,target,numTargets,type,baseDmg,multipliers)
|
||||||
# Global abilities
|
# Global abilities
|
||||||
if (@battle.pbCheckGlobalAbility(:DARKAURA) && isConst?(type,PBTypes,:DARK)) ||
|
if (@battle.pbCheckGlobalAbility(:DARKAURA) && isConst?(type,PBTypes,:DARK)) ||
|
||||||
(@battle.pbCheckGlobalAbility(:FAIRYAURA) && isConst?(type,PBTypes,:FAIRY))
|
(@battle.pbCheckGlobalAbility(:FAIRYAURA) && isConst?(type,PBTypes,:FAIRY))
|
||||||
@@ -488,4 +488,4 @@ class PokeBattle_Move
|
|||||||
user.pbOwnSide.effects[PBEffects::Rainbow]>0
|
user.pbOwnSide.effects[PBEffects::Rainbow]>0
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -656,7 +656,7 @@ BattleHandlers::MoveImmunityTargetAbility.add(:SOUNDPROOF,
|
|||||||
end
|
end
|
||||||
battle.pbHideAbilitySplash(target)
|
battle.pbHideAbilitySplash(target)
|
||||||
next true
|
next true
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -2239,7 +2239,7 @@ BattleHandlers::AbilityOnSwitchIn.add(:FOREWARN,
|
|||||||
# Counter, Mirror Coat, Metal Burst
|
# Counter, Mirror Coat, Metal Burst
|
||||||
power = 120 if ["071","072","073"].include?(moveData[MOVE_FUNCTION_CODE])
|
power = 120 if ["071","072","073"].include?(moveData[MOVE_FUNCTION_CODE])
|
||||||
# Sonic Boom, Dragon Rage, Night Shade, Endeavor, Psywave,
|
# Sonic Boom, Dragon Rage, Night Shade, Endeavor, Psywave,
|
||||||
# Return, Frustration, Crush Grip, Gyro Ball, Hidden Power,
|
# Return, Frustration, Crush Grip, Gyro Ball, Hidden Power,
|
||||||
# Natural Gift, Trump Card, Flail, Grass Knot
|
# Natural Gift, Trump Card, Flail, Grass Knot
|
||||||
power = 80 if ["06A","06B","06D","06E","06F",
|
power = 80 if ["06A","06B","06D","06E","06F",
|
||||||
"089","08A","08C","08D","090",
|
"089","08A","08C","08D","090",
|
||||||
@@ -2504,4 +2504,4 @@ BattleHandlers::RunFromBattleAbility.add(:RUNAWAY,
|
|||||||
proc { |ability,battler|
|
proc { |ability,battler|
|
||||||
next true
|
next true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
class PokemonLoadPanel < SpriteWrapper
|
class PokemonLoadPanel < SpriteWrapper
|
||||||
attr_reader :selected
|
attr_reader :selected
|
||||||
|
|
||||||
TEXTCOLOR = Color.new(232,232,232)
|
TEXTCOLOR = Color.new(232,232,232)
|
||||||
TEXTSHADOWCOLOR = Color.new(136,136,136)
|
TEXTSHADOWCOLOR = Color.new(136,136,136)
|
||||||
MALETEXTCOLOR = Color.new(56,160,248)
|
MALETEXTCOLOR = Color.new(56,160,248)
|
||||||
@@ -19,7 +19,7 @@ class PokemonLoadPanel < SpriteWrapper
|
|||||||
@selected = (index==0)
|
@selected = (index==0)
|
||||||
@bgbitmap = AnimatedBitmap.new("Graphics/Pictures/loadPanels")
|
@bgbitmap = AnimatedBitmap.new("Graphics/Pictures/loadPanels")
|
||||||
@refreshBitmap = true
|
@refreshBitmap = true
|
||||||
@refreshing = false
|
@refreshing = false
|
||||||
refresh
|
refresh
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -356,6 +356,7 @@ class PokemonLoadScreen
|
|||||||
metadata = Marshal.load(f)
|
metadata = Marshal.load(f)
|
||||||
$PokemonBag = Marshal.load(f)
|
$PokemonBag = Marshal.load(f)
|
||||||
$PokemonStorage = Marshal.load(f)
|
$PokemonStorage = Marshal.load(f)
|
||||||
|
$SaveVersion = Marshal.load(f) unless f.eof?
|
||||||
pbRefreshResizeFactor # To fix Game_Screen pictures
|
pbRefreshResizeFactor # To fix Game_Screen pictures
|
||||||
magicNumberMatches = false
|
magicNumberMatches = false
|
||||||
if $data_system.respond_to?("magic_number")
|
if $data_system.respond_to?("magic_number")
|
||||||
@@ -456,12 +457,12 @@ class PokemonLoadScreen
|
|||||||
savedata = []
|
savedata = []
|
||||||
if safeExists?(savefile)
|
if safeExists?(savefile)
|
||||||
File.open(savefile,"rb") { |f|
|
File.open(savefile,"rb") { |f|
|
||||||
15.times { savedata.push(Marshal.load(f)) }
|
16.times { savedata.push(Marshal.load(f)) }
|
||||||
}
|
}
|
||||||
savedata[3]=$PokemonSystem
|
savedata[3]=$PokemonSystem
|
||||||
begin
|
begin
|
||||||
File.open(RTP.getSaveFileName("Game.rxdata"),"wb") { |f|
|
File.open(RTP.getSaveFileName("Game.rxdata"),"wb") { |f|
|
||||||
15.times { |i| Marshal.dump(savedata[i],f) }
|
16.times { |i| Marshal.dump(savedata[i],f) }
|
||||||
}
|
}
|
||||||
rescue
|
rescue
|
||||||
end
|
end
|
||||||
@@ -495,7 +496,7 @@ module FontInstaller
|
|||||||
'pkmnrs.ttf',
|
'pkmnrs.ttf',
|
||||||
'pkmndp.ttf',
|
'pkmndp.ttf',
|
||||||
'pkmnfl.ttf'
|
'pkmnfl.ttf'
|
||||||
]
|
]
|
||||||
# names (not filenames) of fonts to be installed
|
# names (not filenames) of fonts to be installed
|
||||||
Names = [
|
Names = [
|
||||||
'Power Green',
|
'Power Green',
|
||||||
@@ -520,7 +521,7 @@ module FontInstaller
|
|||||||
return ENV['windir'] + '\\Fonts\\'
|
return ENV['windir'] + '\\Fonts\\'
|
||||||
else
|
else
|
||||||
return '\\Windows\\Fonts\\'
|
return '\\Windows\\Fonts\\'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
AFR = Win32API.new('gdi32', 'AddFontResource', ['P'], 'L')
|
AFR = Win32API.new('gdi32', 'AddFontResource', ['P'], 'L')
|
||||||
@@ -628,4 +629,4 @@ module FontInstaller
|
|||||||
pbMessage(_INTL("To install the necessary fonts, copy the files in this game's Fonts folder to the Fonts folder in Control Panel."))
|
pbMessage(_INTL("To install the necessary fonts, copy the files in this game's Fonts folder to the Fonts folder in Control Panel."))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ def pbSave(safesave=false)
|
|||||||
Marshal.dump($PokemonMap,f)
|
Marshal.dump($PokemonMap,f)
|
||||||
Marshal.dump($PokemonBag,f)
|
Marshal.dump($PokemonBag,f)
|
||||||
Marshal.dump($PokemonStorage,f)
|
Marshal.dump($PokemonStorage,f)
|
||||||
|
Marshal.dump(ESSENTIALS_VERSION,f)
|
||||||
}
|
}
|
||||||
Graphics.frame_reset
|
Graphics.frame_reset
|
||||||
rescue
|
rescue
|
||||||
@@ -153,4 +154,4 @@ def pbSaveScreen
|
|||||||
screen = PokemonSaveScreen.new(scene)
|
screen = PokemonSaveScreen.new(scene)
|
||||||
ret = screen.pbSaveScreen
|
ret = screen.pbSaveScreen
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user