|
@@ -20,6 +20,7 @@ export function useGame() {
|
|
|
credit: 0, // 当前积分
|
|
|
growth: 0, // 成长值
|
|
|
growthType:0, // 成长类型
|
|
|
+ growthTotal:0, // 成长类型
|
|
|
progress:0, // 当前进度
|
|
|
shiwuId:null // 上一次食物
|
|
|
})
|
|
@@ -34,10 +35,10 @@ export function useGame() {
|
|
|
return;
|
|
|
}
|
|
|
const {
|
|
|
- credit,growth,growthType,progress,shiwuId
|
|
|
+ credit,growth,growthTotal,growthType,progress,shiwuId
|
|
|
} = info;
|
|
|
-
|
|
|
data.credit = credit;
|
|
|
+ data.growthTotal = growthTotal;
|
|
|
data.growth = growth;
|
|
|
data.growthType = growthType;
|
|
|
data.progress = progress;
|
|
@@ -51,11 +52,13 @@ export function useGame() {
|
|
|
return;
|
|
|
}
|
|
|
const {
|
|
|
- credit,growth,growthType,progress,shiwuId
|
|
|
+ credit,growth,growthType,progress,shiwuId,growthTotal
|
|
|
} = info;
|
|
|
|
|
|
data.credit = credit;
|
|
|
+ data.growthTotal = growthTotal;
|
|
|
data.growthType = growthType;
|
|
|
+ data.growth = growth;
|
|
|
data.progress = progress;
|
|
|
data.shiwuId = shiwuId;
|
|
|
|