欢迎侍主大人~本WIKI编辑权限开放,如有意向参与编辑和建设,请移步交流群:212446168。
「壹等星之夜」创作大赛正在进行中,点击此处参与活动

全站通知:

Widget:QnzlGospel

来自千年之旅WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

<script> (window.RLQ = window.RLQ || []).push(['jquery', () => { let currentGospelSkillLevel = -1; // 觉醒控制变量,0为未觉醒,1为觉醒1,2为觉醒5 // let gospelSkillWakeModel = 0;

// 按下加技能等级按钮的方法 $(".qnzl_gospel_skill_level_plus").click(function (event){ currentGospelSkillLevel = parseInt($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_level_num").html()); if ($($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html() != "星痕觉醒5阶段" && currentGospelSkillLevel < 10) { currentGospelSkillLevel += 1; } else if ($($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html() != "星痕觉醒5阶段" && currentGospelSkillLevel == 10) { currentGospelSkillLevel = 1; } else if ($($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html() == "星痕觉醒5阶段" && currentGospelSkillLevel < 12) { currentGospelSkillLevel += 1; } else { currentGospelSkillLevel = 3; } $($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_level_num").html(currentGospelSkillLevel); changeGospelSkillDesc(event.target, currentGospelSkillLevel); });

// 按下减技能等级按钮的方法 $(".qnzl_gospel_skill_level_minus").click(function (event){ currentGospelSkillLevel = parseInt($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_level_num").html()); if ($($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html() == "星痕觉醒5阶段" && currentGospelSkillLevel == 3) { currentGospelSkillLevel = 12; } else if ($($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html() != "星痕觉醒5阶段" && currentGospelSkillLevel == 1) { currentGospelSkillLevel = 10; } else { currentGospelSkillLevel -= 1; } $($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_level_num").html(currentGospelSkillLevel); changeGospelSkillDesc(event.target, currentGospelSkillLevel); });

// 星痕技能面板内容变更 function changeGospelSkillDesc(clickTarget, index) { let indexAddition = -99; // if (gospelSkillWakeModel == 0) { // indexAddition = 0; // } else if (gospelSkillWakeModel == 1) { // indexAddition = 12; // } else { // indexAddition = 24 // } switch ($($(clickTarget.closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html()) { case "星痕未觉醒": indexAddition = 0; break; case "星痕觉醒1阶段": indexAddition = 10; break; case "星痕觉醒5阶段": indexAddition = 18; break; default: indexAddition = -99; }

$(clickTarget.closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_effect_panel").html( $($(clickTarget.closest(".qnzl_gospel_skill_panel")).next()).children().eq(index - 1 + indexAddition).html() ); }

// 星痕觉醒阶段切换 $(".qnzl_gospal_skill_wake_level_switch_btn").click(function (event){ currentGospelSkillLevel = parseInt($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_level_num").html()); switch ($($(this).closest(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html()) { case "星痕未觉醒": $($(this).closest(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html("星痕觉醒1阶段"); changeGospelSkillDesc(event.target, currentGospelSkillLevel); $($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_cd_label")).children("span").html( $($(event.target.closest(".qnzl_gospel_skill_panel")).next()).children().eq(31).html() ); break; case "星痕觉醒1阶段": $($(this).closest(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html("星痕觉醒5阶段"); if (currentGospelSkillLevel < 3) { $($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_level_num").html("3"); changeGospelSkillDesc(event.target, 3); } else { changeGospelSkillDesc(event.target, currentGospelSkillLevel); } $($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_cd_label")).children("span").html( $($(event.target.closest(".qnzl_gospel_skill_panel")).next()).children().eq(32).html() ); break; case "星痕觉醒5阶段": $($(this).closest(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html("星痕未觉醒"); if (currentGospelSkillLevel > 10) { $($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_level_num").html("10"); changeGospelSkillDesc(event.target, 10); } else { changeGospelSkillDesc(event.target, currentGospelSkillLevel); } $($($(this).closest(".qnzl_gospel_skill_panel_layout_layer")).find(".qnzl_gospel_skill_cd_label")).children("span").html( $($(event.target.closest(".qnzl_gospel_skill_panel")).next()).children().eq(30).html() ); break; default: $($(this).closest(".qnzl_gospal_skill_wake_level_switch_btn")).children("span").html("error"); } }); }]); </script>