From 5bf1924e3d35325e1a95e7328f6bc07ba2eaf02b Mon Sep 17 00:00:00 2001 From: "pacific.mottled.lumpsucker" Date: Sun, 6 Oct 2019 12:32:08 -0400 Subject: [PATCH] players re-spawn with wood, upped nest frequency / lowered size, upped darts, updated readme --- maps/refactor-io.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/maps/refactor-io.lua b/maps/refactor-io.lua index bfee413b..878379ac 100644 --- a/maps/refactor-io.lua +++ b/maps/refactor-io.lua @@ -12,8 +12,8 @@ global.map_info.text = [[ Hello visitor. You cannot mine things. - You cannot deconstruct things ... the only way to "deconstruct" is your railgun. - You cannot destroy things ... except the biters ... and they have been known to hoard railgun darts. + You cannot deconstruct things ... except for with your railgun. + You cannot destroy things ... except the biters, who have been known to hoard railgun darts in their nests. Have fun <3 ]] @@ -43,6 +43,7 @@ end local function on_player_respawned(event) local player = game.players[event.player_index] player.insert{name = 'railgun', count = 1} + player.insert{name = 'wood', count = 25} end -- decon planner doesn't work @@ -71,7 +72,7 @@ end local function on_entity_died(event) if not event.entity.valid then return end if event.entity.type == "unit-spawner" or event.entity.type == "turret" then - event.entity.surface.spill_item_stack({event.entity.position.x, event.entity.position.y + 2}, {name = "railgun-dart", count = math.random(0, 2)}, false) + event.entity.surface.spill_item_stack({event.entity.position.x, event.entity.position.y + 2}, {name = "railgun-dart", count = math.random(0, 3)}, false) end end @@ -92,8 +93,8 @@ local function on_init() ["iron-ore"] = {frequency = 3.5, size = 0.95, richness = 0.85}, ["uranium-ore"] = {frequency = 3.5, size = 0.95, richness = 0.85}, ["crude-oil"] = {frequency = 3, size = 0.85, richness = 1}, - ["trees"] = {frequency = 3, size = 1, richness = 1}, - ["enemy-base"] = {frequency = 5, size = 2.0, richness = 1} + ["trees"] = {frequency = 2.5, size = 0.85, richness = 1}, + ["enemy-base"] = {frequency = 8, size = 1.5, richness = 1} } local surface = game.create_surface("refactor-io", map_gen_settings) surface.request_to_generate_chunks({0,0}, 5)