2022-03-31 05:29:23 +00:00
|
|
|
local extension = Package:new("standard_cards", Package.CardPack)
|
|
|
|
extension.metadata = require "packages.standard_cards.metadata"
|
|
|
|
|
2022-04-15 10:37:20 +00:00
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["standard_cards"] = "标+EX"
|
2022-04-15 10:37:20 +00:00
|
|
|
}
|
|
|
|
|
2022-12-18 04:52:52 +00:00
|
|
|
local slashSkill = fk.CreateActiveSkill{
|
|
|
|
name = "slash_skill",
|
2022-12-20 04:51:54 +00:00
|
|
|
can_use = function(self, player)
|
|
|
|
-- TODO: tmd skill
|
|
|
|
return player:usedTimes("slash") < 1
|
|
|
|
end,
|
2022-12-18 04:52:52 +00:00
|
|
|
target_filter = function(self, to_select, selected)
|
|
|
|
if #selected == 0 then
|
|
|
|
local player = Fk:currentRoom():getPlayerById(to_select)
|
2022-12-20 04:51:54 +00:00
|
|
|
return Self ~= player and Self:inMyAttackRange(player)
|
2022-12-18 04:52:52 +00:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
feasible = function(self, selected)
|
2022-12-20 04:51:54 +00:00
|
|
|
-- TODO: tmd
|
2022-12-18 04:52:52 +00:00
|
|
|
return #selected == 1
|
|
|
|
end,
|
|
|
|
on_effect = function(self, room, effect)
|
|
|
|
local to = effect.to
|
|
|
|
local from = effect.from
|
2022-12-20 04:51:54 +00:00
|
|
|
|
|
|
|
room:damage({
|
|
|
|
from = from,
|
|
|
|
to = to,
|
|
|
|
damage = 1,
|
|
|
|
damageType = fk.NormalDamage,
|
|
|
|
skillName = self.name
|
|
|
|
})
|
2022-12-18 04:52:52 +00:00
|
|
|
end
|
|
|
|
}
|
2022-03-31 05:29:23 +00:00
|
|
|
local slash = fk.CreateBasicCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "slash",
|
|
|
|
number = 7,
|
|
|
|
suit = Card.Spade,
|
2022-12-18 04:52:52 +00:00
|
|
|
skill = slashSkill,
|
2022-04-30 07:27:56 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
|
|
|
["slash"] = "杀",
|
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
|
|
|
slash,
|
|
|
|
slash:clone(Card.Spade, 8),
|
|
|
|
slash:clone(Card.Spade, 8),
|
|
|
|
slash:clone(Card.Spade, 9),
|
|
|
|
slash:clone(Card.Spade, 9),
|
|
|
|
slash:clone(Card.Spade, 10),
|
|
|
|
slash:clone(Card.Spade, 10),
|
|
|
|
|
|
|
|
slash:clone(Card.Club, 2),
|
|
|
|
slash:clone(Card.Club, 3),
|
|
|
|
slash:clone(Card.Club, 4),
|
|
|
|
slash:clone(Card.Club, 5),
|
|
|
|
slash:clone(Card.Club, 6),
|
|
|
|
slash:clone(Card.Club, 7),
|
|
|
|
slash:clone(Card.Club, 8),
|
|
|
|
slash:clone(Card.Club, 8),
|
|
|
|
slash:clone(Card.Club, 9),
|
|
|
|
slash:clone(Card.Club, 9),
|
|
|
|
slash:clone(Card.Club, 10),
|
|
|
|
slash:clone(Card.Club, 10),
|
|
|
|
slash:clone(Card.Club, 11),
|
|
|
|
slash:clone(Card.Club, 11),
|
|
|
|
|
|
|
|
slash:clone(Card.Heart, 10),
|
|
|
|
slash:clone(Card.Heart, 10),
|
|
|
|
slash:clone(Card.Heart, 11),
|
|
|
|
|
|
|
|
slash:clone(Card.Diamond, 6),
|
|
|
|
slash:clone(Card.Diamond, 7),
|
|
|
|
slash:clone(Card.Diamond, 8),
|
|
|
|
slash:clone(Card.Diamond, 9),
|
|
|
|
slash:clone(Card.Diamond, 10),
|
|
|
|
slash:clone(Card.Diamond, 13),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
2022-12-18 04:52:52 +00:00
|
|
|
local jinkSkill = fk.CreateActiveSkill{
|
|
|
|
name = "jink_skill",
|
2022-12-18 13:19:35 +00:00
|
|
|
can_use = function()
|
|
|
|
return false
|
|
|
|
end,
|
2022-12-18 04:52:52 +00:00
|
|
|
on_effect = function(self, room, effect)
|
|
|
|
if effect.responseToEvent then
|
|
|
|
effect.responseToEvent.isCancellOut = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
}
|
2022-04-08 10:39:58 +00:00
|
|
|
local jink = fk.CreateBasicCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "jink",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 2,
|
2022-12-18 04:52:52 +00:00
|
|
|
skill = jinkSkill,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["jink"] = "闪",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
jink,
|
|
|
|
jink:clone(Card.Heart, 2),
|
|
|
|
jink:clone(Card.Heart, 13),
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
jink:clone(Card.Diamond, 2),
|
|
|
|
jink:clone(Card.Diamond, 2),
|
|
|
|
jink:clone(Card.Diamond, 3),
|
|
|
|
jink:clone(Card.Diamond, 4),
|
|
|
|
jink:clone(Card.Diamond, 5),
|
|
|
|
jink:clone(Card.Diamond, 6),
|
|
|
|
jink:clone(Card.Diamond, 7),
|
|
|
|
jink:clone(Card.Diamond, 8),
|
|
|
|
jink:clone(Card.Diamond, 9),
|
|
|
|
jink:clone(Card.Diamond, 10),
|
|
|
|
jink:clone(Card.Diamond, 11),
|
|
|
|
jink:clone(Card.Diamond, 11),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
2022-12-20 04:51:54 +00:00
|
|
|
local peachSkill = fk.CreateActiveSkill{
|
|
|
|
name = "peach_skill",
|
|
|
|
can_use = function(self, player)
|
|
|
|
return player:isWounded()
|
|
|
|
end,
|
2022-12-20 10:40:17 +00:00
|
|
|
on_use = function(self, room, use)
|
|
|
|
if not use.tos or #TargetGroup:getRealTargets(use.tos) == 0 then
|
|
|
|
use.tos = { { use.from } }
|
|
|
|
end
|
|
|
|
end,
|
2022-12-20 04:51:54 +00:00
|
|
|
on_effect = function(self, room, effect)
|
|
|
|
local to = effect.to
|
|
|
|
local from = effect.from
|
|
|
|
|
|
|
|
room:recover{
|
|
|
|
who = to,
|
|
|
|
num = 1,
|
|
|
|
recoverBy = from,
|
|
|
|
skillName = self.name
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}
|
2022-04-08 10:39:58 +00:00
|
|
|
local peach = fk.CreateBasicCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "peach",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 3,
|
2022-12-20 04:51:54 +00:00
|
|
|
skill = peachSkill,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["peach"] = "桃",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
peach,
|
|
|
|
peach:clone(Card.Heart, 4),
|
|
|
|
peach:clone(Card.Heart, 6),
|
|
|
|
peach:clone(Card.Heart, 7),
|
|
|
|
peach:clone(Card.Heart, 8),
|
|
|
|
peach:clone(Card.Heart, 9),
|
|
|
|
peach:clone(Card.Heart, 12),
|
|
|
|
peach:clone(Card.Heart, 12),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local dismantlement = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "dismantlement",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 3,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["dismantlement"] = "过河拆桥",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
dismantlement,
|
|
|
|
dismantlement:clone(Card.Spade, 4),
|
|
|
|
dismantlement:clone(Card.Spade, 12),
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
dismantlement:clone(Card.Club, 3),
|
|
|
|
dismantlement:clone(Card.Club, 4),
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
dismantlement:clone(Card.Heart, 12),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
2022-09-14 05:01:10 +00:00
|
|
|
local snatchSkill = fk.CreateActiveSkill{
|
|
|
|
name = "snatch_skill",
|
|
|
|
target_filter = function(self, to_select, selected)
|
|
|
|
if #selected == 0 then
|
|
|
|
local player = Fk:currentRoom():getPlayerById(to_select)
|
|
|
|
return Self ~= player and Self:distanceTo(player) <= 1
|
|
|
|
and not player:isAllNude()
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
feasible = function(self, selected)
|
|
|
|
return #selected == 1
|
|
|
|
end,
|
|
|
|
on_effect = function(self, room, effect)
|
2022-12-18 04:52:52 +00:00
|
|
|
local to = effect.to
|
2022-09-14 05:01:10 +00:00
|
|
|
local from = effect.from
|
|
|
|
local cid = room:askForCardChosen(
|
|
|
|
room:getPlayerById(from),
|
|
|
|
room:getPlayerById(to),
|
|
|
|
"hej",
|
|
|
|
"snatch"
|
|
|
|
)
|
|
|
|
|
|
|
|
room:obtainCard(from, cid)
|
|
|
|
end
|
|
|
|
}
|
2022-04-08 10:39:58 +00:00
|
|
|
local snatch = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "snatch",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 3,
|
2022-09-14 05:01:10 +00:00
|
|
|
skill = snatchSkill,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["snatch"] = "顺手牵羊",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
snatch,
|
|
|
|
snatch:clone(Card.Spade, 4),
|
|
|
|
snatch:clone(Card.Spade, 11),
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
snatch:clone(Card.Diamond, 3),
|
|
|
|
snatch:clone(Card.Diamond, 4),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local duel = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "duel",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 1,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["duel"] = "决斗",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
duel,
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
duel:clone(Card.Club, 1),
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
duel:clone(Card.Diamond, 1),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local collateral = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "collateral",
|
|
|
|
suit = Card.Club,
|
|
|
|
number = 12,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["collateral"] = "借刀杀人",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
collateral,
|
|
|
|
collateral:clone(Card.Club, 13),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
local exNihiloSkill = fk.CreateActiveSkill{
|
|
|
|
name = "ex_nihilo_skill",
|
|
|
|
on_use = function(self, room, cardUseEvent)
|
|
|
|
if not cardUseEvent.tos or #TargetGroup:getRealTargets(cardUseEvent.tos) == 0 then
|
|
|
|
cardUseEvent.tos = { { cardUseEvent.from } }
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
on_effect = function(self, room, cardEffectEvent)
|
2022-12-18 04:52:52 +00:00
|
|
|
room:drawCards(room:getPlayerById(cardEffectEvent.to), 2, "ex_nihilo")
|
2022-04-30 07:27:56 +00:00
|
|
|
end
|
|
|
|
}
|
|
|
|
|
2022-04-08 10:39:58 +00:00
|
|
|
local exNihilo = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "ex_nihilo",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 7,
|
|
|
|
skill = exNihiloSkill,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["ex_nihilo"] = "无中生有",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
exNihilo,
|
|
|
|
exNihilo:clone(Card.Heart, 8),
|
|
|
|
exNihilo:clone(Card.Heart, 9),
|
|
|
|
exNihilo:clone(Card.Heart, 11),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
2022-12-18 04:52:52 +00:00
|
|
|
local nullificationSkill = fk.CreateActiveSkill{
|
|
|
|
name = "nullification_skill",
|
2022-12-20 04:51:54 +00:00
|
|
|
can_use = function()
|
|
|
|
return false
|
|
|
|
end,
|
2022-12-18 04:52:52 +00:00
|
|
|
on_effect = function(self, room, effect)
|
|
|
|
if effect.responseToEvent then
|
|
|
|
effect.responseToEvent.isCancellOut = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
}
|
2022-04-08 10:39:58 +00:00
|
|
|
local nullification = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "nullification",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 11,
|
2022-12-18 04:52:52 +00:00
|
|
|
skill = nullificationSkill,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["nullification"] = "无懈可击",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
nullification,
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
nullification:clone(Card.Club, 12),
|
|
|
|
nullification:clone(Card.Club, 13),
|
2022-04-08 10:39:58 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
nullification:clone(Card.Diamond, 12),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local savageAssault = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "savage_assault",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 7,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["savage_assault"] = "南蛮入侵",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
savageAssault,
|
|
|
|
savageAssault:clone(Card.Spade, 13),
|
|
|
|
savageAssault:clone(Card.Club, 7),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local archeryAttack = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "archery_attack",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 1,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["archery_attack"] = "万箭齐发",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
archeryAttack,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local godSalvation = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "god_salvation",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 1,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["god_salvation"] = "桃园结义",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
godSalvation,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local amazingGrace = fk.CreateTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "amazing_grace",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 3,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["amazing_grace"] = "五谷丰登",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
amazingGrace,
|
|
|
|
amazingGrace:clone(Card.Heart, 4),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
2022-12-20 10:40:17 +00:00
|
|
|
local lightningSkill = fk.CreateActiveSkill{
|
|
|
|
name = "lightning_skill",
|
|
|
|
can_use = function(self, player)
|
|
|
|
local judge = player:getCardIds(Player.Judge)
|
|
|
|
for _, id in ipairs(judge) do
|
|
|
|
local cd = Fk:getCardById(id)
|
|
|
|
if cd.name == "lightning" then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return true
|
|
|
|
end,
|
|
|
|
on_use = function(self, room, use)
|
|
|
|
if not use.tos or #TargetGroup:getRealTargets(use.tos) == 0 then
|
|
|
|
use.tos = { { use.from } }
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
on_effect = function(self, room, effect)
|
|
|
|
local to = room:getPlayerById(effect.to)
|
|
|
|
local judge = {
|
|
|
|
who = to,
|
|
|
|
reason = "lightning",
|
|
|
|
}
|
|
|
|
room:judge(judge)
|
|
|
|
local result = judge.card
|
|
|
|
if result.suit == Card.Spade and result.number >= 2 and result.number <= 9 then
|
|
|
|
room:damage{
|
|
|
|
to = to.id,
|
|
|
|
damage = 3,
|
|
|
|
damageType = fk.ThunderDamage,
|
|
|
|
skillName = self.name,
|
|
|
|
}
|
|
|
|
|
|
|
|
room:moveCards{
|
|
|
|
ids = { effect.cardId },
|
|
|
|
toArea = Card.DiscardPile,
|
|
|
|
moveReason = fk.ReasonPutIntoDiscardPile
|
|
|
|
}
|
|
|
|
else
|
|
|
|
self:onNullified(room, effect)
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
on_nullified = function(self, room, effect)
|
|
|
|
local to = room:getPlayerById(effect.to)
|
|
|
|
local nextp = to:getNextAlive()
|
|
|
|
room:moveCards{
|
|
|
|
ids = { effect.cardId },
|
|
|
|
to = nextp.id,
|
|
|
|
toArea = Card.PlayerJudge,
|
|
|
|
moveReason = fk.ReasonPut
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
}
|
2022-04-08 10:39:58 +00:00
|
|
|
local lightning = fk.CreateDelayedTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "lightning",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 1,
|
2022-12-20 10:40:17 +00:00
|
|
|
skill = lightningSkill,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["lightning"] = "闪电",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
lightning,
|
|
|
|
lightning:clone(Card.Heart, 12),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
2022-12-20 10:40:17 +00:00
|
|
|
local indulgenceSkill = fk.CreateActiveSkill{
|
|
|
|
name = "indulgence_skill",
|
|
|
|
target_filter = function(self, to_select, selected)
|
|
|
|
if #selected == 0 then
|
|
|
|
local player = Fk:currentRoom():getPlayerById(to_select)
|
|
|
|
if Self ~= player then
|
|
|
|
local judge = player:getCardIds(Player.Judge)
|
|
|
|
for _, id in ipairs(judge) do
|
|
|
|
local cd = Fk:getCardById(id)
|
|
|
|
if cd.name == "indulgence" then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return false
|
|
|
|
end,
|
|
|
|
feasible = function(self, selected)
|
|
|
|
return #selected == 1
|
|
|
|
end,
|
|
|
|
on_effect = function(self, room, effect)
|
|
|
|
local to = room:getPlayerById(effect.to)
|
|
|
|
local judge = {
|
|
|
|
who = to,
|
|
|
|
reason = "indulgence",
|
|
|
|
}
|
|
|
|
room:judge(judge)
|
|
|
|
local result = judge.card
|
|
|
|
if result.suit ~= Card.Heart then
|
|
|
|
to:skip(Player.Play)
|
|
|
|
end
|
|
|
|
self:onNullified(room, effect)
|
|
|
|
end,
|
|
|
|
on_nullified = function(self, room, effect)
|
|
|
|
room:moveCards{
|
|
|
|
ids = { effect.cardId },
|
|
|
|
toArea = Card.DiscardPile,
|
|
|
|
moveReason = fk.ReasonPutIntoDiscardPile
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
}
|
2022-04-08 10:39:58 +00:00
|
|
|
local indulgence = fk.CreateDelayedTrickCard{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "indulgence",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 6,
|
2022-12-20 10:40:17 +00:00
|
|
|
skill = indulgenceSkill,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["indulgence"] = "乐不思蜀",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
indulgence,
|
|
|
|
indulgence:clone(Card.Club, 6),
|
|
|
|
indulgence:clone(Card.Heart, 6),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local crossbow = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "crossbow",
|
|
|
|
suit = Card.Club,
|
|
|
|
number = 1,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 1,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["crossbow"] = "诸葛连弩",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
crossbow,
|
|
|
|
crossbow:clone(Card.Diamond, 1),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local qingGang = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "qinggang_sword",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 6,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 2,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["qinggang_sword"] = "青釭剑",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
qingGang,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local iceSword = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "ice_sword",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 2,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 2,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["ice_sword"] = "寒冰剑",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
iceSword,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local doubleSwords = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "double_swords",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 2,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 2,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["double_swords"] = "雌雄双股剑",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
doubleSwords,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local blade = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "blade",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 5,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 3,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["blade"] = "青龙偃月刀",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
blade,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local spear = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "spear",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 12,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 3,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["spear"] = "丈八蛇矛",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
spear,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local axe = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "axe",
|
|
|
|
suit = Card.Diamond,
|
|
|
|
number = 5,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 3,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["axe"] = "贯石斧",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
axe,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local halberd = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "halberd",
|
|
|
|
suit = Card.Diamond,
|
|
|
|
number = 12,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 4,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["halberd"] = "方天画戟",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
halberd,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local kylinBow = fk.CreateWeapon{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "kylin_bow",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 5,
|
2022-12-20 04:51:54 +00:00
|
|
|
attack_range = 5,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["kylin_bow"] = "麒麟弓",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
kylinBow,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local eightDiagram = fk.CreateArmor{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "eight_diagram",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 2,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["eight_diagram"] = "八卦阵",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
eightDiagram,
|
|
|
|
eightDiagram:clone(Card.Club, 2),
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local niohShield = fk.CreateArmor{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "nioh_shield",
|
|
|
|
suit = Card.Club,
|
|
|
|
number = 2,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["nioh_shield"] = "仁王盾",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
niohShield,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local diLu = fk.CreateDefensiveRide{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "dilu",
|
|
|
|
suit = Card.Club,
|
|
|
|
number = 5,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["dilu"] = "的卢",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
diLu,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local jueYing = fk.CreateDefensiveRide{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "jueying",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 5,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["jueying"] = "绝影",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
jueYing,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local zhuaHuangFeiDian = fk.CreateDefensiveRide{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "zhuahuangfeidian",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 13,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["zhuahuangfeidian"] = "爪黄飞电",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
zhuaHuangFeiDian,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local chiTu = fk.CreateOffensiveRide{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "chitu",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 5,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["chitu"] = "赤兔",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
chiTu,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local daYuan = fk.CreateOffensiveRide{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "dayuan",
|
|
|
|
suit = Card.Spade,
|
|
|
|
number = 13,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["dayuan"] = "大宛",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
daYuan,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
local ziXing = fk.CreateOffensiveRide{
|
2022-04-30 07:27:56 +00:00
|
|
|
name = "zixing",
|
|
|
|
suit = Card.Heart,
|
|
|
|
number = 5,
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
Fk:loadTranslationTable{
|
2022-04-30 07:27:56 +00:00
|
|
|
["zixing"] = "紫骍",
|
2022-04-08 10:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
extension:addCards({
|
2022-04-30 07:27:56 +00:00
|
|
|
ziXing,
|
2022-04-08 10:39:58 +00:00
|
|
|
})
|
2022-03-31 05:29:23 +00:00
|
|
|
|
|
|
|
return extension
|