mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Tiny Bugfixes (#161)
* Removed extra confirm sfx in mart screen * Fixed Calyrex keeping its form exclusive moves * Fixed some methods being aliased multiple times upon soft resetting
This commit is contained in:
@@ -41,7 +41,7 @@ end
|
||||
|
||||
|
||||
class Spriteset_Map
|
||||
alias _animationSprite_initialize initialize unless method_defined?(:_animationSprite_initialize)
|
||||
alias _animationSprite_initialize initialize unless private_method_defined?(:_animationSprite_initialize)
|
||||
alias _animationSprite_update update unless method_defined?(:_animationSprite_update)
|
||||
alias _animationSprite_dispose dispose unless method_defined?(:_animationSprite_dispose)
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ end
|
||||
# ? CLASS Sprite_Character edit
|
||||
#===================================================
|
||||
class Sprite_Character < RPG::Sprite
|
||||
alias shadow_initialize initialize unless method_defined?(:shadow_initialize)
|
||||
alias shadow_initialize initialize unless private_method_defined?(:shadow_initialize)
|
||||
|
||||
def initialize(viewport, character = nil)
|
||||
@ombrelist = []
|
||||
@@ -178,7 +178,7 @@ end
|
||||
class Spriteset_Map
|
||||
attr_accessor :shadows
|
||||
|
||||
alias shadow_initialize initialize unless method_defined?(:shadow_initialize)
|
||||
alias shadow_initialize initialize unless private_method_defined?(:shadow_initialize)
|
||||
|
||||
def initialize(map = nil)
|
||||
@shadows = []
|
||||
|
||||
@@ -566,7 +566,7 @@ end
|
||||
class Game_Event < Game_Character
|
||||
attr_accessor :pe_refresh
|
||||
|
||||
alias nf_particles_game_map_initialize initialize unless method_defined?(:nf_particles_game_map_initialize)
|
||||
alias nf_particles_game_map_initialize initialize unless private_method_defined?(:nf_particles_game_map_initialize)
|
||||
|
||||
def initialize(map_id, event, map = nil)
|
||||
@pe_refresh = false
|
||||
|
||||
@@ -172,7 +172,7 @@ end
|
||||
class Battle::AI
|
||||
attr_accessor :battlePalace
|
||||
|
||||
alias _battlePalace_initialize initialize unless method_defined?(:_battlePalace_initialize)
|
||||
alias _battlePalace_initialize initialize unless private_method_defined?(:_battlePalace_initialize)
|
||||
|
||||
def initialize(*arg)
|
||||
_battlePalace_initialize(*arg)
|
||||
|
||||
@@ -710,11 +710,23 @@ MultipleForms.register(:CALYREX, {
|
||||
:ASTRALBARRAGE # Shadow Rider (with Spectrier) (form 2)
|
||||
]
|
||||
if form == 0 # Normal
|
||||
# Forget special form moves
|
||||
form_moves.each do |move|
|
||||
next if !pkmn.hasMove?(move)
|
||||
pkmn.forget_move(move)
|
||||
pbMessage(_INTL("{1} forgot {2}...", pkmn.name, GameData::Move.get(move).name))
|
||||
end
|
||||
# Forget all other moves not accessible to the base form
|
||||
sp_data = pkmn.species_data
|
||||
pkmn.moves.each_with_index do |move, i|
|
||||
next if sp_data.moves.any? { |learn_move| learn_move[1] == move.id }
|
||||
next if sp_data.tutor_moves.include?(move.id)
|
||||
next if sp_data.egg_moves.include?(move.id)
|
||||
pbMessage(_INTL("{1} forgot {2}...", pkmn.name, move.name))
|
||||
pkmn.moves[i] = nil
|
||||
end
|
||||
pkmn.moves.compact!
|
||||
# Ensure pkmn has at least one move in the end
|
||||
pbLearnMove(pkmn, :CONFUSION) if pkmn.numMoves == 0
|
||||
else # Ice Rider, Shadow Rider
|
||||
new_move = form_moves[form - 1]
|
||||
|
||||
@@ -496,7 +496,6 @@ class PokemonMart_Scene
|
||||
curnumber = maximum if curnumber < 1
|
||||
numwindow.text = _INTL("x{1}<r>$ {2}", curnumber, (curnumber * itemprice).to_s_formatted)
|
||||
elsif Input.trigger?(Input::USE)
|
||||
pbPlayDecisionSE
|
||||
ret = curnumber
|
||||
break
|
||||
elsif Input.trigger?(Input::BACK)
|
||||
|
||||
@@ -5,7 +5,7 @@ class Player < Trainer
|
||||
attr_accessor :has_snag_machine
|
||||
attr_accessor :seen_purify_chamber
|
||||
|
||||
alias __shadowPkmn__initialize initialize unless method_defined?(:__shadowPkmn__initialize)
|
||||
alias __shadowPkmn__initialize initialize unless private_method_defined?(:__shadowPkmn__initialize)
|
||||
def initialize(name, trainer_type)
|
||||
__shadowPkmn__initialize(name, trainer_type)
|
||||
@has_snag_machine = false
|
||||
|
||||
Reference in New Issue
Block a user