This commit is contained in:
parent
3767ab6f8a
commit
1f446fa9b8
|
@ -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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue