From 56596514f83256da80fd1d65d7e0a97526818a30 Mon Sep 17 00:00:00 2001 From: LovelySanta Date: Sat, 22 Feb 2020 20:08:26 +0100 Subject: [PATCH] When picking up gardens, they have a chance of giving some crops as well --- angelsbioprocessing/changelog.txt | 1 + .../prototypes/buildings/gardens.lua | 30 +++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/angelsbioprocessing/changelog.txt b/angelsbioprocessing/changelog.txt index c1ad17c81..22cd9a8a5 100644 --- a/angelsbioprocessing/changelog.txt +++ b/angelsbioprocessing/changelog.txt @@ -6,6 +6,7 @@ Date: ?? - Pastes requires 2 powder instead of 1 ore - Changed the tech icon of Farming and Garden Mutations - In marathon mode (expensive), you get the garden back when trying to obtain alien life samples + - When picking up gardens, they have a chance of giving some crops as well Bugfixes: - Fixed petri-dish requiring the wrong glass item (when playing with bob) - Updated emission data, so it now shows in the ingame toolips (and activates) diff --git a/angelsbioprocessing/prototypes/buildings/gardens.lua b/angelsbioprocessing/prototypes/buildings/gardens.lua index 8b71bd708..44d801e61 100644 --- a/angelsbioprocessing/prototypes/buildings/gardens.lua +++ b/angelsbioprocessing/prototypes/buildings/gardens.lua @@ -19,8 +19,14 @@ data:extend( { mining_particle = "wooden-particle", mining_time = 1, - result = "temperate-garden", - count = 1 + results = { + { name = "temperate-garden", amount = 1 }, + { name = "temperate-1", amount = 5, probability = 0.4 }, + { name = "temperate-2", amount = 5, probability = 0.3 }, + { name = "temperate-3", amount = 5, probability = 0.2 }, + { name = "temperate-4", amount = 5, probability = 0.1 }, + { name = "temperate-5", amount = 5, probability = 0.05 }, + }, }, emissions_per_tick = -0.0001, max_health = 20, @@ -107,8 +113,14 @@ data:extend( { mining_particle = "wooden-particle", mining_time = 1, - result = "desert-garden", - count = 1 + results = { + { name = "desert-garden", amount = 1 }, + { name = "desert-1", amount = 5, probability = 0.4 }, + { name = "desert-2", amount = 5, probability = 0.3 }, + { name = "desert-3", amount = 5, probability = 0.2 }, + { name = "desert-4", amount = 5, probability = 0.1 }, + { name = "desert-5", amount = 5, probability = 0.05 }, + }, }, emissions_per_tick = -0.0001, max_health = 20, @@ -188,8 +200,14 @@ data:extend( { mining_particle = "wooden-particle", mining_time = 1, - result = "swamp-garden", - count = 1 + results = { + { name = "swamp-garden", amount = 1 }, + { name = "swamp-1", amount = 5, probability = 0.4 }, + { name = "swamp-2", amount = 5, probability = 0.3 }, + { name = "swamp-3", amount = 5, probability = 0.2 }, + { name = "swamp-4", amount = 5, probability = 0.1 }, + { name = "swamp-5", amount = 5, probability = 0.05 }, + }, }, emissions_per_tick = -0.0001, max_health = 20,