#============================================================================== # ○速度補正つき武器 Ver1.00 # for RGSS2 # 西瓜 / Space not far # http://muspell.raindrop.jp/ # 武器に速度補正値を設定します。 #============================================================================== # 武器のメモ欄に<速度補正値;n>という形式で記述してください。 # 通常攻撃のスピードがnだけ変わります。 # マイナスの値を設定することも可能です。 =begin ●設定例 <速度補正値:15> <速度補正値:-100> =end class Game_BattleAction #-------------------------------------------------------------------------- # ● 行動スピードの決定 #-------------------------------------------------------------------------- WEAPONSPEED_WORD = "速度補正値" alias snf_weaponspeed_make_speed make_speed def make_speed snf_weaponspeed_make_speed if battler.is_a?(Game_Actor) result = 0 for weapon in battler.weapons.compact memo = weapon.note.scan(/<#{WEAPONSPEED_WORD}:(\S+)>/) memo = memo.flatten if memo != nil and not memo.empty? result += memo[0].to_i end end @speed += result if attack? end end end