2022-03-28 22:24:30 +08:00
|
|
|
local extension = Package:new("standard")
|
2022-03-31 13:29:23 +08:00
|
|
|
extension.metadata = require "packages.standard.metadata"
|
2022-04-01 20:51:01 +08:00
|
|
|
dofile "packages/standard/game_rule.lua"
|
2022-09-15 11:17:13 +08:00
|
|
|
dofile "packages/standard/aux_skills.lua"
|
2022-03-28 22:24:30 +08:00
|
|
|
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["standard"] = "标准包",
|
|
|
|
["wei"] = "魏",
|
|
|
|
["shu"] = "蜀",
|
|
|
|
["wu"] = "吴",
|
|
|
|
["qun"] = "群",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-16 19:13:07 +08:00
|
|
|
Fk:loadTranslationTable{
|
|
|
|
["black"] = "黑色",
|
|
|
|
["red"] = '<font color="#CC3131">红色</font>',
|
|
|
|
["nocolor"] = '<font color="grey">无色</font>',
|
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local jianxiong = fk.CreateTriggerSkill{
|
|
|
|
name = "jianxiong",
|
|
|
|
events = {fk.Damaged},
|
|
|
|
can_trigger = function(self, event, target, player, data)
|
|
|
|
local room = target.room
|
|
|
|
return data.card ~= nil and
|
|
|
|
target == player and
|
|
|
|
target:hasSkill(self.name) and
|
|
|
|
room:getCardArea(data.card) == Card.Processing and
|
|
|
|
not target.dead
|
|
|
|
end,
|
|
|
|
on_use = function(self, event, target, player, data)
|
|
|
|
local room = player.room
|
|
|
|
room:obtainCard(player.id, data.card, false)
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local caocao = General:new(extension, "caocao", "wei", 4)
|
2023-01-22 00:49:11 +08:00
|
|
|
caocao:addSkill(jianxiong)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["caocao"] = "曹操",
|
2023-01-22 00:49:11 +08:00
|
|
|
["jianxiong"] = "奸雄",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-07 15:20:44 +08:00
|
|
|
local fankui = fk.CreateTriggerSkill{
|
|
|
|
name = "fankui",
|
|
|
|
events = {fk.Damaged},
|
|
|
|
frequency = Skill.NotFrequent,
|
|
|
|
can_trigger = function(self, event, target, player, data)
|
2023-01-07 15:34:52 +08:00
|
|
|
local room = target.room
|
|
|
|
local from = room:getPlayerById(data.from)
|
|
|
|
return from ~= nil and
|
|
|
|
target == player and
|
2023-01-16 21:04:28 +08:00
|
|
|
target:hasSkill(self.name) and
|
|
|
|
not target.dead
|
2023-01-07 15:20:44 +08:00
|
|
|
end,
|
2023-01-16 21:04:28 +08:00
|
|
|
on_use = function(self, event, target, player, data)
|
2023-01-07 15:20:44 +08:00
|
|
|
local room = player.room
|
2023-01-07 15:34:52 +08:00
|
|
|
local from = room:getPlayerById(data.from)
|
2023-01-16 21:04:28 +08:00
|
|
|
local card = room:askForCardChosen(player, from, "he", self.name)
|
|
|
|
room:obtainCard(player.id, card, false)
|
2023-01-07 15:20:44 +08:00
|
|
|
end
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local simayi = General:new(extension, "simayi", "wei", 3)
|
2023-01-07 15:20:44 +08:00
|
|
|
simayi:addSkill(fankui)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["simayi"] = "司马懿",
|
2023-01-07 15:20:44 +08:00
|
|
|
["fankui"] = "反馈",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local ganglie = fk.CreateTriggerSkill{
|
|
|
|
name = "ganglie",
|
|
|
|
events = {fk.Damaged},
|
|
|
|
can_trigger = function(self, event, target, player, data)
|
|
|
|
local room = target.room
|
|
|
|
return data.from ~= nil and
|
|
|
|
target == player and
|
|
|
|
target:hasSkill(self.name) and
|
|
|
|
not target.dead
|
|
|
|
end,
|
|
|
|
on_use = function(self, event, target, player, data)
|
|
|
|
local room = player.room
|
|
|
|
local from = room:getPlayerById(data.from)
|
|
|
|
local judge = {
|
|
|
|
who = from,
|
|
|
|
reason = self.name,
|
|
|
|
}
|
|
|
|
room:judge(judge)
|
|
|
|
if judge.card.suit ~= Card.Heart then
|
|
|
|
local discards = room:askForDiscard(from, 2, 2, false, self.name)
|
|
|
|
if #discards == 0 then
|
|
|
|
room:damage{
|
|
|
|
from = player.id,
|
|
|
|
to = from.id,
|
|
|
|
damage = 1,
|
|
|
|
skillName = self.name,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local xiahoudun = General:new(extension, "xiahoudun", "wei", 4)
|
2023-01-22 00:49:11 +08:00
|
|
|
xiahoudun:addSkill(ganglie)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["xiahoudun"] = "夏侯惇",
|
2023-01-22 00:49:11 +08:00
|
|
|
["ganglie"] = "刚烈",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
local zhangliao = General:new(extension, "zhangliao", "wei", 4)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["zhangliao"] = "张辽",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
local xuchu = General:new(extension, "xuchu", "wei", 4)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["xuchu"] = "许褚",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2022-05-01 18:37:13 +08:00
|
|
|
local guojia = General:new(extension, "guojia", "wei", 3)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["guojia"] = "郭嘉",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-09 19:15:18 +08:00
|
|
|
local zhenji = General:new(extension, "zhenji", "wei", 3, 3, General.Female)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["zhenji"] = "甄姬",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
local liubei = General:new(extension, "liubei", "shu", 4)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["liubei"] = "刘备",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-16 19:13:07 +08:00
|
|
|
local wusheng = fk.CreateViewAsSkill{
|
|
|
|
name = "wusheng",
|
|
|
|
pattern = "slash",
|
|
|
|
card_filter = function(self, to_select, selected)
|
|
|
|
if #selected == 1 then return false end
|
|
|
|
return Fk:getCardById(to_select).color == Card.Red
|
|
|
|
end,
|
|
|
|
view_as = function(self, cards)
|
|
|
|
if #cards ~= 1 then
|
|
|
|
return nil
|
|
|
|
end
|
|
|
|
local c = Fk:cloneCard("slash")
|
|
|
|
c:addSubcard(cards[1])
|
|
|
|
return c
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local guanyu = General:new(extension, "guanyu", "shu", 4)
|
2023-01-16 19:13:07 +08:00
|
|
|
guanyu:addSkill(wusheng)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["guanyu"] = "关羽",
|
2023-01-16 19:13:07 +08:00
|
|
|
["wusheng"] = "武圣",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
local zhangfei = General:new(extension, "zhangfei", "shu", 4)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["zhangfei"] = "张飞",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local kongcheng = fk.CreateProhibitSkill{
|
|
|
|
name = "kongcheng",
|
|
|
|
is_prohibited = function(self, from, to, card)
|
|
|
|
if to:hasSkill(self.name) and to:isKongcheng() then
|
|
|
|
return card.name == "slash" or card.name == "duel"
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local zhugeliang = General:new(extension, "zhugeliang", "shu", 3)
|
2023-01-22 00:49:11 +08:00
|
|
|
zhugeliang:addSkill(kongcheng)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["zhugeliang"] = "诸葛亮",
|
2023-01-22 00:49:11 +08:00
|
|
|
["kongcheng"] = "空城",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local longdan = fk.CreateViewAsSkill{
|
|
|
|
name = "longdan",
|
|
|
|
pattern = "slash,jink",
|
|
|
|
card_filter = function(self, to_select, selected)
|
|
|
|
if #selected == 1 then return false end
|
|
|
|
local c = Fk:getCardById(to_select)
|
|
|
|
return c.name == "slash" or c.name == "jink"
|
|
|
|
end,
|
|
|
|
view_as = function(self, cards)
|
|
|
|
if #cards ~= 1 then
|
|
|
|
return nil
|
|
|
|
end
|
|
|
|
local _c = Fk:getCardById(cards[1])
|
|
|
|
local c
|
|
|
|
if _c.name == "slash" then
|
|
|
|
c = Fk:cloneCard("jink")
|
|
|
|
elseif _c.name == "jink" then
|
|
|
|
c = Fk:cloneCard("slash")
|
|
|
|
end
|
|
|
|
c:addSubcard(cards[1])
|
|
|
|
return c
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local zhaoyun = General:new(extension, "zhaoyun", "shu", 4)
|
2023-01-22 00:49:11 +08:00
|
|
|
zhaoyun:addSkill(longdan)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["zhaoyun"] = "赵云",
|
2023-01-22 00:49:11 +08:00
|
|
|
["longdan"] = "龙胆",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-04 14:21:29 +08:00
|
|
|
local mashu = fk.CreateDistanceSkill{
|
|
|
|
name = "mashu",
|
|
|
|
correct_func = function(self, from, to)
|
|
|
|
if from:hasSkill(self.name) then
|
|
|
|
return -1
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local machao = General:new(extension, "machao", "shu", 4)
|
2023-01-04 14:21:29 +08:00
|
|
|
machao:addSkill(mashu)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["machao"] = "马超",
|
2023-01-04 14:21:29 +08:00
|
|
|
["mashu"] = "马术",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local jizhi = fk.CreateTriggerSkill{
|
|
|
|
name = "jizhi",
|
|
|
|
events = {fk.CardUsing},
|
|
|
|
can_trigger = function(self, event, target, player, data)
|
|
|
|
return target == player and player:hasSkill(self.name) and
|
|
|
|
data.card.type == Card.TypeTrick and
|
|
|
|
data.card.sub_type ~= Card.SubtypeDelayedTrick
|
|
|
|
end,
|
|
|
|
on_use = function(self, event, target, player, data)
|
|
|
|
player:drawCards(1, self.name)
|
|
|
|
end,
|
|
|
|
}
|
2023-01-09 19:15:18 +08:00
|
|
|
local huangyueying = General:new(extension, "huangyueying", "shu", 3, 3, General.Female)
|
2023-01-22 00:49:11 +08:00
|
|
|
huangyueying:addSkill(jizhi)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["huangyueying"] = "黄月英",
|
2023-01-22 00:49:11 +08:00
|
|
|
["jizhi"] = "集智",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2022-09-14 13:01:10 +08:00
|
|
|
local zhiheng = fk.CreateActiveSkill{
|
|
|
|
name = "zhiheng",
|
|
|
|
feasible = function(self, selected, selected_cards)
|
|
|
|
return #selected == 0 and #selected_cards > 0
|
|
|
|
end,
|
|
|
|
on_effect = function(self, room, effect)
|
2022-12-20 12:51:54 +08:00
|
|
|
local from = room:getPlayerById(effect.from)
|
|
|
|
room:throwCard(effect.cards, self.name, from)
|
|
|
|
room:drawCards(from, #effect.cards, self.name)
|
2022-09-14 13:01:10 +08:00
|
|
|
end
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local sunquan = General:new(extension, "sunquan", "wu", 4)
|
2022-09-14 13:01:10 +08:00
|
|
|
sunquan:addSkill(zhiheng)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["sunquan"] = "孙权",
|
2022-09-14 13:01:10 +08:00
|
|
|
["zhiheng"] = "制衡",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local qixi = fk.CreateViewAsSkill{
|
|
|
|
name = "qixi",
|
|
|
|
pattern = "dismantlement",
|
|
|
|
card_filter = function(self, to_select, selected)
|
|
|
|
if #selected == 1 then return false end
|
|
|
|
return Fk:getCardById(to_select).color == Card.Black
|
|
|
|
end,
|
|
|
|
view_as = function(self, cards)
|
|
|
|
if #cards ~= 1 then
|
|
|
|
return nil
|
|
|
|
end
|
|
|
|
local c = Fk:cloneCard("dismantlement")
|
|
|
|
c:addSubcard(cards[1])
|
|
|
|
return c
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local ganning = General:new(extension, "ganning", "wu", 4)
|
2023-01-22 00:49:11 +08:00
|
|
|
ganning:addSkill(qixi)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["ganning"] = "甘宁",
|
2023-01-22 00:49:11 +08:00
|
|
|
["qixi"] = "奇袭",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local keji = fk.CreateTriggerSkill{
|
|
|
|
name = "keji",
|
|
|
|
events = {fk.EventPhaseChanging},
|
|
|
|
can_trigger = function(self, event, target, player, data)
|
|
|
|
return target == player and player:hasSkill(self.name) and
|
|
|
|
data.to == Player.Discard and
|
|
|
|
player:usedTimes("slash") < 1 and
|
|
|
|
player:getMark("_keji_played_slash") == 0
|
|
|
|
end,
|
|
|
|
on_use = function(self, event, target, player, data)
|
|
|
|
return true
|
|
|
|
end,
|
|
|
|
|
|
|
|
refresh_events = {fk.CardResponding, fk.EventPhaseStart},
|
|
|
|
can_refresh = function(self, event, target, player, data)
|
|
|
|
if not (target == player and player:hasSkill(self.name)) then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
if event == fk.CardResponding then
|
|
|
|
return data.card.name == "slash"
|
|
|
|
elseif event == fk.EventPhaseStart then
|
|
|
|
return player.phase == player.NotActive
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
on_refresh = function(self, event, target, player, data)
|
|
|
|
local room = player.room
|
|
|
|
if event == fk.CardResponding then
|
|
|
|
room:addPlayerMark(player, "_keji_played_slash", 1)
|
|
|
|
elseif event == fk.EventPhaseStart then
|
|
|
|
room:setPlayerMark(player, "_keji_played_slash", 0)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local lvmeng = General:new(extension, "lvmeng", "wu", 4)
|
2023-01-22 00:49:11 +08:00
|
|
|
lvmeng:addSkill(keji)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["lvmeng"] = "吕蒙",
|
2023-01-22 00:49:11 +08:00
|
|
|
["keji"] = "克己",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-08 14:57:42 +08:00
|
|
|
local kurou = fk.CreateActiveSkill{
|
|
|
|
name = "kurou",
|
2023-01-09 19:15:18 +08:00
|
|
|
card_filter = function(self, to_select, selected, selected_targets)
|
2023-01-08 14:57:42 +08:00
|
|
|
return false
|
|
|
|
end,
|
|
|
|
on_effect = function(self, room, effect)
|
|
|
|
local from = room:getPlayerById(effect.from)
|
|
|
|
room:loseHp(from, 1, self.name)
|
2023-01-08 15:05:52 +08:00
|
|
|
if from:isAlive() then
|
|
|
|
room:drawCards(from, 2, self.name)
|
|
|
|
end
|
2023-01-08 14:57:42 +08:00
|
|
|
end
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local huanggai = General:new(extension, "huanggai", "wu", 4)
|
2023-01-08 14:57:42 +08:00
|
|
|
huanggai:addSkill(kurou)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["huanggai"] = "黄盖",
|
2023-01-08 14:57:42 +08:00
|
|
|
["kurou"] = "苦肉",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local yingzi = fk.CreateTriggerSkill{
|
|
|
|
name = "yingzi",
|
|
|
|
events = {fk.DrawNCards},
|
|
|
|
on_use = function(self, event, target, player, data)
|
|
|
|
data.n = data.n + 1
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local zhouyu = General:new(extension, "zhouyu", "wu", 3)
|
2023-01-22 00:49:11 +08:00
|
|
|
zhouyu:addSkill(yingzi)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["zhouyu"] = "周瑜",
|
2023-01-22 00:49:11 +08:00
|
|
|
["yingzi"] = "英姿",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-09 19:15:18 +08:00
|
|
|
local daqiao = General:new(extension, "daqiao", "wu", 3, 3, General.Female)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["daqiao"] = "大乔",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-22 00:49:11 +08:00
|
|
|
local qianxun = fk.CreateProhibitSkill{
|
|
|
|
name = "qianxun",
|
|
|
|
is_prohibited = function(self, from, to, card)
|
|
|
|
if to:hasSkill(self.name) then
|
|
|
|
return card.name == "indulgence" or card.name == "snatch"
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
}
|
2022-03-28 22:24:30 +08:00
|
|
|
local luxun = General:new(extension, "luxun", "wu", 3)
|
2023-01-22 00:49:11 +08:00
|
|
|
luxun:addSkill(qianxun)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["luxun"] = "陆逊",
|
2023-01-22 00:49:11 +08:00
|
|
|
["qianxun"] = "谦逊",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-09 19:15:18 +08:00
|
|
|
local jieyin = fk.CreateActiveSkill{
|
|
|
|
name = "jieyin",
|
|
|
|
card_filter = function(self, to_select, selected)
|
2023-01-22 00:49:11 +08:00
|
|
|
return #selected < 2
|
2023-01-09 19:15:18 +08:00
|
|
|
end,
|
|
|
|
target_filter = function(self, to_select, selected)
|
|
|
|
local target = Fk:currentRoom():getPlayerById(to_select)
|
|
|
|
local name = target.general
|
|
|
|
return target:isWounded() and
|
|
|
|
Fk.generals[name].gender == General.Male
|
|
|
|
and #selected < 1
|
|
|
|
end,
|
|
|
|
feasible = function(self, selected, selected_cards)
|
|
|
|
return #selected == 1 and #selected_cards == 2
|
|
|
|
end,
|
|
|
|
on_effect = function(self, room, effect)
|
|
|
|
local from = room:getPlayerById(effect.from)
|
|
|
|
room:throwCard(effect.cards, self.name, from)
|
|
|
|
room:recover({
|
|
|
|
who = effect.tos[1],
|
|
|
|
num = 1,
|
|
|
|
recoverBy = effect.from,
|
|
|
|
skillName = self.name
|
|
|
|
})
|
|
|
|
if from:isWounded() then
|
|
|
|
room:recover({
|
|
|
|
who = effect.from,
|
|
|
|
num = 1,
|
|
|
|
recoverBy = effect.from,
|
|
|
|
skillName = self.name
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
}
|
|
|
|
local sunshangxiang = General:new(extension, "sunshangxiang", "wu", 3, 3, General.Female)
|
|
|
|
sunshangxiang:addSkill(jieyin)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["sunshangxiang"] = "孙尚香",
|
2023-01-09 19:15:18 +08:00
|
|
|
["jieyin"] = "结姻",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
local huatuo = General:new(extension, "huatuo", "qun", 3)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["huatuo"] = "华佗",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
local lvbu = General:new(extension, "lvbu", "qun", 4)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["lvbu"] = "吕布",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
2023-01-09 19:15:18 +08:00
|
|
|
local diaochan = General:new(extension, "diaochan", "qun", 3, 3, General.Female)
|
2022-03-28 22:24:30 +08:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 15:27:56 +08:00
|
|
|
["diaochan"] = "貂蝉",
|
2022-03-28 22:24:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
return extension
|