Пример #1
0
        // ============================ SHOP RELATED STATES ==============================

        // -------------------------------------------------------------------------------
        // OverrideShopState
        // required when accessing a shop from within a dungeon map
        // -------------------------------------------------------------------------------
        public void OverrideShopState(TemplateMetaShop templateShop)
        {
            if (templateShop != null)
            {
                ShopOutsidePanel shopPanel = shopOutside.GetComponent <ShopOutsidePanel>();
                shopPanel.shop = templateShop;
            }
        }
 // -------------------------------------------------------------------------------
 // ShopListingRequirementsMet
 // -------------------------------------------------------------------------------
 public override bool ShopListingRequirementsMet(TemplateMetaShop shop)
 {
     return(!Finder.party.HasMember(this) && !restrictions.exclude && AcquisitionRequirementsMet && AcquisitionShopLevel(shop));
 }
Пример #3
0
 // -------------------------------------------------------------------------------
 // AcquisitionShopLevel
 // -------------------------------------------------------------------------------
 public bool AcquisitionShopLevel(TemplateMetaShop shop)
 {
     return(restrictions.minLevel <= shop.level);
 }
Пример #4
0
 // -------------------------------------------------------------------------------
 // ShopListingRequirementsMet
 // -------------------------------------------------------------------------------
 public virtual bool ShopListingRequirementsMet(TemplateMetaShop shop)
 {
     return(!restrictions.exclude && AcquisitionRequirementsMet && AcquisitionShopLevel(shop));
 }