Prechádzať zdrojové kódy

修改bug: 宝藏子游戏倍数显示

zhaoyu_ma 4 mesiacov pred
rodič
commit
94a509e10a

+ 2 - 2
luckypot_sp/assets/SubGame/TREASURE/script/TreasureSmallPanel.js

@@ -160,7 +160,7 @@ cc.Class({
                 .repeatForever()
                 .start()
         }
-        this.totalTimes = 0;
+        this.totalTimes = 1;
         let preDel = 0.3;
         cc.tween(this.node)
             .delay(3.6)
@@ -197,7 +197,7 @@ cc.Class({
 
         let yy = rollbg.y;
         let desIdx = Math.floor(yy/-this.sizec/1.2);
-        this.totalTimes += this.iconTimes[this._rollResultData[idx]];
+        this.totalTimes *= this.iconTimes[this._rollResultData[idx]];
         let val = GameProtocol.NORMAL_ITEM_COUNT + this._rollResultData[idx];
         this.elementJS[idx][desIdx+2].setValue(val, this.gameMainJS.getItemSpineData(val), false);
         let dy = (desIdx+2)*-this.sizec*1.2;