mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
Drop unnecessary tables.
This commit is contained in:
parent
76871eefbf
commit
dbe746ce8d
@ -113,27 +113,9 @@ local function do_place_hidden_tiles(data)
|
||||
end
|
||||
end
|
||||
|
||||
local decoratives = {
|
||||
'brown-asterisk',
|
||||
'brown-carpet-grass',
|
||||
'brown-fluff',
|
||||
'brown-fluff-dry',
|
||||
'brown-hairy-grass',
|
||||
'garballo',
|
||||
'garballo-mini-dry',
|
||||
'green-asterisk',
|
||||
'green-bush-mini',
|
||||
'green-carpet-grass',
|
||||
'green-hairy-grass',
|
||||
'green-pita',
|
||||
'green-pita-mini',
|
||||
'green-small-grass',
|
||||
'red-asterisk'
|
||||
}
|
||||
|
||||
local function do_place_decoratives(data)
|
||||
if regen_decoratives then
|
||||
data.surface.regenerate_decorative(decoratives, {{data.top_x / 32, data.top_y / 32}})
|
||||
data.surface.regenerate_decorative(nil, {{data.top_x / 32, data.top_y / 32}})
|
||||
end
|
||||
|
||||
local dec = data.decoratives
|
||||
|
@ -124,25 +124,6 @@ local non_creep_tiles = global.map.terraforming.non_creep_tiles or {
|
||||
'sand-2',
|
||||
'sand-3',
|
||||
}
|
||||
-- Tiles which are completely exempt from the creep mechanic, currently kept in comment as a reference:
|
||||
-- 'deepwater', 'deepwater-green', 'out-of-map', 'water', 'water-green', 'lab-dark-1', 'lab-dark-2', 'lab-white', 'tutorial-grid'
|
||||
local decoratives = {
|
||||
'brown-asterisk',
|
||||
'brown-carpet-grass',
|
||||
'brown-fluff',
|
||||
'brown-fluff-dry',
|
||||
'brown-hairy-grass',
|
||||
'garballo',
|
||||
'garballo-mini-dry',
|
||||
'green-asterisk',
|
||||
'green-bush-mini',
|
||||
'green-carpet-grass',
|
||||
'green-hairy-grass',
|
||||
'green-pita',
|
||||
'green-pita-mini',
|
||||
'green-small-grass',
|
||||
'red-asterisk'
|
||||
}
|
||||
|
||||
-- the 5 states a chunk can be in
|
||||
local NOT_CREEP = 1 -- Chunk is 0% creep tiles and unpolluted
|
||||
@ -312,7 +293,7 @@ local function change_creep_state(state, i)
|
||||
-- if a chunk has lost all creep, do a final check to see if there are any buildings to kill and regen the decoratives
|
||||
if state == 2 then
|
||||
check_chunk_for_entities(chunklist[i])
|
||||
RS.get_surface().regenerate_decorative(decoratives, {{chunklist[i].x, chunklist[i].y}})
|
||||
RS.get_surface().regenerate_decorative(nil, {{chunklist[i].x, chunklist[i].y}})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user