mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
20 lines
645 B
Python
20 lines
645 B
Python
![]() |
from .base_logic import BaseLogic, BaseLogicMixin
|
||
|
from .received_logic import ReceivedLogicMixin
|
||
|
from ..stardew_rule import StardewRule
|
||
|
from ..strings.wallet_item_names import Wallet
|
||
|
|
||
|
|
||
|
class WalletLogicMixin(BaseLogicMixin):
|
||
|
def __init__(self, *args, **kwargs):
|
||
|
super().__init__(*args, **kwargs)
|
||
|
self.wallet = WalletLogic(*args, **kwargs)
|
||
|
|
||
|
|
||
|
class WalletLogic(BaseLogic[ReceivedLogicMixin]):
|
||
|
|
||
|
def can_speak_dwarf(self) -> StardewRule:
|
||
|
return self.logic.received(Wallet.dwarvish_translation_guide)
|
||
|
|
||
|
def has_rusty_key(self) -> StardewRule:
|
||
|
return self.logic.received(Wallet.rusty_key)
|