diff --git a/README.md b/README.md index bc2d456..d6246ac 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,6 @@ The following mods can be a great addition for this mod: Sorted by priority - Add end-game stuff -- Add burner radar - Balance resources - Remove stromatolite (non-plant)? - Guarantee spawn of gold in starting area @@ -40,13 +39,14 @@ Unsorted - Optimize images - Add noise to non-Lignumis entities brought in later - Add deep core mining +- Add greenhouse ## Credits [Hurricane](https://mods.factorio.com/user/Hurricane046) - Lumber mill -- Core extractor +- Deep miner [malcolmriley](https://github.com/malcolmriley/unused-renders) @@ -76,4 +76,8 @@ Unsorted [Wooden Basegame Assets](https://mods.factorio.com/mod/wood-base-assets) -- Lumber \ No newline at end of file +- Lumber + +[Krastorio 2 Assets](https://mods.factorio.com/mod/Krastorio2Assets) + +- Basic radar \ No newline at end of file diff --git a/lignumis/changelog.txt b/lignumis/changelog.txt index 4523e2e..bdacb05 100644 --- a/lignumis/changelog.txt +++ b/lignumis/changelog.txt @@ -3,6 +3,7 @@ Version: 0.0.6 Date: 08.01.2025 Changes: - Remove temporary incompatibility with wood-logistics + - Add basic radar --------------------------------------------------------------------------------------------------- Version: 0.0.5 Date: 07.01.2025 diff --git a/lignumis/graphics/entity/basic-radar.png b/lignumis/graphics/entity/basic-radar.png new file mode 100644 index 0000000..168f28e Binary files /dev/null and b/lignumis/graphics/entity/basic-radar.png differ diff --git a/lignumis/graphics/icons/basic-radar.png b/lignumis/graphics/icons/basic-radar.png new file mode 100644 index 0000000..da1c566 Binary files /dev/null and b/lignumis/graphics/icons/basic-radar.png differ diff --git a/lignumis/graphics/technology/basic-radar.png b/lignumis/graphics/technology/basic-radar.png new file mode 100644 index 0000000..21e3515 Binary files /dev/null and b/lignumis/graphics/technology/basic-radar.png differ diff --git a/lignumis/locale/en/strings.cfg b/lignumis/locale/en/strings.cfg index 5014fe9..f67bc23 100644 --- a/lignumis/locale/en/strings.cfg +++ b/lignumis/locale/en/strings.cfg @@ -31,6 +31,7 @@ basic-construction-robot-copper=Basic construction robot (copper) wood-transport-belt=Wood transport belt wood-underground-belt=Wood underground belt wood-splitter=Wood splitter +basic-radar=Basic radar [equipment-name] basic-portable-generator-equipment-gold=Basic portable generator equipment (gold) @@ -91,6 +92,7 @@ wood-logistics=Wood logistics automation=Electric automation tree-seeding=Basic agriculture basic-repair-pack=Basic repair pack +basic-radar=Basic radar [technology-description] tree-seeding=[entity=burner-agricultural-tower] allows planting seeds into seedable soil. Planted seeds grow into trees that can be harvested.\n[entity=tree-plant] can grow on grass and dirt. [entity=gold-stromatolite] can grow on [tile=natural-gold-soil]. diff --git a/lignumis/prototypes/content/basic-radar.lua b/lignumis/prototypes/content/basic-radar.lua new file mode 100644 index 0000000..ea92093 --- /dev/null +++ b/lignumis/prototypes/content/basic-radar.lua @@ -0,0 +1,106 @@ +local hit_effects = require("__base__.prototypes.entity.hit-effects") +local item_sounds = require("__base__.prototypes.item_sounds") +local item_tints = require("__base__.prototypes.item-tints") + +data:extend({ + { + type = "radar", + name = "basic-radar", + icon = "__lignumis__/graphics/icons/basic-radar.png", + flags = { "placeable-player", "player-creation" }, + minable = { mining_time = 0.1, result = "basic-radar" }, + fast_replaceable_group = "small-radar", + max_health = 100, + corpse = "small-remnants", + dying_explosion = "inserter-explosion", + resistances = { + { + type = "fire", + percent = 70 + }, + { + type = "impact", + percent = 30 + } + }, + collision_box = { { -0.25, -0.25 }, { 0.25, 0.25 } }, + selection_box = { { -0.5, -0.5 }, { 0.5, 0.5 } }, + damaged_trigger_effect = hit_effects.entity(), + max_distance_of_sector_revealed = 0, + max_distance_of_nearby_sector_revealed = 1, + energy_per_sector = "1J", + energy_per_nearby_scan = "1J", + energy_source = { + type = "burner", + fuel_categories = { "chemical" }, + effectivity = 1, + fuel_inventory_size = 1, + emissions_per_minute = { noise = 5 } + }, + energy_usage = "25kW", + pictures = { + layers = { + { + filename = "__lignumis__/graphics/entity/basic-radar.png", + priority = "low", + width = 128, + height = 128, + apply_projection = false, + direction_count = 120, + line_length = 12, + shift = { 0.21, -0.2 }, + scale = 0.35, + } + } + }, + impact_category = "metal", + radius_minimap_visualisation_color = { 0.059, 0.092, 0.235, 0.275 }, + rotation_speed = 0.0001, + is_military_target = false + }, + { + type = "item", + name = "basic-radar", + icon = "__lignumis__/graphics/icons/basic-radar.png", + subgroup = "defensive-structure", + order = "d[radar]-0[basic-radar]", + inventory_move_sound = item_sounds.metal_large_inventory_move, + pick_sound = item_sounds.metal_large_inventory_pickup, + drop_sound = item_sounds.metal_large_inventory_move, + place_result = "basic-radar", + stack_size = 20, + random_tint_color = item_tints.iron_rust + }, + { + type = "recipe", + name = "basic-radar", + category = "crafting-with-fluid", + ingredients = { + { type = "item", name = "stone-brick", amount = 4 }, + { type = "item", name = "wooden-gear-wheel", amount = 4 }, + { type = "item", name = "gold-plate", amount = 4 }, + { type = "item", name = "gold-cable", amount = 4 }, + { type = "fluid", name = "steam", amount = 20 } + }, + results = { { type = "item", name = "basic-radar", amount = 1 } }, + enabled = false + }, + { + type = "technology", + name = "basic-radar", + icon = "__lignumis__/graphics/technology/basic-radar.png", + icon_size = 256, + effects = { + { + type = "unlock-recipe", + recipe = "basic-radar" + } + }, + prerequisites = { "steam-science-pack" }, + unit = { + count = 50, + ingredients = { { "wood-science-pack", 1 }, { "steam-science-pack", 1 } }, + time = 10 + } + } +}) diff --git a/lignumis/prototypes/content/data.lua b/lignumis/prototypes/content/data.lua index dfd47de..ad11f52 100644 --- a/lignumis/prototypes/content/data.lua +++ b/lignumis/prototypes/content/data.lua @@ -22,5 +22,6 @@ require("basic-construction-robots") require("lumber") require("wood-logistics") require("basic-repair-pack") +require("basic-radar") require("noise") diff --git a/sources/entity/basic-radar.afphoto b/sources/entity/basic-radar.afphoto new file mode 100644 index 0000000..149a695 Binary files /dev/null and b/sources/entity/basic-radar.afphoto differ diff --git a/sources/icons/basic-radar.afphoto b/sources/icons/basic-radar.afphoto new file mode 100644 index 0000000..e17965f Binary files /dev/null and b/sources/icons/basic-radar.afphoto differ diff --git a/sources/technology/basic-radar.afphoto b/sources/technology/basic-radar.afphoto new file mode 100644 index 0000000..b84fed5 Binary files /dev/null and b/sources/technology/basic-radar.afphoto differ