Changed: Spriteset_Map --- Left +++ Right @@ -113,5 +113,5 @@ @sprite.ox=width/2 @sprite.oy=height/2 - @sprite.angle=180 + @sprite.angle=180.0 @sprite.z=@rsprite.z @sprite.mirror=true Changed: Audio --- Left +++ Right Changed: SpriteWindow --- Left +++ Right @@ -3,5 +3,5 @@ module MessageConfig - FontName="Pokemon Emerald" + FontName="Power Green" # in Graphics/Windowskins/ TextSkinName="frlgtextskin.png" @@ -340,8 +340,8 @@ $VersionStyles=[ [MessageConfig::FontName], - ["Pokemon RS"], - ["Pokemon FireLeaf"], - ["Pokemon DP"], - ["Pokemon RS Intl"] + ["Power Red and Blue"], + ["Power Red and Green"], + ["Power Clear"], + ["Power Red and Blue Intl"] ] @@ -766,14 +766,13 @@ end def pbSetSmallFont(bitmap) - bitmap.font.name=["Pokemon Emerald Small","Arial Narrow","Arial"] + bitmap.font.name=["Power Green Small","Arial Narrow","Arial"] bitmap.font.size=25 end def pbSetNarrowFont(bitmap) - bitmap.font.name=["Pokemon Emerald Narrow","Arial Narrow","Arial"] + bitmap.font.name=["Power Green Narrow","Arial Narrow","Arial"] bitmap.font.size=31 end ######################################################################### - =begin Changed: PokeBattle_Battler --- Left +++ Right @@ -1092,5 +1092,5 @@ return false end - if target.effects[PBEffects::Protect] && (thismove.flags & 0x02) # flag b: Protect/Detect + if target.effects[PBEffects::Protect] && (thismove.flags & 0x02)!=0 # flag b: Protect/Detect @battle.pbDisplay(_INTL("{1} protected itself!",target.pbThis)) return false @@ -1184,5 +1184,5 @@ # TODO: Snatch, moves that use other moves if (thismove.target==0x00||thismove.target==0x01|| - thismove.target==0x04||thismove.target==0x02) && thismove.flags&0x10 && + thismove.target==0x04||thismove.target==0x02) && (thismove.flags&0x10)!=0 && !user.usingsubmove @effects[PBEffects::MirrorMove]=thismove.id Changed: PokemonUtilities --- Left +++ Right @@ -258,5 +258,5 @@ end speciesname=PBSpecies.getName(species) - Kernel.pbMessage(_INTL("{1} received a Pokémon from {2}.\1",$Trainer.name,ownername)) + Kernel.pbMessage(_INTL("{1} received a Pokémon from {2}.\1",$Trainer.name,ownerName)) pokemon=PokeBattle_Pokemon.new(species,level,$Trainer) # Set ID and OT name to a foreign one Changed: PokemonDebug --- Left +++ Right @@ -1049,6 +1049,5 @@ super(0, 0, Graphics.width, Graphics.height) self.contents = Bitmap.new(width - 32, height - 32) - self.contents.font.name = ["Pokemon Emerald Narrow", "Arial Narrow", "Arial"] - self.contents.font.size = 31 + pbSetNarrowFont(self.contents) self.index = 0 self.active = false Changed: PokeBattle_AI --- Left +++ Right @@ -496,4 +496,8 @@ score+=20 if move.type==PBTypes::ELECTRIC end + score+=20 if pbWeather==PBWeather::SUNNYDAY && move.type==PBTypes::FIRE + score-=10 if pbWeather==PBWeather::SUNNYDAY && move.type==PBTypes::WATER + score+=20 if pbWeather==PBWeather::RAINDANCE && move.type==PBTypes::WATER + score-=10 if pbWeather==PBWeather::RAINDANCE && move.type==PBTypes::FIRE end score+=(move.basedamage/5)-10 Changed: PokemonField --- Left +++ Right @@ -2133,4 +2133,7 @@ get_character(0).setTempSwitchOff(c) end +end +class Interpreter + include InterpreterFieldMixin def command_353 $game_system.bgm_fade(1.0) @@ -2168,6 +2171,41 @@ end end -class Interpreter; include InterpreterFieldMixin; end -class Game_Interpreter; include InterpreterFieldMixin; end +class Game_Interpreter + include InterpreterFieldMixin + def command_353 + $game_system.bgm_fade(1.0) + $game_system.bgs_fade(1.0) + pbFadeOutIn(99999){ + Kernel.pbStartOver(true) + } + end + def command_314 + if pbParams[0] == 0 && $Trainer && $Trainer.party + for i in $Trainer.party; i.heal; end + end + return true + end + def command_352 + scene=PokemonSaveScene.new + screen=PokemonSave.new(scene) + screen.pbSaveScreen + return true + end + def command_125 + value = operate_value(pbParams[0], pbParams[1], pbParams[2]) + $Trainer.money+=value + $Trainer.money=0 if $Trainer.money<0 + $Trainer.money=999999 if $Trainer.money>999999 + return true + end + def command_132 + $PokemonGlobal.nextBattleBGM=(pbParams[0]) ? pbParams[0].clone : nil + return true + end + def command_133 + $PokemonGlobal.nextBattleME=(pbParams[0]) ? pbParams[0].clone : nil + return true + end +end Changed: Interpreter --- Left +++ Right @@ -1066,9 +1066,9 @@ return true end - alias command_125 command_dummy # Change Gold - alias command_126 command_dummy # Change Items - alias command_127 command_dummy # Change Weapons - alias command_128 command_dummy # Change Armor - alias command_129 command_dummy # Change Party Member + def command_125; command_dummy; end # Change Gold + def command_126; command_dummy; end # Change Items + def command_127; command_dummy; end # Change Weapons + def command_128; command_dummy; end # Change Armor + def command_129; command_dummy; end # Change Party Member #-------------------------------------------------------------------------- # * Change Windowskin @@ -1569,32 +1569,32 @@ return command_skip end - alias command_301 command_dummy # Battle Processing + def command_301; command_dummy; end # Battle Processing def command_601; command_if(0); end # If Win def command_602; command_if(1); end # If Escape def command_603; command_if(2); end # If Lose - alias command_302 command_dummy # Shop Processing - alias command_303 command_dummy # Name Processing - alias command_311 command_dummy # Change HP - alias command_312 command_dummy # Change SP - alias command_313 command_dummy # Change State - alias command_314 command_dummy # Recover All - alias command_315 command_dummy # Change EXP - alias command_316 command_dummy # Change Level - alias command_317 command_dummy # Change Parameters - alias command_318 command_dummy # Change Skills - alias command_319 command_dummy # Change Equipment - alias command_320 command_dummy # Change Actor Name - alias command_321 command_dummy # Change Actor Class - alias command_322 command_dummy # Change Actor Graphic - alias command_331 command_dummy # Change Enemy HP - alias command_332 command_dummy # Change Enemy SP - alias command_333 command_dummy # Change Enemy State - alias command_334 command_dummy # Enemy Recover All - alias command_335 command_dummy # Enemy Appearance - alias command_336 command_dummy # Enemy Transform - alias command_337 command_dummy # Show Battle Animation - alias command_338 command_dummy # Deal Damage - alias command_339 command_dummy # Force Action - alias command_340 command_dummy # Abort Battle + def command_302; command_dummy; end # Shop Processing + def command_303; command_dummy; end # Name Processing + def command_311; command_dummy; end # Change HP + def command_312; command_dummy; end # Change SP + def command_313; command_dummy; end # Change State + def command_314; command_dummy; end # Recover All + def command_315; command_dummy; end # Change EXP + def command_316; command_dummy; end # Change Level + def command_317; command_dummy; end # Change Parameters + def command_318; command_dummy; end # Change Skills + def command_319; command_dummy; end # Change Equipment + def command_320; command_dummy; end # Change Actor Name + def command_321; command_dummy; end # Change Actor Class + def command_322; command_dummy; end # Change Actor Graphic + def command_331; command_dummy; end # Change Enemy HP + def command_332; command_dummy; end # Change Enemy SP + def command_333; command_dummy; end # Change Enemy State + def command_334; command_dummy; end # Enemy Recover All + def command_335; command_dummy; end # Enemy Appearance + def command_336; command_dummy; end # Enemy Transform + def command_337; command_dummy; end # Show Battle Animation + def command_338; command_dummy; end # Deal Damage + def command_339; command_dummy; end # Force Action + def command_340; command_dummy; end # Abort Battle #-------------------------------------------------------------------------- # * Call Menu Screen Changed: PokemonLoad --- Left +++ Right @@ -70,10 +70,10 @@ # names (not filenames) of fonts to be installed Names = [ - 'Pokemon Emerald', - 'Pokemon Emerald Narrow', - 'Pokemon Emerald Small', - 'Pokemon RS', - 'Pokemon DP', - 'Pokemon FireLeaf' + 'Power Green', + 'Power Green Narrow', + 'Power Green Small', + 'Power Red and Blue', + 'Power Clear', + 'Power Red and Green' ] # whether to notify player (via pop-up message) that fonts were installed @@ -105,4 +105,5 @@ def self.install success = [] + # Check if all fonts already exist exist=true for i in 0...Names.size @@ -112,4 +113,13 @@ end return if exist + # Check if all source fonts exist + exist=false + for i in 0...Names.size + if FileTest.exist?(Source + Filenames[i]) + exist=true + break + end + end + return if !exist # Exit if no source fonts exist Kernel.pbMessage(_INTL("One or more fonts used in this game do not exist on the system.\1")) Kernel.pbMessage(_INTL("The game can be played, but the look of the game's text will not be optimal.\1")) @@ -140,5 +150,5 @@ end else - Kernel.pbMessage(_INTL("The font \"{1}\" could not be found.",f)) + # Kernel.pbMessage(_INTL("The font \"{1}\" could not be found.",f)) end end