2022-03-28 14:24:30 +00:00
|
|
|
local extension = Package:new("standard")
|
2022-03-31 05:29:23 +00:00
|
|
|
extension.metadata = require "packages.standard.metadata"
|
2022-04-01 12:51:01 +00:00
|
|
|
dofile "packages/standard/game_rule.lua"
|
2022-09-15 03:17:13 +00:00
|
|
|
dofile "packages/standard/aux_skills.lua"
|
2022-03-28 14:24:30 +00:00
|
|
|
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["standard"] = "标准包",
|
|
|
|
["wei"] = "魏",
|
|
|
|
["shu"] = "蜀",
|
|
|
|
["wu"] = "吴",
|
|
|
|
["qun"] = "群",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local caocao = General:new(extension, "caocao", "wei", 4)
|
|
|
|
extension:addGeneral(caocao)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["caocao"] = "曹操",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local simayi = General:new(extension, "simayi", "wei", 3)
|
|
|
|
extension:addGeneral(simayi)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["simayi"] = "司马懿",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local xiahoudun = General:new(extension, "xiahoudun", "wei", 4)
|
|
|
|
extension:addGeneral(xiahoudun)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["xiahoudun"] = "夏侯惇",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local zhangliao = General:new(extension, "zhangliao", "wei", 4)
|
|
|
|
extension:addGeneral(zhangliao)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["zhangliao"] = "张辽",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local xuchu = General:new(extension, "xuchu", "wei", 4)
|
|
|
|
extension:addGeneral(xuchu)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["xuchu"] = "许褚",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
2022-05-01 10:37:13 +00:00
|
|
|
local guojia = General:new(extension, "guojia", "wei", 3)
|
2022-03-28 14:24:30 +00:00
|
|
|
extension:addGeneral(guojia)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["guojia"] = "郭嘉",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local zhenji = General:new(extension, "zhenji", "wei", 3)
|
|
|
|
extension:addGeneral(zhenji)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["zhenji"] = "甄姬",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local liubei = General:new(extension, "liubei", "shu", 4)
|
|
|
|
extension:addGeneral(liubei)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["liubei"] = "刘备",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local guanyu = General:new(extension, "guanyu", "shu", 4)
|
|
|
|
extension:addGeneral(guanyu)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["guanyu"] = "关羽",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local zhangfei = General:new(extension, "zhangfei", "shu", 4)
|
|
|
|
extension:addGeneral(zhangfei)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["zhangfei"] = "张飞",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local zhugeliang = General:new(extension, "zhugeliang", "shu", 3)
|
|
|
|
extension:addGeneral(zhugeliang)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["zhugeliang"] = "诸葛亮",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local zhaoyun = General:new(extension, "zhaoyun", "shu", 4)
|
|
|
|
extension:addGeneral(zhaoyun)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["zhaoyun"] = "赵云",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local machao = General:new(extension, "machao", "shu", 4)
|
|
|
|
extension:addGeneral(machao)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["machao"] = "马超",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local huangyueying = General:new(extension, "huangyueying", "shu", 3)
|
|
|
|
extension:addGeneral(huangyueying)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["huangyueying"] = "黄月英",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
2022-09-14 05:01:10 +00: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)
|
|
|
|
room:drawCards(room:getPlayerById(effect.from), #effect.cards, "zhiheng")
|
|
|
|
end
|
|
|
|
}
|
2022-03-28 14:24:30 +00:00
|
|
|
local sunquan = General:new(extension, "sunquan", "wu", 4)
|
2022-09-14 05:01:10 +00:00
|
|
|
sunquan:addSkill(zhiheng)
|
2022-03-28 14:24:30 +00:00
|
|
|
extension:addGeneral(sunquan)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["sunquan"] = "孙权",
|
2022-09-14 05:01:10 +00:00
|
|
|
["zhiheng"] = "制衡",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local ganning = General:new(extension, "ganning", "wu", 4)
|
|
|
|
extension:addGeneral(ganning)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["ganning"] = "甘宁",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local lvmeng = General:new(extension, "lvmeng", "wu", 4)
|
|
|
|
extension:addGeneral(lvmeng)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["lvmeng"] = "吕蒙",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local huanggai = General:new(extension, "huanggai", "wu", 4)
|
|
|
|
extension:addGeneral(huanggai)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["huanggai"] = "黄盖",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local zhouyu = General:new(extension, "zhouyu", "wu", 3)
|
|
|
|
extension:addGeneral(zhouyu)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["zhouyu"] = "周瑜",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local daqiao = General:new(extension, "daqiao", "wu", 3)
|
|
|
|
extension:addGeneral(daqiao)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["daqiao"] = "大乔",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local luxun = General:new(extension, "luxun", "wu", 3)
|
|
|
|
extension:addGeneral(luxun)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["luxun"] = "陆逊",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local sunshangxiang = General:new(extension, "sunshangxiang", "wu", 3)
|
|
|
|
extension:addGeneral(sunshangxiang)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["sunshangxiang"] = "孙尚香",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local huatuo = General:new(extension, "huatuo", "qun", 3)
|
|
|
|
extension:addGeneral(huatuo)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["huatuo"] = "华佗",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local lvbu = General:new(extension, "lvbu", "qun", 4)
|
|
|
|
extension:addGeneral(lvbu)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["lvbu"] = "吕布",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local diaochan = General:new(extension, "diaochan", "qun", 3)
|
|
|
|
extension:addGeneral(diaochan)
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["diaochan"] = "貂蝉",
|
2022-03-28 14:24:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return extension
|