20 lines
		
	
	
		
			631 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			631 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from functools import cached_property
 | 
						|
 | 
						|
from .base_logic import BaseLogic, BaseLogicMixin
 | 
						|
from ..stardew_rule import StardewRule
 | 
						|
from ..strings.animal_product_names import AnimalProduct
 | 
						|
from ..strings.gift_names import Gift
 | 
						|
 | 
						|
 | 
						|
class GiftLogicMixin(BaseLogicMixin):
 | 
						|
    def __init__(self, *args, **kwargs):
 | 
						|
        super().__init__(*args, **kwargs)
 | 
						|
        self.gifts = GiftLogic(*args, **kwargs)
 | 
						|
 | 
						|
 | 
						|
class GiftLogic(BaseLogic):
 | 
						|
 | 
						|
    @cached_property
 | 
						|
    def has_any_universal_love(self) -> StardewRule:
 | 
						|
        return self.logic.has_any(Gift.golden_pumpkin, Gift.pearl, "Prismatic Shard", AnimalProduct.rabbit_foot)
 |