2 Star 0 Fork 0

该账号已注销/sashiko

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
weiwus5.lua 5.07 KB
一键复制 编辑 原始数据 按行查看 历史
该账号已注销 提交于 2025-04-22 15:36 +08:00 . fixagain
local extension=Package("sashiko_weiwus5")
extension.extensionName="sashiko"
Fk:loadTranslationTable{
["sashiko_weiwus5"]="魏武霸业S5",
}
local U = require "packages/utility/utility"
local DIY = require "packages/diy_utility/diy_utility"
-- S郭循
local s_guoxun = General(extension, "sa_guoxun", "wei", 4)
-- 〖遏前〗
local eqian = fk.CreateTriggerSkill{
name = "sa__eqian",
anim_type = "control",
events = {fk.TargetSpecified},
can_trigger = function(self, event, target, player, data)
return target == player and player:hasSkill(self) and #AimGroup:getAllTargets(data.tos) == 1 and
data.card.is_damage_card
end,
on_cost = function(self, event, target, player, data)
local room = player.room
local to = room:getPlayerById(data.to)
local choices = {"eqian_draw", "eqian_discard"}
local choice = room:askForChoice(target, choices, self.name, "#eqian-choose")
if choice then
self.cost_data = choice
return true
end
end,
on_use = function(self, event, target, player, data)
local room = player.room
local to = room:getPlayerById(data.to)
local choice = self.cost_data
if choice == "eqian_draw" then
DIY.removePlayer(to, "-turn")
room:drawCards(to, 2, self.name)
else
to:setChainState(true)
local cards = room:askForDiscard(to, 2, 2, false, self.name, false)
local card_j=table.filter(cards,function(cid) return Fk:getCardById(cid).name=="jink"end)
if #card_j==0 then
room:addPlayerMark(player, "@@sa_eqian_buff-turn", 1)
end
end
end,
}
local eqian_slashMod = fk.CreateTargetModSkill {
name = "#sa__eqian_slashMod",
frequency = Skill.Compulsory,
residue_func = function(self, player, skill, scope, card)
if player:getMark("@@sa_eqian_buff-turn") > 0
and card.trueName == "slash" and
scope == Player.HistoryPhase then
return 1
end
end,
}
local eqian_attackrange = fk.CreateAttackRangeSkill{
name = "#sa__eqian_attackrange",
correct_func = function (self, from, to)
if from:getMark("@@sa_eqian_buff-turn") > 0 then
return from:getMark("@@sa_eqian_buff-turn")
end
end,
}
eqian:addRelatedSkill(eqian_slashMod)
eqian:addRelatedSkill(eqian_attackrange)
-- 〖伏杀〗
local fusha = fk.CreateActiveSkill{
name = "sa__fusha",
anim_type = "offensive",
frequency = Skill.Limited,
can_use = function(self, player)
local n=player:getAttackRange()
local players= Fk:currentRoom().alive_players
local tar=table.filter(players,function(p) return player:distanceTo(p) <= n end) or {}
return player:usedSkillTimes(self.name, Player.HistoryGame) == 0 and #tar==1
end,
card_filter = function(self, to_select, selected)
return false
end,
target_filter = function(self, to_select, selected, selected_cards, _, _, player)
if #selected > 0 then return false end
local n=player:getAttackRange()
local players= Fk:currentRoom():getOtherPlayers(player)
local tar=table.filter(players,function(p) return player:distanceTo(p) <= n end)
return player:distanceTo(to_select) <= n
end,
target_num = 1,
on_use = function(self, room, effect)
local player = room:getPlayerById(effect.from)
local target = effect.tos and #effect.tos > 0 and room:getPlayerById(effect.tos[1]) or player
local range = player:getAttackRange()
room:damage({
from = player,
to = target,
damage = range,
skillName = self.name,
})
end,
}
s_guoxun:addSkill(eqian)
s_guoxun:addSkill(fusha)
Fk:loadTranslationTable{
["sa_guoxun"] = "<font color='#FF83FA'>S</font>郭循",
["#sa_guoxun"] = "秉心不回",
["illustrator:sa_guoxun"] = "鬼画府",
["designer:sa_guoxun"] = "Sachiko",
["sa__eqian"] = "遏前",
[":sa__eqian"] = "当你使用伤害牌指定唯一目标后,你可以令其抉择:①调离并令你摸两张牌;②其横置并弃两张牌。然后若其中没有【闪】,则你本回合的攻击范围和使用【杀】的次数+1。",
["@@sa_eqian_buff-turn"] = "遏前 强化",
["eqian_draw"] = "调离并摸两张牌",
["eqian_discard"] = "横置并弃两张牌",
["#eqian-choose"] = "遏前:请选择一项",
["sa__eqian_slashMod"] = "遏前",
["sa__eqian_attackrange"] = "遏前",
["sa__fusha"] = "伏杀",
[":sa__fusha"] = "限定技,出牌阶段,你可以对攻击范围内唯一的角色造成X点伤害(X为你的攻击范围)。",
["@eqian_range"] = "遏前-攻击范围",
["@eqian_slash"] = "遏前-杀次数",
}
--[[
角色:S郭循
体力:4
势力:魏
称号:秉心不回
分包:Sachikoの魔盒
分组:魏武霸业S5
◆注:上述的这个分组需要先创建。
画师:鬼画府
配音:官方
设计:Sachiko
〖遏前〗:当你使用伤害牌指定唯一目标后,你可以令其抉择:①调离并令你摸两张牌;②其横置并弃两张牌。然后若其中没有【闪】,则你本回合的攻击范围和使用【杀】的次数+1。
〖伏杀〗:限定技,出牌阶段,你可以对攻击范围内唯一的角色造成X点伤害(X为你的攻击范围)。
--]]
return extension
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ssrzzy/sashiko.git
git@gitee.com:ssrzzy/sashiko.git
ssrzzy
sashiko
sashiko
master

搜索帮助