From 86b422f7b9e8b2806eb4f24bf7e9c175cab4cb77 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 5 Jan 2025 04:34:41 -0800 Subject: [PATCH] crusher tweaks --- locale/en/silicon.cfg | 2 ++ prototypes/basic-crusher.lua | 12 ++++-------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/locale/en/silicon.cfg b/locale/en/silicon.cfg index d8040d1..645ee36 100644 --- a/locale/en/silicon.cfg +++ b/locale/en/silicon.cfg @@ -5,6 +5,7 @@ silicon-wafer=Silicon wafer solar-cell=Solar cell optical-fiber=Optical Fiber razorgrass=Razorgrass +basic-crusher=Basic crusher [entity-description] razorgrass=A tall, sharp grass that only grows on the rare dry parts of Gleba. High in silica. @@ -21,6 +22,7 @@ razorgrass=Razorgrass razorgrass-dried=Dried razorgrass razorgrass-seed=Razorgrass seed razorgrass-ash=Razorgrass ash +basic-crusher=Basic crusher [item-description] silica=Can be used directly or processed further. diff --git a/prototypes/basic-crusher.lua b/prototypes/basic-crusher.lua index 6cd2c3d..efcbed3 100644 --- a/prototypes/basic-crusher.lua +++ b/prototypes/basic-crusher.lua @@ -58,20 +58,16 @@ graphics.working_visualisations.layers.east_animation.shift[2] = graphics.workin graphics.working_visualisations.layers.west_animation.shift[1] = graphics.working_visualisations.layers.west_animation.shift[1] * 0.5 graphics.working_visualisations.layers.west_animation.shift[2] = graphics.working_visualisations.layers.west_animation.shift[2] * 0.5 -if not data.raw["recipe-category"]["basic-crushing"] then - data:extend({{ - type="recipe-category", - name="basic-crushing", - }}) -end + +util.add_new_crafting_category("basic-crushing", true) data:extend({ { type = "item", name = "basic-crusher", icon = "__space-age__/graphics/icons/crusher.png", - subgroup = "space-platform", - order = "e[crusher]", + subgroup = "production-machine", + order = "s[crusher]", inventory_move_sound = item_sounds.drill_inventory_move, pick_sound = item_sounds.drill_inventory_pickup, drop_sound = item_sounds.drill_inventory_move,