$imported = {} if $imported.nil? $imported["BattleSymphony-HB"] = true #============================================================================== # ■ Direction - Advanced Configuration #============================================================================== module Direction #-------------------------------------------------------------------------- # self.index_hb #-------------------------------------------------------------------------- def self.index_hb(pose) case pose # array = [row, frames] # frames is optional, default is 15 when :idle array = [0, 12] when :struck array = [3, 10] when :woozy array = [2, 12] #--- when :victory array = [10] when :defend array = [1, 5] when :dead array = [12] #--- when :attack array = [4, 4] when :skill array = [6, 6] when :magic array = [7, 6] when :item array = [5, 6] #--- when :advance array = [8, 5] when :retreat array = [9, 5] else; array = [0, 12] end return array end #-------------------------------------------------------------------------- # self.auto_pose_hb #-------------------------------------------------------------------------- def self.auto_pose_hb(battler) return :dead if battler.dead? return :woozy if battler.hp < battler.mhp / 4 return :idle end end # Direction #============================================================================== # ■ BattleManager #============================================================================== module BattleManager #-------------------------------------------------------------------------- # alias method: process_victory #-------------------------------------------------------------------------- class </i end end #============================================================================== # ■ DataManager #============================================================================== module DataManager #-------------------------------------------------------------------------- # alias method: load_database #-------------------------------------------------------------------------- class < 3 @timer = 15 end end #--- line_no = Direction.index_hb(pose)[0] sx = @pattern * @cw sy = line_no * @ch self.src_rect.set(sx, sy, @cw, @ch) end end # Sprite_Battler