诸侯混战:周六取消自动宣战

This commit is contained in:
luying
2022-10-04 20:18:37 +08:00
parent e4a8b9a80c
commit 27a8abc729
2 changed files with 5 additions and 6 deletions

View File

@@ -456,7 +456,9 @@ export async function cityActivitySettleReward(cityId: number, serverId: number)
if (guildRank == 1) {
if (isSuccess) {
await GuildActivityCityModel.guard(serverId, cityId, guildCode, name, index + 1); // 占领
await declareCity(serverId, "", guildCode, dicCity.nextCity, true, index + 1);
if(getCurDay(true) != 6) {
await declareCity(serverId, "", guildCode, dicCity.nextCity, true, index + 1);
}
} else {
await GuildActivityCityModel.guard(serverId, cityId, "", "", index + 1); // 无人能占领
}
@@ -500,7 +502,7 @@ export async function cityActivitySettleReward(cityId: number, serverId: number)
}
}
export async function autoDeclare(serverId: number) {
export async function autoDeclare() {
for(let [ cityId ] of gameData.cityActivity) {
let msg = { cityId, declareGuildCode: "", declareCount: 0 };
await sendMessageToCityWithSuc(cityId, PUSH_ROUTE.GUILD_CITY_DECLARE, msg);