1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Increased resources for quadrant 2

As per suggestion in #714
This commit is contained in:
SimonFlapse 2019-02-18 11:23:51 +01:00
parent 7cc4048627
commit d00a2c685a
2 changed files with 19 additions and 4 deletions

View File

@ -24,7 +24,7 @@ Chat is restricted to your current quadrant.
Use /shout <message> (shortcut: /s <message>) to chat with entire server
The following quadrants exists:
Science and Military, Intermediate produce, Oil and High Tech, Logistics and Transport.
Science and Military, Intermediate and Mining, Oil and High Tech, Logistics and Transport.
Common for all quadrants:
- Basic manufacturing and power
@ -38,9 +38,10 @@ Science and Military
- Manages research for the entire region
- Supplies weaponry and security solutions to the entire region
Intermediate produce
Intermediate and Mining
- Only producer of steel
- High precision workers allowing for circuitry manufacturing
- Area found to have rich amount of minerals
Oil and High Tech
- Facilities for oil processing
@ -174,6 +175,18 @@ local function quadrants(x, y)
end
end
if (x < 0 and y < 0) then
if not (abs_x <= 200 and abs_y <= 200) then
local resources = game.surfaces[2].find_entities_filtered{area = {{ x - 0.5, y - 0.5 }, { x + 0.5, y + 0.5 }}, type= "resource"}
for _, resource in pairs(resources) do
if resource.name ~= 'crude-oil' then
local amount = b.euclidean_value(1, 0.01)
resource.amount = resource.amount * amount(x, y)
end
end
end
end
if (abs_x == 100) and (abs_y == 100) then
spawn_market(RS.get_surface(), game.forces.player, { x = x, y = y })
end

View File

@ -25,12 +25,14 @@ local quadrant_message = {
]]
},
{
title = 'Intermediate production',
title = 'Intermediate production and mining',
msg = [[
Our main objective is to provide the region with intermediate products
We primarily supply electronic circuits in various densities
We're also the area with the highest quality steel!
Initial survey shows increased resources in this area
]]
},
{
@ -108,7 +110,7 @@ local function toggle(event)
right_flow.style.align = 'right'
right_flow.style.horizontally_stretchable = true
left_flow.add({type = 'button', name = 'Quadrants.Button.2', caption = 'Intermediate produce'})
left_flow.add({type = 'button', name = 'Quadrants.Button.2', caption = 'Intermediate and Mining'})
right_flow.add({type = 'button', name = 'Quadrants.Button.1', caption = 'Science and Military'})
local content_flow = frame.add {type = 'flow', direction = 'horizontal'}