诸侯混战:周六取消自动宣战
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user