mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-28 17:26:00 +00:00
Ability splash screen for stats changing abilities in secondary abilities
This commit is contained in:
@@ -394,6 +394,7 @@ class AbilitySplashBar < SpriteWrapper
|
||||
|
||||
def initialize(side,viewport=nil, secondAbility=false)
|
||||
super(viewport)
|
||||
@ability_name=nil
|
||||
@secondAbility=secondAbility
|
||||
@side = side
|
||||
@battler = nil
|
||||
@@ -436,6 +437,10 @@ class AbilitySplashBar < SpriteWrapper
|
||||
@bgSprite.z = value-1
|
||||
end
|
||||
|
||||
def ability_name=(value)
|
||||
@ability_name=value
|
||||
end
|
||||
|
||||
def opacity=(value)
|
||||
super
|
||||
@bgSprite.opacity = value
|
||||
@@ -469,6 +474,7 @@ class AbilitySplashBar < SpriteWrapper
|
||||
TEXT_BASE_COLOR,TEXT_SHADOW_COLOR,true]) if !@secondAbility
|
||||
# Draw Pokémon's ability
|
||||
abilityName = @secondAbility ? @battler.ability2Name : @battler.abilityName
|
||||
abilityName = @ability_name if @ability_name
|
||||
#return if abilityName ==""
|
||||
textPos.push([abilityName,textX,26,@side==1,
|
||||
TEXT_BASE_COLOR,TEXT_SHADOW_COLOR,true])
|
||||
|
||||
Reference in New Issue
Block a user