Factorio-Farming-Mod/prototypes/wheat.lua
2024-11-27 16:56:11 -05:00

115 lines
2.6 KiB
Lua

require("__TEST__/prototypes/lib")
--wheat_stage_1
local wheat_1 = create_new_crop_base("wheat-1");
wheat_1.picture = {
filename = "__TEST__/stolen_sprites/Wheat_Stage_1.png",
height = 32,
width = 32
};
wheat_1.pictures = nil;
local wheat_1_item = table.deepcopy(data.raw.item["small-electric-pole"]);
wheat_1_item.name = "wheat-1";
wheat_1_item.place_result = "wheat-1";
wheat_1_item.icons = {
{
icon = wheat_1.icon,
icon_size = wheat_1.icon_size,
tint = {
r = 1,
g = 0,
b = 0,
a = 0.3
}
}
};
data:extend({
wheat_1,
wheat_1_item
});
--wheat_stage_2
local wheat_2 = create_new_crop_base("wheat-2");
wheat_2.picture = {
filename = "__TEST__/stolen_sprites/Wheat_Stage_2.png",
height = 32,
width = 32
};
wheat_2.pictures = nil;
local wheat_2_item = table.deepcopy(data.raw.item["small-electric-pole"]);
wheat_2_item.name = "wheat-2";
wheat_2_item.place_result = "wheat-2";
wheat_2_item.icons = {
{
icon = wheat_2.icon,
icon_size = wheat_2.icon_size,
tint = {
r = 1,
g = 0,
b = 0,
a = 0.3
}
}
};
data:extend({
wheat_2,
wheat_2_item
});
--wheat_stage_3
local wheat_3 = create_new_crop_base("wheat-3");
wheat_3.picture = {
filename = "__TEST__/stolen_sprites/Wheat_Stage_3.png",
height = 80,
width = 40
};
wheat_3.pictures = nil;
local wheat_item_3 = table.deepcopy(data.raw.item["small-electric-pole"]);
wheat_item_3.name = "wheat-3";
wheat_item_3.place_result = "wheat-3";
wheat_item_3.icons = {
{
icon = wheat_3.icon,
icon_size = wheat_3.icon_size,
tint = {
r = 1,
g = 0,
b = 0,
a = 0.3
}
}
};
data:extend({
wheat_3,
wheat_item_3
});
local wheat_4 = create_new_crop_base("wheat-4");
wheat_4.picture = {
filename = "__TEST__/stolen_sprites/Wheat_Stage_4.png",
height = 80,
width = 50
};
wheat_4.pictures = nil;
local wheat_item_4 = table.deepcopy(data.raw.item["small-electric-pole"]);
wheat_item_4.name = "wheat-4";
wheat_item_4.place_result = "wheat-4";
wheat_item_4.icons = {
{
icon = wheat_4.icon,
icon_size = wheat_4.icon_size,
tint = {
r = 1,
g = 0,
b = 0,
a = 0.3
}
}
};
wheat_4.minable = { mining_time = 0.1, results = { { type = "item", name = "wheat-4", amount = 1 }, { type = "item", name = "wheat-1", amount_min = 1, amount_max = 3 } } }
data:extend({
wheat_4,
wheat_item_4
});