This commit is contained in:
DESKTOP-C7UTUBQ\32064 2023-09-23 13:48:09 +08:00
parent 3767ab6f8a
commit 1f446fa9b8
4 changed files with 1136 additions and 1130 deletions

View File

@ -3,3 +3,4 @@
AI = require "server.ai.ai"
TrustAI = require "server.ai.trust_ai"
RandomAI = require "server.ai.random_ai"
SmartAI = require "server.ai.smart_ai"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,7 @@ function ServerPlayer:initialize(_self)
self._prelighted_skills = {}
self._timewaste_count = 0
self.ai = TrustAI:new(self)
self.ai = SmartAI:new(self)
end
---@param command string
@ -854,7 +854,8 @@ function ServerPlayer:revealGeneral(isDeputy, no_trigger)
local ret = true
if not ((isDeputy and self.general ~= "anjiang") or (not isDeputy and self.deputyGeneral ~= "anjiang")) then
local other = Fk.generals[self:getMark(isDeputy and "__heg_general" or "__heg_deputy")] or Fk.generals["blank_shibing"]
local other = Fk.generals[self:getMark(isDeputy and "__heg_general" or "__heg_deputy")] or
Fk.generals["blank_shibing"]
for _, sname in ipairs(other:getSkillNameList()) do
local s = Fk.skills[sname]
if s.frequency == Skill.Compulsory and s.relate_to_place ~= (isDeputy and "m" or "d") then
@ -961,6 +962,7 @@ function ServerPlayer:hideGeneral(isDeputy)
room.logic:trigger(fk.GeneralHidden, room, generalName)
end
-- 神貂蝉
---@param p ServerPlayer