mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed Pledge combo moves sometimes using the wrong type, fixed command windows in battle being too tall if possible, added Debug menu feature to toggle credits skippability
This commit is contained in:
@@ -686,7 +686,6 @@ class PokeBattle_PledgeMove < PokeBattle_Move
|
|||||||
@pledgeCombo = false
|
@pledgeCombo = false
|
||||||
@pledgeOtherUser = nil
|
@pledgeOtherUser = nil
|
||||||
@comboEffect = nil
|
@comboEffect = nil
|
||||||
@overrideType = nil
|
|
||||||
@overrideAnim = nil
|
@overrideAnim = nil
|
||||||
# Check whether this is the use of a combo move
|
# Check whether this is the use of a combo move
|
||||||
@combos.each do |i|
|
@combos.each do |i|
|
||||||
@@ -694,9 +693,7 @@ class PokeBattle_PledgeMove < PokeBattle_Move
|
|||||||
@battle.pbDisplay(_INTL("The two moves have become one! It's a combined move!"))
|
@battle.pbDisplay(_INTL("The two moves have become one! It's a combined move!"))
|
||||||
@pledgeCombo = true
|
@pledgeCombo = true
|
||||||
@comboEffect = i[1]
|
@comboEffect = i[1]
|
||||||
@overrideType = i[2]
|
|
||||||
@overrideAnim = i[3]
|
@overrideAnim = i[3]
|
||||||
@overrideType = nil if !GameData::Type.exists?(@overrideType)
|
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
return if @pledgeCombo
|
return if @pledgeCombo
|
||||||
@@ -721,7 +718,13 @@ class PokeBattle_PledgeMove < PokeBattle_Move
|
|||||||
end
|
end
|
||||||
|
|
||||||
def pbBaseType(user)
|
def pbBaseType(user)
|
||||||
return @overrideType if @overrideType!=nil
|
# This method is called before pbOnStartUse, so it has to calculate the type
|
||||||
|
# separately
|
||||||
|
@combos.each do |i|
|
||||||
|
next if i[0] != user.effects[PBEffects::FirstPledge]
|
||||||
|
next if !GameData::Type.exists?(i[2])
|
||||||
|
return i[2]
|
||||||
|
end
|
||||||
return super
|
return super
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ class PokeBattle_Scene
|
|||||||
dw = @sprites["messageWindow"]
|
dw = @sprites["messageWindow"]
|
||||||
dw.text = msg
|
dw.text = msg
|
||||||
cw = Window_CommandPokemon.new(commands)
|
cw = Window_CommandPokemon.new(commands)
|
||||||
|
cw.height = Graphics.height - dw.height if cw.height > Graphics.height - dw.height
|
||||||
cw.x = Graphics.width-cw.width
|
cw.x = Graphics.width-cw.width
|
||||||
cw.y = Graphics.height-cw.height-dw.height
|
cw.y = Graphics.height-cw.height-dw.height
|
||||||
cw.z = dw.z+1
|
cw.z = dw.z+1
|
||||||
|
|||||||
@@ -160,6 +160,17 @@ DebugMenuCommands.register("daycare", {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
DebugMenuCommands.register("skipcredits", {
|
||||||
|
"parent" => "fieldmenu",
|
||||||
|
"name" => _INTL("Skip Credits"),
|
||||||
|
"description" => _INTL("Toggle whether credits can be ended early by pressing the Use input."),
|
||||||
|
"effect" => proc {
|
||||||
|
$PokemonGlobal.creditsPlayed = !$PokemonGlobal.creditsPlayed
|
||||||
|
pbMessage(_INTL("Credits can be skipped when played in future.")) if $PokemonGlobal.creditsPlayed
|
||||||
|
pbMessage(_INTL("Credits cannot be skipped when next played.")) if !$PokemonGlobal.creditsPlayed
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
DebugMenuCommands.register("relicstone", {
|
DebugMenuCommands.register("relicstone", {
|
||||||
"parent" => "fieldmenu",
|
"parent" => "fieldmenu",
|
||||||
"name" => _INTL("Use Relic Stone"),
|
"name" => _INTL("Use Relic Stone"),
|
||||||
|
|||||||
Reference in New Issue
Block a user