Gardens have reduced crafting speed with quality

This commit is contained in:
Simon Brodtmann 2025-11-24 22:41:04 +01:00
parent 6e1ebd7fe3
commit 923d31db2b

View file

@ -1,11 +1,16 @@
local BioInd = require('common')('Bio_Industries_2') local BioInd = require('common')('Bio_Industries_2')
local ICONPATH = BioInd.modRoot .. "/graphics/icons/"
local ICONPATH_E = BioInd.modRoot .. "/graphics/icons/entity/" local ICONPATH_E = BioInd.modRoot .. "/graphics/icons/entity/"
local ENTITYPATH_BIO = BioInd.modRoot .. "/graphics/entities/" local ENTITYPATH_BIO = BioInd.modRoot .. "/graphics/entities/"
local REMNANTSPATH = BioInd.modRoot .. "/graphics/entities/remnants/" local REMNANTSPATH = BioInd.modRoot .. "/graphics/entities/remnants/"
require("util") require("util")
local crafting_speed_quality_multiplier = mods["quality"] and {
uncommon = 0.83,
rare = 0.66,
epic = 0.50,
legendary = 0.16
} or nil
--- Bio Garden --- Bio Garden
data:extend({ data:extend({
@ -68,6 +73,7 @@ data:extend({
source_inventory_size = 1, source_inventory_size = 1,
result_inventory_size = 1, result_inventory_size = 1,
crafting_speed = 1.0, crafting_speed = 1.0,
crafting_speed_quality_multiplier = crafting_speed_quality_multiplier,
energy_source = { energy_source = {
type = "electric", type = "electric",
usage_priority = "secondary-input", usage_priority = "secondary-input",
@ -105,8 +111,7 @@ data:extend({
time_before_removed = 60 * 60 * 15, -- 15 minutes time_before_removed = 60 * 60 * 15, -- 15 minutes
final_render_layer = "remnants", final_render_layer = "remnants",
remove_on_tile_placement = false, remove_on_tile_placement = false,
animation = animation = {
{
{ {
filename = REMNANTSPATH .. "bio_garden_remnant.png", filename = REMNANTSPATH .. "bio_garden_remnant.png",
line_length = 1, line_length = 1,
@ -121,7 +126,6 @@ data:extend({
}, },
---- Bio Garden Large ---- Bio Garden Large
{ {
type = "assembling-machine", type = "assembling-machine",
@ -209,6 +213,7 @@ data:extend({
source_inventory_size = 1, source_inventory_size = 1,
result_inventory_size = 1, result_inventory_size = 1,
crafting_speed = 4.0, crafting_speed = 4.0,
crafting_speed_quality_multiplier = crafting_speed_quality_multiplier,
energy_source = { energy_source = {
type = "electric", type = "electric",
usage_priority = "secondary-input", usage_priority = "secondary-input",
@ -246,8 +251,7 @@ data:extend({
time_before_removed = 60 * 60 * 15, -- 15 minutes time_before_removed = 60 * 60 * 15, -- 15 minutes
final_render_layer = "remnants", final_render_layer = "remnants",
remove_on_tile_placement = false, remove_on_tile_placement = false,
animation = animation = {
{
{ {
filename = REMNANTSPATH .. "bio_garden_large_remnant.png", filename = REMNANTSPATH .. "bio_garden_large_remnant.png",
line_length = 1, line_length = 1,
@ -391,6 +395,7 @@ data:extend({
source_inventory_size = 1, source_inventory_size = 1,
result_inventory_size = 1, result_inventory_size = 1,
crafting_speed = 16, crafting_speed = 16,
crafting_speed_quality_multiplier = crafting_speed_quality_multiplier,
energy_source = { energy_source = {
type = "electric", type = "electric",
usage_priority = "secondary-input", usage_priority = "secondary-input",
@ -428,8 +433,7 @@ data:extend({
time_before_removed = 60 * 60 * 15, -- 15 minutes time_before_removed = 60 * 60 * 15, -- 15 minutes
final_render_layer = "remnants", final_render_layer = "remnants",
remove_on_tile_placement = false, remove_on_tile_placement = false,
animation = animation = {
{
{ {
filename = REMNANTSPATH .. "bio_garden_huge_remnant.png", filename = REMNANTSPATH .. "bio_garden_huge_remnant.png",
line_length = 1, line_length = 1,