1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-29 12:47:13 +08:00

Fix: Missing attribute _shop_gold_coins in RewardShipyard and RewardGacha

This commit is contained in:
LmeSzinc
2022-06-07 00:34:50 +08:00
parent ec32260455
commit 405d349519
2 changed files with 5 additions and 5 deletions

View File

@@ -108,7 +108,7 @@ class RewardGacha(GachaUI, GeneralShop, Retirement):
break
# Insufficient resources, reduce by 1 and re-calculate
if gold_total > self._shop_gold_coins or cube_total > self.build_cube_count:
if gold_total > self._currency or cube_total > self.build_cube_count:
target_count -= 1
continue
@@ -116,7 +116,7 @@ class RewardGacha(GachaUI, GeneralShop, Retirement):
# Modify resources, return current 'target_count'
logger.info(f'Able to submit up to {target_count} build orders')
self._shop_gold_coins -= gold_total
self._currency -= gold_total
self.build_cube_count -= cube_total
return target_count