forked from cacklingfiend/lignumis
		
	Tweak generation of decoratives
This commit is contained in:
		
							parent
							
								
									4e83f74ed7
								
							
						
					
					
						commit
						4844fbc2f2
					
				
					 4 changed files with 31 additions and 2 deletions
				
			
		|  | @ -26,5 +26,6 @@ require("basic-radar") | |||
| require("mid-game-recipes") | ||||
| require("active-noise-cancelling-tower") | ||||
| require("quality-assembler") | ||||
| require("decoratives") | ||||
| 
 | ||||
| require("noise") | ||||
|  |  | |||
							
								
								
									
										23
									
								
								lignumis/prototypes/content/decoratives.lua
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								lignumis/prototypes/content/decoratives.lua
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| local sounds = require("__base__.prototypes.entity.sounds") | ||||
| 
 | ||||
| data:extend({ | ||||
|     { | ||||
|         name = "gold-rock-cluster", | ||||
|         type = "optimized-decorative", | ||||
|         order = "a[lignumis]-a[decorative]-a[gold-rock-clusters]", | ||||
|         collision_box = { { -1, -1 }, { 1, 1 } }, | ||||
|         collision_mask = { layers = { water_tile = true, doodad = true }, colliding_with_tiles_only = true }, | ||||
|         render_layer = "decorative", | ||||
|         walking_sound = sounds.sand, | ||||
|         autoplace = { | ||||
|             order = "d[ground-surface]-b[sulfur-rock]-b[cluster]", | ||||
|             placement_density = 1, | ||||
|             probability_expression = | ||||
|             "basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 3000000, input_scale = 1/8, output_scale = 1/4}", | ||||
|             tile_restriction = { "natural-gold-soil" } | ||||
|         }, | ||||
|         pictures = get_decal_pictures( | ||||
|             "__space-age__/graphics/decorative/tiny-volcanic-rock-cluster/tiny-volcanic-rock-cluster-", "", 128, 8, | ||||
|             { 0.788, 0.627, 0.167 }, true) | ||||
|     } | ||||
| }) | ||||
|  | @ -5,7 +5,7 @@ stromatolite.name = "gold-stromatolite" | |||
| stromatolite.icon = "__lignumis__/graphics/icons/gold-stromatolite.png" | ||||
| stromatolite.autoplace = { | ||||
|     probability_expression = | ||||
|     "basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 2000000, input_scale = 1/8, output_scale = 1/3}", | ||||
|     "basis_noise{x = x, y = y, seed0 = map_seed, seed1 = 2000000, input_scale = 1/8, output_scale = 1/8}", | ||||
|     tile_restriction = { "natural-gold-soil" } | ||||
| } | ||||
| stromatolite.collision_mask = table.deepcopy(data.raw["plant"]["tree-plant"].collision_mask) | ||||
|  |  | |||
|  | @ -60,7 +60,12 @@ return { | |||
|                 ["green-bush-mini"] = {}, | ||||
|                 ["medium-rock"] = {}, | ||||
|                 ["small-rock"] = {}, | ||||
|                 ["tiny-rock"] = {} | ||||
|                 ["tiny-rock"] = {}, | ||||
|                 ["knobbly-roots"] = {}, | ||||
|                 ["crater-large"] = {}, | ||||
|                 ["crater-small"] = {}, | ||||
|                 ["waves-decal"] = {}, | ||||
|                 ["gold-rock-cluster"] = {} | ||||
|             } | ||||
|         }, | ||||
|         ["entity"] = { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Simon Brodtmann
						Simon Brodtmann