mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
updated stress values. Nerfed tiles
This commit is contained in:
parent
ed71e89e56
commit
64806bc6f2
@ -49,24 +49,25 @@ local Config = {
|
||||
collapse_delay = 2.5,
|
||||
|
||||
-- the threshold that will be applied to all neighbors on a collapse via a mask
|
||||
collapse_threshold_total_strength = 15,
|
||||
collapse_threshold_total_strength = 16,
|
||||
|
||||
support_beam_entities = {
|
||||
['market'] = 9,
|
||||
['stone-wall'] = 3,
|
||||
['sand-rock-big'] = 2,
|
||||
['out-of-map'] = 1,
|
||||
['stone-brick'] = 0.05,
|
||||
['stone-path'] = 0.05,
|
||||
['concrete'] = 0.10,
|
||||
['hazard-concrete-left'] = 0.10,
|
||||
['hazard-concrete-right'] = 0.10,
|
||||
['refined-concrete'] = 0.13,
|
||||
['refined-hazard-concrete-left'] = 0.13,
|
||||
['refined-hazard-concrete-right'] = 0.13,
|
||||
['market'] = 10,
|
||||
['stone-wall'] = 3.3,
|
||||
['sand-rock-big'] = 2.2,
|
||||
['out-of-map'] = 1.1,
|
||||
['stone-brick'] = 0.055,
|
||||
['stone-path'] = 0.055,
|
||||
['concrete'] = 0.33,
|
||||
['hazard-concrete-left'] = 0.33,
|
||||
['hazard-concrete-right'] = 0.33,
|
||||
['refined-concrete'] = 0.77,
|
||||
['refined-hazard-concrete-left'] = 0.77,
|
||||
['refined-hazard-concrete-right'] = 0.77,
|
||||
},
|
||||
cracking_sounds = {
|
||||
'CRACK',
|
||||
'KRRRR',
|
||||
}
|
||||
},
|
||||
RefreshMap = {
|
||||
@ -150,7 +151,7 @@ local Config = {
|
||||
},
|
||||
},
|
||||
AlienSpawner = {
|
||||
enabled = true,
|
||||
enabled = false,
|
||||
|
||||
-- minimum distance from spawn before aliens can spawn
|
||||
alien_minimum_distance = 35,
|
||||
|
@ -43,7 +43,7 @@ local stress_map_check_stress_in_threshold
|
||||
local support_beam_entities
|
||||
local on_surface_created
|
||||
|
||||
local stress_threshold_causing_collapse = 0.91
|
||||
local stress_threshold_causing_collapse = 1
|
||||
|
||||
local deconstruction_alert_message_shown = {}
|
||||
local stress_map_storage = {}
|
||||
@ -133,9 +133,10 @@ local function collapse(args)
|
||||
local positions = {}
|
||||
local tiles = {}
|
||||
local entities
|
||||
local strength = config.collapse_threshold_total_strength
|
||||
mask_disc_blur(
|
||||
position.x, position.y,
|
||||
config.collapse_threshold_total_strength,
|
||||
strength,
|
||||
function(x, y, value)
|
||||
stress_map_check_stress_in_threshold(
|
||||
surface,
|
||||
@ -419,7 +420,7 @@ function add_fraction(stress_map, x, y, fraction)
|
||||
|
||||
x_t[y] = value
|
||||
|
||||
if (value > stress_threshold_causing_collapse and fraction > 0) then
|
||||
if (fraction > 0 and value > stress_threshold_causing_collapse) then
|
||||
if quadrant > 2 then
|
||||
y = -y
|
||||
end
|
||||
@ -460,7 +461,7 @@ function add_fraction_by_quadrant(stress_map, x, y, fraction, quadrant)
|
||||
|
||||
x_t[y] = value
|
||||
|
||||
if (value > stress_threshold_causing_collapse and fraction > 0) then
|
||||
if (fraction > 0 and value > stress_threshold_causing_collapse) then
|
||||
local index = quadrant.index
|
||||
if index > 2 then
|
||||
y = -y
|
||||
|
Loading…
Reference in New Issue
Block a user