diff --git a/character/collab/dynamicTranslate.js b/character/collab/dynamicTranslate.js index 0caffe703..60937eac8 100644 --- a/character/collab/dynamicTranslate.js +++ b/character/collab/dynamicTranslate.js @@ -4,5 +4,9 @@ const dynamicTranslates = { dcjianxiong(player) { return "当你受到伤害后,你可以摸" + get.cnNumber(player.countMark("dcjianxiong") + 1) + "张牌并获得对你造成伤害的牌,然后你令此技能摸牌数+1(至多为5)。"; }, + dcbenxi(player) { + if(player.storage.dcbenxi) return "转换技,锁定技。当你失去手牌后,阴:系统随机检索出一句转换为拼音后包含“wu,yi”的技能台词,然后你念出此台词。阳:你获得上次所念出的台词对应的技能;若你已拥有该技能,则改为对其他角色各造成1点伤害。"; + return "转换技,锁定技。当你失去手牌后,阴:系统随机检索出一句转换为拼音后包含“wu,yi”的技能台词,然后你念出此台词。阳:你获得上次所念出的台词对应的技能;若你已拥有该技能,则改为对其他角色各造成1点伤害。"; + }, }; export default dynamicTranslates; diff --git a/character/collab/skill.js b/character/collab/skill.js index 7b4b21688..a883c5797 100644 --- a/character/collab/skill.js +++ b/character/collab/skill.js @@ -47,12 +47,32 @@ const skills = { } } else{ - await player.addTempSkills([skill], {player: 'phaseBegin'}); + await player.addTempSkills([skill], {player: "phaseBegin"}); } delete player.storage.dcbenxi_pending; } } }, + onremove(player){ + delete player.storage.dcbenxi; + delete player.storage.dcbenxi_pending; + }, + mark: true, + marktext: "☯", + intro: { + mark(dialog, storage, player){ + if(storage){ + const skill = player.storage.dcbenxi_pending; + if(skill){ + dialog.addText(`锁定技,当你下次失去手牌后,你获得技能〖${get.translation(skill)}〗直到你的下回合开始。若已获得该技能,则改为对所有其他角色各造成1点伤害。`, false); + dialog.add('
【' + get.translation(lib.translate[skill + "_ab"] || get.translation(skill).slice(0, 2)) + "】
" + get.skillInfoTranslation(skill, player) + "
"); + } + } + else{ + return "锁定技。当你下次失去手牌后,你随机念出一句拼音中含有“wu,yi”的台词。"; + } + }, + }, getMap() { if (!_status.dcbenxi_map) { _status.dcbenxi_map = {}; diff --git a/character/collab/sort.js b/character/collab/sort.js index f056ebc6f..ac0e9b39f 100644 --- a/character/collab/sort.js +++ b/character/collab/sort.js @@ -3,7 +3,7 @@ const characterSort = { collab_tongque: ["sp_fuwan", "sp_fuhuanghou", "sp_jiben", "old_lingju", "sp_mushun"], collab_duanwu: ["sunwukong", "longwang", "taoshen"], collab_decade: ["libai", "xiaoyuehankehan", "zhutiexiong", "wu_zhutiexiong"], - collab_remake: ["dc_caocao", "dc_liubei", "dc_sunquan", "nezha", "dc_sunce", "dc_zhaoyun"], + collab_remake: ["dc_caocao", "dc_liubei", "dc_sunquan", "nezha", "dc_sunce", "dc_zhaoyun", "dc_wuyi"], }; const characterSortTranslate = { diff --git a/character/rank.js b/character/rank.js index 3a6a16ba6..80a7fce4a 100644 --- a/character/rank.js +++ b/character/rank.js @@ -1422,6 +1422,7 @@ window.noname_character_rank = { "xia_shie", "clan_wangmingshan", "yj_simafu", + "dc_wuyi", ], bm: [ "kongrong", @@ -1728,6 +1729,7 @@ window.noname_character_rank = { ], rarity: { legend: [ + "dc_wuyi", "sp_sunce", "star_caoren", "dc_zhaoyun", diff --git a/character/yijiang/characterReplace.js b/character/yijiang/characterReplace.js index 171d751e4..b46b85660 100644 --- a/character/yijiang/characterReplace.js +++ b/character/yijiang/characterReplace.js @@ -32,7 +32,7 @@ const characterReplaces = { chenqun: ["chenqun", "dc_chenqun", "re_chenqun", "old_chenqun"], hanhaoshihuan: ["hanhaoshihuan", "re_hanhaoshihuan"], caozhen: ["caozhen", "re_caozhen", "xin_caozhen", "old_caozhen"], - wuyi: ["wuyi", "re_wuyi", "xin_wuyi"], + wuyi: ["wuyi", "re_wuyi", "xin_wuyi", "dc_wuyi"], sunluban: ["re_sunluban", "xin_sunluban", "sunluban"], zhuhuan: ["re_zhuhuan", "xin_zhuhuan", "zhuhuan", "old_zhuhuan"], caoxiu: ["caoxiu", "re_caoxiu", "xin_caoxiu", "tw_caoxiu", "old_caoxiu"], diff --git a/image/character/dc_wuyi.jpg b/image/character/dc_wuyi.jpg new file mode 100644 index 000000000..07f2812a8 Binary files /dev/null and b/image/character/dc_wuyi.jpg differ