mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Change Diggy DangerOres to allow build on oil, pipes on ores. (#1319)
This commit is contained in:
parent
d07ec6bb6c
commit
1803d1c9d7
@ -20,7 +20,7 @@ local function banned_entities(allowed_entities)
|
||||
if left_top.x == right_bottom.x and left_top.y == right_bottom.y then
|
||||
return true
|
||||
end
|
||||
local count = entity.surface.count_entities_filtered {area = area, type = 'resource', limit = 1}
|
||||
local count = entity.surface.count_entities_filtered {area = area, name = {'coal', 'copper-ore', 'iron-ore', 'stone', 'uranium-ore'}, limit = 1}
|
||||
if count == 0 then
|
||||
return true
|
||||
end
|
||||
@ -45,7 +45,7 @@ function DangerOre.register (config)
|
||||
ScenarioInfo.add_map_extra_info([[Danger! Ores are generally unstable to build upon.
|
||||
Only the following entities have been strengthened for building upon the ores:
|
||||
[item=burner-mining-drill] [item=electric-mining-drill] [item=pumpjack] [item=small-electric-pole] [item=medium-electric-pole] [item=big-electric-pole] [item=substation] [item=car] [item=tank] [item=spidertron]
|
||||
[item=stone-wall][item=small-lamp][item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=stone-wall] [item=small-lamp]
|
||||
[item=stone-wall][item=small-lamp][item=transport-belt] [item=fast-transport-belt] [item=express-transport-belt] [item=underground-belt] [item=fast-underground-belt] [item=express-underground-belt] [item=pipe] [item=pipe-to-ground]
|
||||
]])
|
||||
end
|
||||
|
||||
|
@ -469,7 +469,9 @@ local config = {
|
||||
'tank',
|
||||
'spidertron',
|
||||
'stone-wall',
|
||||
'small-lamp'
|
||||
'small-lamp',
|
||||
'pipe',
|
||||
'pipe-to-ground'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user