class Game_BattlerBase
#--------------------------------------------------------------------------
# ● 检查技能的使用条件,如果该技能所需的技能类型全部都学会则可以使用技能
# 比如圣光为【光系】【治疗魔法】,死亡缠绕为【暗系】【治疗魔法】
# 使用圣光则需要同时学会【光系】和【治疗魔法】类型
#--------------------------------------------------------------------------
alias skill_type_conditions_met? skill_conditions_met?
def skill_conditions_met?(skill)
skillcan=0
for i in 0...Chd114::Skill::Skilltype[skill.id].size
#p skill_type_added?(i)
skillcan+=1 if skill_type_added?(i)
end
features_set(41) << 2
#p features_set(41)
skill_type_conditions_met?(skill) if skillcan==Chd114::Skill::Skilltype[skill.id].size
end
end
#
class Game_BattlerBase
#--------------------------------------------------------------------------
# ● 检查技能的使用条件,如果该技能所需的技能类型全部都学会则可以使用技能
# 比如圣光为【光系】【治疗魔法】,死亡缠绕为【暗系】【治疗魔法】
# 使用圣光则需要同时学会【光系】和【治疗魔法】类型
#--------------------------------------------------------------------------
alias skill_type_conditions_met? skill_conditions_met?
def skill_conditions_met?(skill)
skillcan=0
for i in 0...Chd114::Skill::Skilltype[skill.id].size
#p skill_type_added?(i)
skillcan+=1 if skill_type_added?(i)
end
features_set(41) << 2
#p features_set(41)
skill_type_conditions_met?(skill) if skillcan==Chd114::Skill::Skilltype[skill.id].size
end
end
#