军团活动:结算逻辑修改

This commit is contained in:
luying
2021-10-09 13:16:35 +08:00
parent 04060acd79
commit fe4a34a67e
13 changed files with 1379 additions and 30 deletions

View File

@@ -60,6 +60,8 @@ export default class GuildActivityRecord extends BaseModel {
@prop({ required: true, type: () => Event, _id: false })
events: Event[]; // 粮草先行木马
@prop({ required: true, default: false })
hasShow: boolean; // 是否胜利
// 每天一条记录
public static async getRecord(guildCode: string, serverId: number, aid: number, events?: Event[]) {

View File

@@ -77,6 +77,7 @@ export class WoodenHorse {
if(this.distance >= GUILDACTIVITY.RACEACTIVITY_LENGTH) {
this.distance = GUILDACTIVITY.RACEACTIVITY_LENGTH;
this.status = RACE_ACTIVITY_STATUS.END;
this.speed = 0;
return true;
}

View File

@@ -105,7 +105,7 @@ export const GUILDACTIVITY = {
RACEACTIVITY_NORMAL_ITEMS: '1&8&15|3&5&10|5&0&1', // 粮草先行普通道具
RACEACTIVITY_EVENT_MEMBERCNT: 3, // 粮草先行随机道具获得人数
RACEACTIVITY_EVENT_ITEMS: '2&1|4&1|6&1', // 粮草先行根据事件随机人可获得道具
RACE_INIT_SPEED: 2, // 粮草先行军团初始速度
RACE_INIT_SPEED: 20, // 粮草先行军团初始速度
RACE_PER_SPEED: 0.1, // 粮草先行军团每人参加增速
};
export const GUILD_AUCTION = {