modimport("prototyper.lua") AddNewTechTree("SHOP1", 3) AddNewTechTree("SHOP2", 3) AddNewTechTree("SHOP3", 3) AddNewTechTree("SHOP4", 3) AddNewTechTree("SHOP5", 3) AddNewTechTree("SHOP6", 3) GLOBAL.RECIPETABS.SHOP = { str = "SHOP", sort = 100, icon = "shop.tex", icon_atlas = "images/shop.xml", crafting_station = true, shop = true } GLOBAL.STRINGS.TABS.SHOP = "Store" local shopper1 = AddRecipe("shop_keeper1", {}, GLOBAL.RECIPETABS.TOWN, GLOBAL.TECH.LOST, "shop_keeper_placer") local shopper2 = AddRecipe("shop_keeper2", {}, GLOBAL.RECIPETABS.TOWN, GLOBAL.TECH.LOST, "shop_keeper_placer") local shopper3 = AddRecipe("shop_keeper3", {}, GLOBAL.RECIPETABS.TOWN, GLOBAL.TECH.LOST, "shop_keeper_placer") local shopper4 = AddRecipe("shop_keeper4", {}, GLOBAL.RECIPETABS.TOWN, GLOBAL.TECH.LOST, "shop_keeper_placer") local shopper5 = AddRecipe("shop_keeper5", {}, GLOBAL.RECIPETABS.TOWN, GLOBAL.TECH.LOST, "shop_keeper_placer") local shopper6 = AddRecipe("shop_keeper6", {}, GLOBAL.RECIPETABS.TOWN, GLOBAL.TECH.LOST, "shop_keeper_placer") ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------1 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- local wall_wood_item = AddRecipe("wall_wood_item", {GLOBAL.Ingredient("opalpreciousgem", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 6, nil) local ratatouille = AddRecipe("ratatouille", {GLOBAL.Ingredient("goldnugget", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 5, nil) local tentaclespike = AddRecipe("tentaclespike", {GLOBAL.Ingredient("opalpreciousgem", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------2 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- local wall_stone_item = AddRecipe("wall_stone_item", {GLOBAL.Ingredient("lucky_goldnugget", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP2_THREE, nil, nil, true, 6, nil) local meatballs = AddRecipe("meatballs", {GLOBAL.Ingredient("goldnugget", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP2_THREE, nil, nil, true, 2, nil) local hambat = AddRecipe("hambat", {GLOBAL.Ingredient("lucky_goldnugget", 5)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP2_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------3 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- local boomerang = AddRecipe("boomerang", {GLOBAL.Ingredient("goldnugget", 10)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local amulet = AddRecipe("amulet", {GLOBAL.Ingredient("goldnugget", 100)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local armorwood = AddRecipe("armorwood", {GLOBAL.Ingredient("goldnugget", 7)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local spear = AddRecipe("spear", {GLOBAL.Ingredient("goldnugget", 5)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local footballhat = AddRecipe("footballhat", {GLOBAL.Ingredient("goldnugget", 7)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local trap_teeth = AddRecipe("trap_teeth", {GLOBAL.Ingredient("goldnugget", 4)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local icestaff = AddRecipe("icestaff", {GLOBAL.Ingredient("goldnugget", 20)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local gunpowder = AddRecipe("gunpowder", {GLOBAL.Ingredient("goldnugget", 5)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 2, nil) local cutstone = AddRecipe("cutstone", {GLOBAL.Ingredient("goldnugget", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local gears = AddRecipe("gears", {GLOBAL.Ingredient("goldnugget", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local driftwood_log = AddRecipe("driftwood_log", {GLOBAL.Ingredient("goldnugget", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local bandage = AddRecipe("bandage", {GLOBAL.Ingredient("goldnugget", 3)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local transistor = AddRecipe("transistor", {GLOBAL.Ingredient("goldnugget", 3)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------4 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- local boat_item = AddRecipe("boat_item", {GLOBAL.Ingredient("goldnugget", 6)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP4_THREE, nil, nil, true, 1, nil) local anchor_item = AddRecipe("anchor_item", {GLOBAL.Ingredient("goldnugget", 4)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP4_THREE, nil, nil, true, 1, nil) local mast_item = AddRecipe("mast_item", {GLOBAL.Ingredient("goldnugget", 4)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP4_THREE, nil, nil, true, 1, nil) local steeringwheel_item = AddRecipe("steeringwheel_item", {GLOBAL.Ingredient("goldnugget", 4)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP4_THREE, nil, nil, true, 1, nil) local boatpatch = AddRecipe("boatpatch", {GLOBAL.Ingredient("goldnugget", 2)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP4_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------5 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------6 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- --Recipe("winona_catapult", {Ingredient("sewing_tape", 1), Ingredient("twigs", 3), Ingredient("rocks", 15)}, CUSTOM_RECIPETABS.ENGINEERING, TECH.NONE, "winona_catapult_placer", TUNING.WINONA_ENGINEERING_SPACING, nil, nil, "handyperson") --local winona_catapult = AddRecipe("winona_catapult", {GLOBAL.Ingredient("lucky_goldnugget", 3)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP2_THREE, "winona_catapult_placer", TUNING.WINONA_ENGINEERING_SPACING, true) -- переменная добавляем предмет(префаб) Ингридиенты Вкладка Какой из торг. будет продав. placer min_spacing nounlock количество тег персонажа кому доступно --local CutgrassRecipe = AddRecipe("poop", {GLOBAL.Ingredient("goldnugget", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP6_THREE, nil, nil, true, nil, nil) --[[Recipe("yotc_carratshrine", {Ingredient("goldnugget", 8), Ingredient("boards", 2)}, RECIPETABS.TOWN, TECH.YOTC, "yotc_carratshrine_placer") Recipe("mermhouse_crafted", {Ingredient("boards", 4), Ingredient("cutreeds", 3), Ingredient("pondfish", 2)}, RECIPETABS.TOWN, TECH.SCIENCE_ONE, "mermhouse_crafted_placer", nil, nil, nil, "merm_builder", nil, nil, IsMarshLand) Recipe("mermthrone_construction", {Ingredient("boards", 5), Ingredient("rope", 5)}, RECIPETABS.TOWN, TECH.SCIENCE_ONE, "mermthrone_construction_placer", nil, nil, nil, "merm_builder", nil, nil, IsMarshLand) Recipe("mermwatchtower", {Ingredient("boards", 5), Ingredient("tentaclespots", 1), Ingredient("spear", 2)}, RECIPETABS.TOWN, TECH.SCIENCE_TWO, "mermwatchtower_placer", nil, nil, nil, "merm_builder", nil, nil, IsMarshLand) Recipe("turf_marsh", {Ingredient("cutreeds", 1), Ingredient("spoiled_food", 2)}, RECIPETABS.TOWN, TECH.SCIENCE_TWO, nil, nil, nil, nil, "merm_builder")]]