forked from cacklingfiend/lignumis
		
	Add basic radar
This commit is contained in:
		
							parent
							
								
									cb3638b216
								
							
						
					
					
						commit
						8439f02f8f
					
				
					 11 changed files with 117 additions and 3 deletions
				
			
		|  | @ -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 | ||||
|  |  | |||
							
								
								
									
										
											BIN
										
									
								
								lignumis/graphics/entity/basic-radar.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								lignumis/graphics/entity/basic-radar.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 856 KiB | 
							
								
								
									
										
											BIN
										
									
								
								lignumis/graphics/icons/basic-radar.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								lignumis/graphics/icons/basic-radar.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 11 KiB | 
							
								
								
									
										
											BIN
										
									
								
								lignumis/graphics/technology/basic-radar.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								lignumis/graphics/technology/basic-radar.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 68 KiB | 
|  | @ -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]. | ||||
|  |  | |||
							
								
								
									
										106
									
								
								lignumis/prototypes/content/basic-radar.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										106
									
								
								lignumis/prototypes/content/basic-radar.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -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 | ||||
|         } | ||||
|     } | ||||
| }) | ||||
|  | @ -22,5 +22,6 @@ require("basic-construction-robots") | |||
| require("lumber") | ||||
| require("wood-logistics") | ||||
| require("basic-repair-pack") | ||||
| require("basic-radar") | ||||
| 
 | ||||
| require("noise") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann