class RPG::Weapon < RPG::EquipItem
def attack_skill
@note.each_line do |line|
if line =~ /\<(?:AttackSkill)[ ]*(\d+)\>/i
return $1.to_i == 0 ? 1 : $1.to_i
end
end
return 1
end
end
class Game_Actor < Game_Battler
alias attack_skill_attack_skill_id attack_skill_id
def attack_skill_id
return weapons[0].attack_skill if weapons[0]
if dual_wield?
return weapons[1].attack_skill if weapons[1]
end
return attack_skill_attack_skill_id
end
end
class RPG::Weapon < RPG::EquipItem
def attack_skill
@note.each_line do |line|
if line =~ /\<(?:AttackSkill)[ ]*(\d+)\>/i
return $1.to_i == 0 ? 1 : $1.to_i
end
end
return 1
end
end
class Game_Actor < Game_Battler
alias attack_skill_attack_skill_id attack_skill_id
def attack_skill_id
return weapons[0].attack_skill if weapons[0]
if dual_wield?
return weapons[1].attack_skill if weapons[1]
end
return attack_skill_attack_skill_id
end
end