class RPG::Skill
def item_cost
/(\d+)>/ =~ note ? $1.to_i : 0
end
end
class Game_Actor
alias xxx001_skill_cost_payable? skill_cost_payable?
def skill_cost_payable?(skill)
item = $data_armors[skill.item_cost]
xxx001_skill_cost_payable?(skill)&&
(!item || $game_party.members_equip_include?(item))
end
end
class RPG::Skill
def item_cost
/(\d+)>/ =~ note ? $1.to_i : 0
end
end
class Game_Actor
alias xxx001_skill_cost_payable? skill_cost_payable?
def skill_cost_payable?(skill)
item = $data_armors[skill.item_cost]
xxx001_skill_cost_payable?(skill)&&
(!item || $game_party.members_equip_include?(item))
end
end