mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
mt silver (wip)
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -158,7 +158,7 @@ class PokeBattle_Battle
|
||||
if showMessages
|
||||
if isOutsider
|
||||
pbDisplayPaused(_INTL("{1} got a boosted {2} Exp. Points!",pkmn.name,expGained))
|
||||
elsepbGenerateEgg
|
||||
else
|
||||
pbDisplayPaused(_INTL("{1} got {2} Exp. Points!",pkmn.name,expGained))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -500,6 +500,7 @@ class PokemonBattlerSprite < RPG::Sprite
|
||||
@spriteYExtra = 0 # Offset due to "bobbing" animation
|
||||
@_iconBitmap = nil
|
||||
self.visible = false
|
||||
@back=false
|
||||
end
|
||||
|
||||
def dispose
|
||||
@@ -514,11 +515,13 @@ class PokemonBattlerSprite < RPG::Sprite
|
||||
|
||||
def x=(value)
|
||||
@spriteX = value
|
||||
self.mirror=true if @back
|
||||
super(value+@spriteXExtra)
|
||||
end
|
||||
|
||||
def y=(value)
|
||||
@spriteY = value
|
||||
self.mirror=true if @back
|
||||
super(value+@spriteYExtra)
|
||||
end
|
||||
|
||||
@@ -533,6 +536,7 @@ class PokemonBattlerSprite < RPG::Sprite
|
||||
# Set sprite's origin to bottom middle
|
||||
def pbSetOrigin
|
||||
return if !@_iconBitmap
|
||||
self.mirror=true if @back
|
||||
self.ox = @_iconBitmap.width/2
|
||||
self.oy = @_iconBitmap.height
|
||||
end
|
||||
@@ -554,11 +558,12 @@ class PokemonBattlerSprite < RPG::Sprite
|
||||
end
|
||||
|
||||
def setPokemonBitmap(pkmn,back=false)
|
||||
@back = back
|
||||
self.mirror=true if @back
|
||||
@pkmn = pkmn
|
||||
@_iconBitmap.dispose if @_iconBitmap
|
||||
@_iconBitmap = GameData::Species.sprite_bitmap_from_pokemon(@pkmn, back)
|
||||
@_iconBitmap.mirror if back
|
||||
if back
|
||||
if @back
|
||||
@_iconBitmap.scale_bitmap(Settings::BACKRPSPRITE_SCALE)
|
||||
else
|
||||
@_iconBitmap.scale_bitmap(Settings::FRONTSPRITE_SCALE)
|
||||
|
||||
@@ -494,8 +494,11 @@ class PokeBattle_Scene
|
||||
def pbAnimationCore(animation,user,target,oppMove=false)
|
||||
return if !animation
|
||||
@briefMessage = false
|
||||
|
||||
userSprite = (user) ? @sprites["pokemon_#{user.index}"] : nil
|
||||
targetSprite = (target) ? @sprites["pokemon_#{target.index}"] : nil
|
||||
|
||||
|
||||
# Remember the original positions of Pokémon sprites
|
||||
oldUserX = (userSprite) ? userSprite.x : 0
|
||||
oldUserY = (userSprite) ? userSprite.y : 0
|
||||
@@ -535,5 +538,12 @@ class PokeBattle_Scene
|
||||
targetSprite.y = oldTargetY
|
||||
targetSprite.pbSetOrigin
|
||||
end
|
||||
# if userSprite != nil
|
||||
# userSprite.mirror=true #if !@battle.opposes?(user.index)
|
||||
# end
|
||||
# if targetSprite != nil
|
||||
# targetSprite.mirror=true# if !@battle.opposes?(target.index)
|
||||
# end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
@@ -652,7 +652,7 @@ HiddenMoveHandlers::UseMove.add(:ROCKSMASH, proc { |move, pokemon|
|
||||
#===============================================================================
|
||||
def pbStrength
|
||||
if $PokemonMap.strengthUsed
|
||||
pbMessage(_INTL("Strength made it possible to move boulders around."))
|
||||
#pbMessage(_INTL("Strength made it possible to move boulders around."))
|
||||
return false
|
||||
end
|
||||
move = :STRENGTH
|
||||
|
||||
@@ -13,4 +13,9 @@ BATTLE_FACTORY_TOKENS = 243
|
||||
#Settings
|
||||
# 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
|
||||
EGGINITIALLEVEL=Settings::EGG_LEVEL
|
||||
EGGINITIALLEVEL=Settings::EGG_LEVEL
|
||||
|
||||
|
||||
#this is fucking stupid but apparently necessary
|
||||
FALSE = false
|
||||
TRUE = true
|
||||
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