mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
mt silver (wip)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user