#==============================================================================
# ** Animated Battler (1st Gen) - Stationary Weapons patch
#------------------------------------------------------------------------------
# This add-on was cranked out to make some weapons prevent movement.
# Took five minutes.
#==============================================================================
MNK_STATIONARY_WEAPONS = [22]
#==============================================================================
# ** Sprite_Battler
#------------------------------------------------------------------------------
# This sprite is used to display the battler.It observes the Game_Character
# class and automatically changes sprite conditions.
#==============================================================================
class Sprite_Battler < RPG::Sprite
#--------------------------------------------------------------------------
# * Set Movement
#--------------------------------------------------------------------------
def setmove(destination_x, destination_y)
unless (@battler.is_a?(Game_Enemy) and @stationary_enemies) or
(@battler.is_a?(Game_Actor) and @stationary_actors)
unless MNK_STATIONARY_WEAPONS.include?(@battler.weapon_id)
@original_x = @display_x
@original_y = @display_y
@destination_x = destination_x
@destination_y = destination_y
end
end
end
end
#--------------------------------------------------------------------------
# * Initialize
#--------------------------------------------------------------------------
alias cbs_initialize initialize
def initialize(viewport, battler = nil)
@speed = 7
@frames = 4
@poses = 10
@stationary_enemies = true
@stationary_actors = false
@calculate_speed = true
@phasing = true
@frame = 0
@pose = 0
@last_time = 0
@last_move_time = 0
cbs_initialize(viewport, battler)
viewport.z = 99
end