From 8482cc72d751bd6a12a528cfa2c0e2f3c264465a Mon Sep 17 00:00:00 2001 From: Baisebaoma Date: Fri, 15 Dec 2023 17:21:21 +0800 Subject: [PATCH] Yangfan huapen --- README.md | 11 ++++++----- jianyu.lua | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index eb3bfef..cc9c027 100644 --- a/README.md +++ b/README.md @@ -181,13 +181,14 @@ > 该武将由玩家“敏敏伊人梦中卿”设计。 -四吃:当你受到伤害后,你可以亮出牌堆顶4张牌,根据花色数量触发效果: +四吃:受到伤害后,你可以亮出牌堆顶4张牌,根据花色数量触发效果: 1种,将这些牌全部交给一名角色; -2种,你使用其中一张牌,若都无法使用,你弃置一张牌; -3种,你获得其中三张同类型的牌或其中两张不同类型的牌,其余角色各摸一张牌; -4种,你选择至多3名角色,你与其各失去一点体力。 +2种,使用其中一张牌,若都无法使用,你弃置一张牌; +3种,获得其中三张同类型的牌或其中两张不同类型的牌,其余角色各摸一张牌; +4种,选择至多3名角色,你与其各失去一点体力。 +随后,将剩余的牌置入弃牌堆。 -花盆:锁定技,当其他角色使用♣牌且只有一个目标时,你进行一次判定,若为♥<\font>,则额外指定你为目标。 +花盆:锁定技,当其他角色使用♣非延时锦囊牌或基本牌,且只有一个不为你的目标时,你进行一次判定,若为♥<\font>,则额外指定你为目标。 博识:每当你判定10次之后,可以选择一项:
1. 回复一点体力,然后弃一张牌;
diff --git a/jianyu.lua b/jianyu.lua index 84a1cc7..119f6aa 100644 --- a/jianyu.lua +++ b/jianyu.lua @@ -8,6 +8,7 @@ Fk:loadTranslationTable { ["xjb"] = "导演", ["tym"] = "反赌专家", ["skl"] = "拂却心尘", + ["zer"] = "敏敏伊人", } -- 熊简自豪 @@ -1361,6 +1362,58 @@ Fk:loadTranslationTable { } +-- 水晶哥 + +local zer__yangfan = General(extension, "zer__yangfan", "qun", 3, 3, General.Male) + +-- ol_sp1 sheyan +-- 这技能是不是也太垃圾了? +local jy_huapen = fk.CreateTriggerSkill{ + name = "jy_huapen", + anim_type = "control", + events = {fk.TargetConfirming}, + frequency = Skill.Compulsory, + can_trigger = function(self, event, target, player, data) + if player:hasSkill(self) and data.from ~= player.id and data.card and data.card.suit == Card.Club and + (data.card:isCommonTrick() or data.card.type == Card.TypeBasic) then + local previous_targets = AimGroup:getAllTargets(data.tos) + -- 如果目标里面已经有我自己了,那就不要判定了 + for _, v in pairs(previous_targets) do + if v == player.id then + return false + end + end + return true + end + end, + on_use = function(self, event, target, player, data) + local room = player.room + local targets = {} + local previous_targets = AimGroup:getAllTargets(data.tos) + + local judge = { + who = player, + reason = self.name, + pattern = ".|.|heart", + } + room:judge(judge) + if judge.card.suit == Card.Heart then + room:doIndicate(data.from, {player.id}) -- 播放指示线 + if #AimGroup:getAllTargets(data.tos) == 1 then + table.insertTable(targets, AimGroup:getAllTargets(data.tos)) + end + TargetGroup:pushTargets(data.targetGroup, player.id) + end + end, +} +zer__yangfan:addSkill(jy_huapen) + +Fk:loadTranslationTable { + ["zer__yangfan"] = "杨藩", + ["jy_huapen"] = "花盆", + [":jy_huapen"] = [[锁定技,当其他角色使用♣非延时锦囊牌或基本牌指定了有且仅有一个不为你的目标时,你判定,若为,额外指定你为目标。]], +} + Fk:loadTranslationTable { ["jianzihao"] = "简自豪", ["houguoyu"] = "侯国玉",