From 54b00c9378c9cb16b90945fbbf21c976582ff6b6 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 29 Mar 2022 22:35:51 +0800 Subject: [PATCH] Fix: Don't refresh guild shop if coins not enough --- module/shop/shop_guild.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/module/shop/shop_guild.py b/module/shop/shop_guild.py index b94098dc1..4fb7536f2 100644 --- a/module/shop/shop_guild.py +++ b/module/shop/shop_guild.py @@ -270,6 +270,11 @@ class GuildShop(ShopBase, ShopUI): success = self.shop_buy() if not success: break - if refresh and self.shop_refresh(): - continue + if refresh: + # Refresh costs 50 and PlateT4 costs 60 + if self._shop_guild_coins >= 110: + if self.shop_refresh(): + continue + else: + logger.info('Guild coins < 110, skip refreshing') break