Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions crafting_combinator/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ return {
GROUP_NAME = 'crafting_combinator:virtual-recipes',
RECIPE_SUBGROUP_PREFIX = 'crafting_combinator:virtual-recipe-subgroup:',
UNSORTED_RECIPE_SUBGROUP = 'crafting_combinator:virtual-recipe-subgroup:unsorted',

CC_DEFAULT_SETTINGS = {
chest_position = 1, -- 1 = Behind, 2 = Left, 3 = Right
mode = 'w',
Expand All @@ -30,32 +30,33 @@ return {
divide_by_output = false,
differ_output = false,
time_multiplier = 10,
all_inputs = false,
},

ASSEMBLER_DISTANCE = 1,
ASSEMBLER_SEARCH_DISTANCE = 2,
CHEST_DISTANCE = 1,
CHEST_SEARCH_DISTANCE = 2,
INSERTER_SEARCH_RADIUS = 3,

REFRESH_RATE_CC = 60,
REFRESH_RATE_RC = 60,

INSERTER_EMPTY_DELAY = 60,

MODULE_CHEST_SIZE = 100,

RC_SLOT_COUNT = 40,
-- This is the number of extra slots on top of the max ingredient count
RC_SLOT_RESERVE = 5, -- 5 is arbitrary, but large enough

-- Recipes matching any of these strings will not get a virtual recipe
RECIPES_TO_IGNORE = {
'angels%-void',
},

FLYING_TEXT_INTERVAL = 180,

MACHINE_STATUS_SIGNALS = {
working = 'signal-green',
no_power = 'signal-red',
Expand Down
31 changes: 23 additions & 8 deletions crafting_combinator/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local cc = table.deepcopy(data.raw['constant-combinator']['constant-combinator']
cc.name = config.CC_NAME
cc.icon = '__crafting_combinator__/graphics/icon-crafting-combinator.png'
cc.icon_size = 32
cc.item_slot_count = 3
cc.item_slot_count = 40
cc.minable.result = cc.name
table.insert(cc.flags, 'not-deconstructable')

Expand Down Expand Up @@ -93,7 +93,7 @@ data:extend {
inventory_size = config.MODULE_CHEST_SIZE,
picture = trans,
minable = {mining_time = 0.2, result = cc.name},

-- Disguise the chest as the combinator itself, so it looks right in deconstruction planner filters
localised_name = {'entity-name.crafting_combinator:crafting-combinator'},
icons = icons.of(cc),
Expand All @@ -119,15 +119,15 @@ data:extend {
sprite = trans,
icon = '__base__/graphics/icons/blueprint.png',
icon_size = 32,

minable = {
result = config.SETTINGS_ENTITY_NAME,
mining_time = 0,
},

energy_source = { type = 'void' },
energy_usage_per_tick = '1W',

instruments = {},
maximum_polyphony = 0,
},
Expand All @@ -146,7 +146,7 @@ data:extend {
},
activity_led_sprites = trans,
activity_led_light_offsets = {{0, 0}, {0, 0}, {0, 0}, {0, 0}},

circuit_wire_connection_points = {con_point, con_point, con_point, con_point},
draw_circuit_wires = false,
},
Expand All @@ -158,13 +158,13 @@ data:extend {
circuit_wire_max_distance = 3,
circuit_wire_connection_points = {con_point, con_point, con_point, con_point},
draw_circuit_wires = false,

picture_on = trans,
picture_off = trans,
energy_source = {type = 'void'},
energy_usage_per_tick = '1W',
},

{
type = 'item-group',
name = config.GROUP_NAME,
Expand Down Expand Up @@ -201,3 +201,18 @@ data:extend {
icon_size = 32,
},
}

data:extend {
{
type = "recipe",
name = "resin",
category = "crafting-machine",
subgroup = "bob-resource",
energy_required = 1,
ingredients = {
{ "wood", 1 },
},
result = "resin",
allow_decomposition = false,
},
}
4 changes: 3 additions & 1 deletion crafting_combinator/locale/en/en.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ empty-inserters=Empty inserters' hands (prevents jamming)
read-recipe=Read the current recipe
read-speed=Read the machine's crafting speed
read-machine-status=Read machine status
read-required-ingredients=Read required ingredients
multiply-by-input=Multiply results by input count
multiply-by-input:tooltip=Take each resulting signal and multiply it by the strength of the chosen input signal before outputting it
divide-by-output=Divide results by product/ingredient count
divide-by-output:tooltip=Take the resulting recipe signals and divide their strength by how much of the searched-for item or fluid it produces or consumes, effectively outputting how many times the recipe needs to be crafted to obtain or process the given number of an item. This only works in usage and recipe mode with 'Multiply results by input count' enabled
time-multiplier=Time multiplier:
time-multiplier=Time multiplier:
all-inputs=Calculate for all input signals
differ-output=Vary the strength of output signals
differ-output:tooltip=Set the strengths of the output signals to be each a different number. This can not be used with either of 'Multiply results by input count' and 'Divide results by product count'
open-module-chest=Open module chest
Expand Down
Loading