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 flint = AddRecipe("flint", {GLOBAL.Ingredient("mosquitosack", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) local durian = AddRecipe("durian", {GLOBAL.Ingredient("fish", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) local green_cap = AddRecipe("green_cap", {GLOBAL.Ingredient("monstermeat", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP1_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------2 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- local silk = AddRecipe("silk", {GLOBAL.Ingredient("poop", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP2_THREE, nil, nil, true, 1, nil) local monstermeat = AddRecipe("monstermeat", {GLOBAL.Ingredient("berries", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP2_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------3 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- local tentaclespots = AddRecipe("tentaclespots", {GLOBAL.Ingredient("mosquitosack", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local coontail = AddRecipe("coontail", {GLOBAL.Ingredient("fireflies", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) local bluegem = AddRecipe("bluegem", {GLOBAL.Ingredient("trinket_4", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP3_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------4 Торговец--------------------------------------------------- ---------------------------------------------------------------------------------------------------------------- local pumpkin = AddRecipe("pumpkin", {GLOBAL.Ingredient("stinger", 1)}, GLOBAL.RECIPETABS.SHOP, GLOBAL.TECH.SHOP4_THREE, nil, nil, true, 1, nil) ---------------------------------------------------------------------------------------------------------------- ---------------------------------------------------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)