# 异界的月追加CP消耗
if @skill.element_set.include?(KGH::Crafts_Skill) or
@skill.element_set.include?(KGH::S_Crafts_Skill)
@active_battler.gain_cp([email protected]_cost)
else
@active_battler.sp -= @skill.sp_cost
end
# 刷新状态窗口
@status_window.refresh
# 在帮助窗口显示特技名
@help_window.set_text(@skill.name, 1)
# 设置动画 ID
@animation1_id = @skill.animation1_id
@animation2_id = @skill.animation2_id
# 设置公共事件 ID
@common_event_id = @skill.common_event_id
# 设置对像侧战斗者
set_target_battlers(@skill.scope)
# 应用特技效果
for target in @target_battlers
target.skill_effect(@active_battler, @skill)
end
end
end
#==============================================================================
# ■ Game_Actor 追加
#------------------------------------------------------------------------------
# 角色结晶槽的升级接口函数为:
# .cs_levelup(结晶槽ID, 升级幅度) 升级幅度省略则为1
#==============================================================================
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# ● 检测技能是否可用,与默认方法略微不同
# skill_id : 技能ID
#--------------------------------------------------------------------------
def skill_can_use?(skill_id)
#如果是CP技能
if $data_skills[skill_id].element_set.include?(KGH::Crafts_Skill) or
$data_skills[skill_id].element_set.include?(KGH::S_Crafts_Skill)
# CP 不足的情况下不能使用
if $data_skills[skill_id].sp_cost > self.cp_store
return false
end
end
return super
end
end