mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-17 21:08:08 +02:00
stone-rock ==> rock-big
This commit is contained in:
parent
d98022947b
commit
468878b289
@ -448,8 +448,8 @@ function run_combined_module(event)
|
||||
if noise_trees < -0.5 then
|
||||
if tile_to_insert == "sand-3" or tile_to_insert == "sand-1" then
|
||||
if math.random(1,15) == 1 then
|
||||
if event.surface.can_place_entity {name="stone-rock", position={pos_x,pos_y}} then
|
||||
event.surface.create_entity {name="stone-rock", position={pos_x,pos_y}}
|
||||
if event.surface.can_place_entity {name="rock-big", position={pos_x,pos_y}} then
|
||||
event.surface.create_entity {name="rock-big", position={pos_x,pos_y}}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -452,8 +452,8 @@ function run_borg( params )
|
||||
if noise_trees < -0.5 then
|
||||
if tile_to_insert == "sand-3" or tile_to_insert == "sand-1" then
|
||||
if math.random(1,15) == 1 then
|
||||
if surface.can_place_entity {name="stone-rock", position={pos_x,pos_y}} then
|
||||
surface.create_entity {name="stone-rock", position={pos_x,pos_y}}
|
||||
if surface.can_place_entity {name="rock-big", position={pos_x,pos_y}} then
|
||||
surface.create_entity {name="rock-big", position={pos_x,pos_y}}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -343,7 +343,7 @@ function run_swamp_entities(params)
|
||||
table.insert(entity_list, {name="tree-09", pos={pos_x,pos_y},chance = 1000})
|
||||
table.insert(entity_list, {name="tree-07", pos={pos_x,pos_y},chance = 400})
|
||||
table.insert(entity_list, {name="tree-06", pos={pos_x,pos_y},chance = 150})
|
||||
table.insert(entity_list, {name="stone-rock", pos={pos_x,pos_y},chance = 400})
|
||||
table.insert(entity_list, {name="rock-big", pos={pos_x,pos_y},chance = 400})
|
||||
table.insert(entity_list, {name="green-coral", pos={pos_x,pos_y},chance = 10000})
|
||||
table.insert(entity_list, {name="medium-ship-wreck", pos={pos_x,pos_y},chance = 25000, health="random"})
|
||||
table.insert(entity_list, {name="small-ship-wreck", pos={pos_x,pos_y},chance = 25000, health="random"})
|
||||
|
@ -235,13 +235,13 @@ local entity_options = {
|
||||
{"tree-06", 300},
|
||||
{"tree-07", 800},
|
||||
{"tree-09", 2000},
|
||||
{"stone-rock", 400},
|
||||
{"rock-big", 400},
|
||||
},
|
||||
["dirt-6"] = {
|
||||
{"tree-06", 150},
|
||||
{"tree-07", 400},
|
||||
{"tree-09", 1000},
|
||||
{"stone-rock", 300},
|
||||
{"rock-big", 300},
|
||||
},
|
||||
["grass-1"] = {
|
||||
{"tree-01", 150},
|
||||
@ -249,7 +249,7 @@ local entity_options = {
|
||||
{"tree-06", 400},
|
||||
{"tree-07", 400},
|
||||
{"tree-09", 1000},
|
||||
{"stone-rock", 400},
|
||||
{"rock-big", 400},
|
||||
{"green-coral", 10000},
|
||||
},
|
||||
["grass-3"] = {
|
||||
@ -260,7 +260,7 @@ local entity_options = {
|
||||
{"tree-07", 800},
|
||||
{"tree-08", 400},
|
||||
{"tree-09", 2000},
|
||||
{"stone-rock", 400},
|
||||
{"rock-big", 400},
|
||||
},
|
||||
["grass-2"] = {
|
||||
{"tree-04", 800},
|
||||
@ -268,7 +268,7 @@ local entity_options = {
|
||||
{"tree-07", 400},
|
||||
{"tree-09", 1000},
|
||||
{"dry-tree", 1000},
|
||||
{"stone-rock", 200},
|
||||
{"rock-big", 200},
|
||||
},
|
||||
["hazard-concrete-left"] = {},
|
||||
["hazard-concrete-right"] = {},
|
||||
@ -302,14 +302,14 @@ local entity_options = {
|
||||
{"dry-tree", 1000},
|
||||
{"dry-hairy-tree", 1000},
|
||||
{"dead-tree", 1000},
|
||||
{"stone-rock", 150},
|
||||
{"rock-big", 150},
|
||||
|
||||
},
|
||||
["sand-3"] = {
|
||||
{"dead-tree", 1000},
|
||||
{"dry-tree", 1000},
|
||||
{"dry-hairy-tree", 1000},
|
||||
{"stone-rock", 150},
|
||||
{"rock-big", 150},
|
||||
|
||||
},
|
||||
["stone-path"] = {},
|
||||
|
@ -187,15 +187,15 @@ function run_island( params )
|
||||
|
||||
if tile_to_insert == "sand-1" or tile_to_insert == "sand-3" then
|
||||
if math.random(1,200) == 1 then
|
||||
if surface.can_place_entity {name="stone-rock", position={pos_x,pos_y}} then
|
||||
surface.create_entity {name="stone-rock", position={pos_x,pos_y}}
|
||||
if surface.can_place_entity {name="rock-big", position={pos_x,pos_y}} then
|
||||
surface.create_entity {name="rock-big", position={pos_x,pos_y}}
|
||||
end
|
||||
end
|
||||
end
|
||||
if tile_to_insert == "grass-1" or tile_to_insert == "grass-2" or tile_to_insert == "grass-3" then
|
||||
if math.random(1,2000) == 1 then
|
||||
if surface.can_place_entity {name="stone-rock", position={pos_x,pos_y}} then
|
||||
surface.create_entity {name="stone-rock", position={pos_x,pos_y}}
|
||||
if surface.can_place_entity {name="rock-big", position={pos_x,pos_y}} then
|
||||
surface.create_entity {name="rock-big", position={pos_x,pos_y}}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -150,8 +150,8 @@ function run_terrain_module(event)
|
||||
|
||||
end
|
||||
|
||||
if math.floor(terrain_D) % 5 == 1 and math.random(1,70) == 1 and surface.can_place_entity {name="stone-rock", position={x,y}} then
|
||||
surface.create_entity {name="stone-rock", position={x,y}}
|
||||
if math.floor(terrain_D) % 5 == 1 and math.random(1,70) == 1 and surface.can_place_entity {name="rock-big", position={x,y}} then
|
||||
surface.create_entity {name="rock-big", position={x,y}}
|
||||
end
|
||||
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user