【fix】面板文字跟随倍数调整
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -21,9 +21,6 @@ const AUTO_TIMES : any[] = [
|
||||
"10",
|
||||
]
|
||||
|
||||
/** 默认消耗 */
|
||||
const DEFAULT_COST = 100
|
||||
|
||||
@ccclass('PageMain')
|
||||
export class PageMain extends BaseView {
|
||||
/** 声音按钮 */
|
||||
@@ -235,10 +232,8 @@ export class PageMain extends BaseView {
|
||||
}
|
||||
this._is_continuous = true
|
||||
this.hideSelectTimes()
|
||||
if (USERDATA.coin >= this._ante_data[this._ante_index].mult * DEFAULT_COST){
|
||||
this.btnGameStart()
|
||||
Tools.ActChild(this.btn_auto, "lab", false)
|
||||
}
|
||||
Tools.ActChild(this.btn_auto, "lab", false)
|
||||
this.btnGameStart()
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -346,7 +341,7 @@ export class PageMain extends BaseView {
|
||||
this._game_data = res
|
||||
this._move_dir = res.direction
|
||||
|
||||
USERDATA.coin -= this._ante_data[this._ante_index].mult * DEFAULT_COST
|
||||
USERDATA.coin -= res.use_coin
|
||||
this.initUserData()
|
||||
|
||||
let steps = 0
|
||||
@@ -435,6 +430,7 @@ export class PageMain extends BaseView {
|
||||
}
|
||||
},()=>{
|
||||
this._is_playing = false
|
||||
this.resetStopGame()
|
||||
})
|
||||
}
|
||||
|
||||
@@ -557,10 +553,10 @@ export class PageMain extends BaseView {
|
||||
lab.destroy()
|
||||
USERDATA.coin = this._game_data.coin
|
||||
this.initUserData()
|
||||
if (USERDATA.coin >= this._ante_data[this._ante_index].mult * DEFAULT_COST && (this._now_rest_times > 0 || this._now_rest_times == -1)){
|
||||
if (this._now_rest_times > 0 || this._now_rest_times == -1){
|
||||
this.btnGameStart()
|
||||
}else{
|
||||
|
||||
this.resetStopGame()
|
||||
}
|
||||
}
|
||||
// T5是再来一次,不需要飘字
|
||||
|
||||
Reference in New Issue
Block a user