收尾(
总之就是各种bugfix
This commit is contained in:
YoumuKon 2023-06-16 18:01:51 +08:00 committed by GitHub
parent 02e22024f2
commit 7ccafa3b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -383,7 +383,7 @@ function ActiveSkillPrompt(skill_name, selected, selected_targets)
ret = skill.prompt
end
end
return json.encode(ret)
return json.encode(ret or "")
end
function ActiveCardFilter(skill_name, to_select, selected, selected_targets)

View File

@ -41,6 +41,6 @@ function ViewAsSkill:beforeUse(player, cardUseStruct) end
---@param selected integer[] @ ids of selected players
---@param selected_cards integer[] @ ids of selected cards
function ActiveSkill:prompt(selected, selected_cards) return "" end
function ViewAsSkill:prompt(selected, selected_cards) return "" end
return ViewAsSkill

View File

@ -5,6 +5,7 @@ local extension = Package("test_p_0")
local cheat = fk.CreateActiveSkill{
name = "cheat",
anim_type = "drawcard",
prompt = "#cheat",
can_use = function(self, player)
return true
end,
@ -122,6 +123,7 @@ local control = fk.CreateActiveSkill{
local test_vs = fk.CreateViewAsSkill{
name = "test_vs",
pattern = "nullification",
prompt = "#test_vs",
card_filter = function(self, to_select, selected)
return #selected == 0
end,
@ -150,7 +152,6 @@ local test_vs = fk.CreateViewAsSkill{
c:addSubcard(cards[1])
return c
end,
prompt = "#test_vs",
}
local test_trig = fk.CreateTriggerSkill{
name = "test_trig",
@ -275,6 +276,7 @@ Fk:loadTranslationTable{
["mouxusheng"] = "谋徐盛",
-- ["cheat"] = "小开",
[":cheat"] = "出牌阶段,你可以获得一张想要的牌。",
["#cheat"] = "cheat你可以获得一张想要的牌",
--["#test_trig-ask"] = "你可弃置一张手牌",
["control"] = "控制",
[":control"] = "出牌阶段,你可以控制/解除控制若干名其他角色。",