Commit e040cab4 authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

parent 157d8d61
......@@ -238,7 +238,7 @@ Page({
roomdata: roomdata,
attionlist: [],
showattionlist: [],
canwin: canwin,
canwin: false,//canwin,
isfirst: true,
gametime: gameatime,
tooltime: tooltime,
......@@ -271,9 +271,10 @@ Page({
let attiontxt1 = "游戏开始啦,共有" + this.data.roomnums + "名玩家加入游戏,快来升温队伍拿奖励吧。";
this.addAttionTxt(attiontxt1);
this.updateAct();
// setTimeout(() => {
// this.newAiControl("invite", 1);
// }, 4000);
setTimeout(() => {
this.newAiControl("task", 1,2);
this.hideSetData();
}, 4000);
},
//新ai逻辑,tool==使用道具,task==任务,invite==邀请人
async newAiControl(type = "tool", ainum = 1, aiwarm = 0) {
......@@ -924,8 +925,9 @@ Page({
})
if (success) {
const { total, invite, tool, follow, sign, collect, browseGoods } = data;
const { total, invite, tool, follow, sign, collectGoods, browseGoods } = data;
let ridx = this.data.myidx;
let collect = collectGoods;
let nwd = this.data.roomdata[ridx - 1]["wd"] || 0;
if (total > nwd) {
this.updateRolewd(ridx, total);
......@@ -1393,7 +1395,7 @@ Page({
step: step,
roomnums: roomnums,
roomdata: roomdata,
canwin: canwin,
canwin: false,//canwin,
gametime: 0,
gametimeshow: this.changeshowtime(0),
tooltime: tooltime,
......@@ -1422,7 +1424,7 @@ Page({
step: step,
roomnums: roomnums,
roomdata: roomdata,
canwin: canwin,
canwin: false,//canwin,
gametime: gameatime,
gametimeshow: this.changeshowtime(gameatime),
tooltime: tooltime,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment