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 mosquitosack = AddRecipe("mosquitosack", {GLOBAL.Ingredient("monstermeat", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) local meatballs = AddRecipe("meatballs", {GLOBAL.Ingredient("monstermeat", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) local healingsalve = AddRecipe("healingsalve", {GLOBAL.Ingredient("tentaclespots", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 5, nil) local marble = AddRecipe("marble", {GLOBAL.Ingredient("rocks", 10)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) local flint = AddRecipe("flint", {GLOBAL.Ingredient("twigs", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) local bandage = AddRecipe("bandage", {GLOBAL.Ingredient("gears", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 3, nil) local walrus_tusk = AddRecipe("walrus_tusk", {GLOBAL.Ingredient("purplegem", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) local pigskin = AddRecipe("pigskin", {GLOBAL.Ingredient("monstermeat", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) local waffles = AddRecipe("waffles", {GLOBAL.Ingredient("tentaclespots", 1), GLOBAL.Ingredient("spidergland", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------2 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------3 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------4 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------5 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------6 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- -- переменная добавляем предмет(префаб) Ингридиенты Вкладка Какой из торг. будет продав. placer min_spacing nounlock количество тег персонажа кому доступно --local CutgrassRecipe = AddRecipe("poop", {GLOBAL.Ingredient("goldnugget", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP6_THREE, nil, nil, true, nil, nil)