Skill_Use = {}
Skill_Use[1] = [80,81]
Skill_Use[2] = [82]
class Window_SkillList
def include?(item)
item && item.stype_id == @stype_id && skill_use_switch?(item)
end
def skill_use_switch?(skill)
Skill_Use.each do |k,v|
return false if $game_switches[k] && v.include?(skill.id)
end
return true
end
end
Skill_Use = {}
Skill_Use[1] = [80,81]
Skill_Use[2] = [82]
class Window_SkillList
def include?(item)
item && item.stype_id == @stype_id && skill_use_switch?(item)
end
def skill_use_switch?(skill)
Skill_Use.each do |k,v|
return false if $game_switches[k] && v.include?(skill.id)
end
return true
end
end