代码拉取完成,页面将自动刷新
同步操作将从 汤圆/tyj_fuyao 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
local extension = Package:new("tyj_org")
extension.extensionName = "tyj"
Fk:loadTranslationTable{
["tyj_org"] = "汤圆原创将",
["tyj"]='汤圆原创包'
}
local U = require "packages/utility/utility"
local tyj__zhangte = General:new(extension, "tyj__zhangte", "wei", 4,4)
Fk:loadTranslationTable{
["tyj__zhangte"] = "张特",
["#tyj__zhangte"] = "城筑翻降",
["designer:tyj__zhangte"] = "汤圆",
["cv:tyj__zhangte"] = "官方",
["illustrator:tyj__zhangte"] = "光城",
}
local tyj__fanzhu = fk.CreateTriggerSkill{
name = "tyj__fanzhu",
events = {fk.EventPhaseStart},
anim_type = "drawcard",
can_trigger = function(self, event, target, player, data)
if player:hasSkill(self) and target.phase == Player.Start and target:isAlive() then
return not player:isNude()
end
end,
on_cost = function(self, event, target, player, data)
local room=player.room
local cards = room:askForCard(player, 1, 999, true, self.name, true, ".", "#tyj__fanzhu-card")
if #cards > 0 then
self.cost_data=cards
return true end
end,
on_use = function(self, event, target, player, data)
local room=player.room
local cardstable={}
room:recastCard(self.cost_data, player, self.name)
for i=1,99 do
local use=U.askForUseRealCard(room, player, nil, nil, self.name,"对自己使用一张牌",{include_targets = {player.id}, bypass_times = true},true)
if use then
room:useCard(use)
table.insertIfNeed(cardstable,use.card:getSuitString(true))
else break end
end
local mark=nil
if #cardstable == 0 then
room:setPlayerMark(player,"@@tyj_fanzhu_baned-turn",1)
else
room:setPlayerMark(player,"@tyj_fanzhu_can-turn",cardstable)
local to = room:askForChoosePlayers(player, table.map(room:getOtherPlayers(player), function (p)
return p.id end), 1, 1, "翻筑:你可以令一名角色本回合不能使用这些花色的牌", self.name, true)
if #to > 0 then
to = room:getPlayerById(to[1])
room:setPlayerMark(to,"@tyj_fanzhu_cant-turn",cardstable)
end
end
end,
}
local tyj__fanzhu_prohibit = fk.CreateProhibitSkill{
name = "#tyj__fanzhu_prohibit",
prohibit_use = function(self, player, card)
return (player:getMark("@tyj_fanzhu_cant-turn") ~= 0 and table.contains(player:getMark("@tyj_fanzhu_cant-turn"), card:getSuitString(true))) or (player:getMark("@tyj_fanzhu_can-turn") ~= 0 and not table.contains(player:getMark("@tyj_fanzhu_can-turn"), card:getSuitString(true))) or player:getMark("@@tyj_fanzhu_baned-turn")~=0
end,
}
tyj__fanzhu:addRelatedSkill(tyj__fanzhu_prohibit)
tyj__zhangte:addSkill(tyj__fanzhu)
Fk:loadTranslationTable{
["tyj__fanzhu"]="翻筑",
[":tyj__fanzhu"]="一名角色的准备阶段,你可以重铸任意张牌并使用任意张牌(目标需包含你),令你本回合只能使用此次使用过的花色的牌,然后你可以令一名其他角色本回合不能使用这些花色的牌。",
["@tyj_fanzhu_can-turn"]="能使用",
["@tyj_fanzhu_cant-turn"]="不能使用",
["@@tyj_fanzhu_baned-turn"]="不能使用牌",
["#tyj__fanzhu-card"] = "翻筑:你可以重铸任意张牌",
}
return extension
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。