Explorar el Código

存钱罐可提现状态,不能增加存钱罐金额

薛鸿潇 hace 5 años
padre
commit
dd7350c021
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      assets/script/game/data/GameData.ts

+ 1 - 0
assets/script/game/data/GameData.ts

@@ -264,6 +264,7 @@ class PlayerProp {
     /** 存钱罐存款 */
     /** 存钱罐存款 */
     set piggyBank(value: number) {
     set piggyBank(value: number) {
         if (this._piggyBank === value) return;
         if (this._piggyBank === value) return;
+        if (gData.gameData.gameData.isWithdrawable && value > 0) return;// 存钱罐可提现状态,不能增加存钱罐金额
         this._piggyBank = value;
         this._piggyBank = value;
         gData.gameData.init_coin = true;
         gData.gameData.init_coin = true;
         gData.pigbank.init_data = true;
         gData.pigbank.init_data = true;