2023-10-07 15:05:27 +00:00
|
|
|
|
require "packages.standard.ai.aux_skills"
|
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- 魏国
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
|
|
|
|
fk.ai_skill_invoke["jianxiong"] = true
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- TODO: hujia
|
|
|
|
|
-- TODO: guicai 关于如何界定判定的好坏 需要向AI中单独说明
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
fk.ai_skill_invoke["fankui"] = function(self)
|
|
|
|
|
local room = self.room
|
|
|
|
|
local logic = room.logic
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- 询问反馈时,处于on_cost环节,当前事件必是damage且有from
|
|
|
|
|
local event = logic:getCurrentEvent()
|
|
|
|
|
local dmg = event.data[1]
|
|
|
|
|
return self:isEnemy(dmg.from)
|
2023-10-06 19:22:57 +00:00
|
|
|
|
end
|
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
fk.ai_skill_invoke["ganglie"] = fk.ai_skill_invoke["fankui"]
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- TODO: tuxi
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
fk.ai_skill_invoke["luoyi"] = function(self)
|
|
|
|
|
return false
|
2023-10-06 19:22:57 +00:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
fk.ai_skill_invoke["tiandu"] = true
|
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- TODO: yiji
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
|
|
|
|
fk.ai_skill_invoke["luoshen"] = true
|
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- TODO: qingguo
|
|
|
|
|
|
|
|
|
|
-- 蜀国
|
|
|
|
|
-- TODO: rende
|
|
|
|
|
-- TODO: jijiang
|
|
|
|
|
-- TODO: wusheng
|
|
|
|
|
-- TODO: guanxing
|
|
|
|
|
-- TODO: longdan
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
fk.ai_skill_invoke["tieqi"] = function(self)
|
|
|
|
|
local room = self.room
|
|
|
|
|
local logic = room.logic
|
|
|
|
|
|
|
|
|
|
-- 询问反馈时,处于on_cost环节,当前事件必是damage且有from
|
|
|
|
|
local event = logic:getCurrentEvent()
|
|
|
|
|
local use = event.data[1] ---@type CardUseStruct
|
|
|
|
|
return table.find(use.tos, function(t)
|
|
|
|
|
return self:isEnemy(room:getPlayerById(t[1]))
|
|
|
|
|
end)
|
2023-10-06 19:22:57 +00:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
fk.ai_skill_invoke["jizhi"] = true
|
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- 吴国
|
|
|
|
|
-- TODO: zhiheng
|
|
|
|
|
-- TODO: qixi
|
|
|
|
|
|
2023-10-06 19:22:57 +00:00
|
|
|
|
fk.ai_skill_invoke["keji"] = true
|
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- TODO: kurou
|
|
|
|
|
|
2023-10-06 19:22:57 +00:00
|
|
|
|
fk.ai_skill_invoke["yingzi"] = true
|
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- TODO: fanjian
|
|
|
|
|
-- TODO: guose
|
|
|
|
|
-- TODO: liuli
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
fk.ai_skill_invoke["lianying"] = true
|
2023-10-06 19:22:57 +00:00
|
|
|
|
fk.ai_skill_invoke["xiaoji"] = true
|
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- TODO: jieyin
|
2023-10-06 19:22:57 +00:00
|
|
|
|
|
2024-02-17 01:46:48 +00:00
|
|
|
|
-- 群雄
|
|
|
|
|
-- TODO: qingnang
|
|
|
|
|
-- TODO: jijiu
|
|
|
|
|
-- TODO: wushuang
|
|
|
|
|
-- TODO: lijian
|
|
|
|
|
fk.ai_skill_invoke["biyue"] = true
|