Minor botany tweaks (#18832)
* Make the water consumption actually influenced by the seed's water consumption value * Tweak default water and nutrient consumption * Composting plants works now * Tweak seeds YML, add ez nutrient bottle to Nutrimax * Increase default nutrient consumption a bit
This commit is contained in:
@@ -125,9 +125,9 @@ public class SeedData
|
|||||||
|
|
||||||
#region Tolerances
|
#region Tolerances
|
||||||
|
|
||||||
[DataField("nutrientConsumption")] public float NutrientConsumption = 0.25f;
|
[DataField("nutrientConsumption")] public float NutrientConsumption = 0.50f;
|
||||||
|
|
||||||
[DataField("waterConsumption")] public float WaterConsumption = 3f;
|
[DataField("waterConsumption")] public float WaterConsumption = 0.5f;
|
||||||
[DataField("idealHeat")] public float IdealHeat = 293f;
|
[DataField("idealHeat")] public float IdealHeat = 293f;
|
||||||
[DataField("heatTolerance")] public float HeatTolerance = 10f;
|
[DataField("heatTolerance")] public float HeatTolerance = 10f;
|
||||||
[DataField("idealLight")] public float IdealLight = 7f;
|
[DataField("idealLight")] public float IdealLight = 7f;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace Content.Server.Botany.Systems
|
|||||||
[Dependency] private readonly AtmosphereSystem _atmosphere = default!;
|
[Dependency] private readonly AtmosphereSystem _atmosphere = default!;
|
||||||
|
|
||||||
public const float HydroponicsSpeedMultiplier = 1f;
|
public const float HydroponicsSpeedMultiplier = 1f;
|
||||||
public const float HydroponicsConsumptionMultiplier = 4f;
|
public const float HydroponicsConsumptionMultiplier = 2f;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
@@ -288,12 +288,18 @@ namespace Content.Server.Botany.Systems
|
|||||||
|
|
||||||
if (_solutionSystem.TryGetSolution(args.Used, produce.SolutionName, out var solution2))
|
if (_solutionSystem.TryGetSolution(args.Used, produce.SolutionName, out var solution2))
|
||||||
{
|
{
|
||||||
// This deliberately discards overfill.
|
if (_solutionSystem.TryGetSolution(uid, component.SoilSolutionName, out var solution1))
|
||||||
_solutionSystem.TryAddSolution(args.Used, solution2,
|
{
|
||||||
_solutionSystem.SplitSolution(args.Used, solution2, solution2.Volume));
|
// We try to fit as much of the composted plant's contained solution into the hydroponics tray as we can,
|
||||||
|
// since the plant will be consumed anyway.
|
||||||
|
|
||||||
|
var fillAmount = FixedPoint2.Min(solution2.Volume, solution1.AvailableVolume);
|
||||||
|
_solutionSystem.TryAddSolution(uid, solution1,
|
||||||
|
_solutionSystem.SplitSolution(args.Used, solution2, fillAmount));
|
||||||
|
|
||||||
ForceUpdateByExternalCause(uid, component);
|
ForceUpdateByExternalCause(uid, component);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
EntityManager.QueueDeleteEntity(args.Used);
|
EntityManager.QueueDeleteEntity(args.Used);
|
||||||
}
|
}
|
||||||
@@ -412,7 +418,7 @@ namespace Content.Server.Botany.Systems
|
|||||||
if (component.Seed.WaterConsumption > 0 && component.WaterLevel > 0 && _random.Prob(0.75f))
|
if (component.Seed.WaterConsumption > 0 && component.WaterLevel > 0 && _random.Prob(0.75f))
|
||||||
{
|
{
|
||||||
component.WaterLevel -= MathF.Max(0f,
|
component.WaterLevel -= MathF.Max(0f,
|
||||||
component.Seed.NutrientConsumption * HydroponicsConsumptionMultiplier * HydroponicsSpeedMultiplier);
|
component.Seed.WaterConsumption * HydroponicsConsumptionMultiplier * HydroponicsSpeedMultiplier);
|
||||||
if (component.DrawWarnings)
|
if (component.DrawWarnings)
|
||||||
component.UpdateSpriteAfterUpdate = true;
|
component.UpdateSpriteAfterUpdate = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
PestSpray: 20
|
PestSpray: 20
|
||||||
Syringe: 5
|
Syringe: 5
|
||||||
RobustHarvestChemistryBottle: 3
|
RobustHarvestChemistryBottle: 3
|
||||||
|
EZNutrientChemistryBottle: 3
|
||||||
Bucket: 3
|
Bucket: 3
|
||||||
DiseaseSwab: 20
|
DiseaseSwab: 20
|
||||||
#TO DO:
|
#TO DO:
|
||||||
|
|||||||
@@ -173,6 +173,23 @@
|
|||||||
tags:
|
tags:
|
||||||
- Bottle
|
- Bottle
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: EZNutrientChemistryBottle
|
||||||
|
name: ez nutrient bottle
|
||||||
|
description: This will provide some nutrition to your plants.
|
||||||
|
parent: BaseChemistryEmptyBottle
|
||||||
|
components:
|
||||||
|
- type: SolutionContainerManager
|
||||||
|
solutions:
|
||||||
|
drink:
|
||||||
|
maxVol: 30
|
||||||
|
reagents:
|
||||||
|
- ReagentId: EZNutrient
|
||||||
|
Quantity: 30
|
||||||
|
- type: Tag
|
||||||
|
tags:
|
||||||
|
- Bottle
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: UnstableMutagenChemistryBottle
|
id: UnstableMutagenChemistryBottle
|
||||||
name: unstable mutagen bottle
|
name: unstable mutagen bottle
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 5
|
potency: 5
|
||||||
idealLight: 8
|
idealLight: 8
|
||||||
nutrientConsumption: 0.15
|
nutrientConsumption: 0.30
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 5
|
potency: 5
|
||||||
idealLight: 8
|
idealLight: 8
|
||||||
nutrientConsumption: 0.15
|
nutrientConsumption: 0.30
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
production: 6
|
production: 6
|
||||||
yield: 2
|
yield: 2
|
||||||
idealLight: 9
|
idealLight: 9
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
chemicals:
|
chemicals:
|
||||||
Vitamin:
|
Vitamin:
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 10
|
potency: 10
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
chemicals:
|
chemicals:
|
||||||
JuiceCarrot:
|
JuiceCarrot:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -227,7 +227,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 10
|
potency: 10
|
||||||
growthStages: 4
|
growthStages: 4
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -277,9 +277,10 @@
|
|||||||
yield: 5
|
yield: 5
|
||||||
potency: 1
|
potency: 1
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
|
nutrientConsumption: 0.50
|
||||||
lightTolerance: 6
|
lightTolerance: 6
|
||||||
idealLight: 288
|
idealHeat: 288
|
||||||
|
|
||||||
- type: seed
|
- type: seed
|
||||||
id: tomato
|
id: tomato
|
||||||
@@ -296,8 +297,8 @@
|
|||||||
production: 6
|
production: 6
|
||||||
yield: 2
|
yield: 2
|
||||||
potency: 10
|
potency: 10
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
nutrientConsumption: 0.25
|
nutrientConsumption: 0.30
|
||||||
idealLight: 8
|
idealLight: 8
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
juicy: true
|
juicy: true
|
||||||
@@ -435,7 +436,7 @@
|
|||||||
potency: 20
|
potency: 20
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
idealLight: 8
|
idealLight: 8
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
@@ -463,7 +464,7 @@
|
|||||||
potency: 20
|
potency: 20
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
idealLight: 8
|
idealLight: 8
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
@@ -495,7 +496,7 @@
|
|||||||
potency: 20
|
potency: 20
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
idealLight: 8
|
idealLight: 8
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
@@ -527,7 +528,8 @@
|
|||||||
potency: 1
|
potency: 1
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
lightTolerance: 6
|
lightTolerance: 6
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
|
nutrientConsumption: 0.50
|
||||||
idealHeat: 288
|
idealHeat: 288
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
@@ -550,6 +552,7 @@
|
|||||||
production: 12
|
production: 12
|
||||||
yield: 2
|
yield: 2
|
||||||
potency: 20
|
potency: 20
|
||||||
|
nutrientConsumption: 0.50
|
||||||
idealLight: 9
|
idealLight: 9
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
chemicals:
|
chemicals:
|
||||||
@@ -574,6 +577,7 @@
|
|||||||
yield: 2
|
yield: 2
|
||||||
potency: 20
|
potency: 20
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
|
waterConsumption: 0.40
|
||||||
idealLight: 9
|
idealLight: 9
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
chemicals:
|
chemicals:
|
||||||
@@ -598,6 +602,7 @@
|
|||||||
yield: 2
|
yield: 2
|
||||||
potency: 20
|
potency: 20
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
|
waterConsumption: 0.40
|
||||||
idealLight: 9
|
idealLight: 9
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
chemicals:
|
chemicals:
|
||||||
@@ -622,7 +627,7 @@
|
|||||||
potency: 20
|
potency: 20
|
||||||
growthStages: 5
|
growthStages: 5
|
||||||
idealLight: 8
|
idealLight: 8
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
idealHeat: 298
|
idealHeat: 298
|
||||||
chemicals:
|
chemicals:
|
||||||
Histamine:
|
Histamine:
|
||||||
@@ -676,7 +681,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 10
|
potency: 10
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -702,7 +707,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 10
|
potency: 10
|
||||||
growthStages: 5
|
growthStages: 5
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
chemicals:
|
chemicals:
|
||||||
Aloe:
|
Aloe:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -728,7 +733,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 10
|
potency: 10
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
chemicals:
|
chemicals:
|
||||||
Ultravasculine:
|
Ultravasculine:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -754,7 +759,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 10
|
potency: 10
|
||||||
growthStages: 6
|
growthStages: 6
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -792,7 +797,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 10
|
potency: 10
|
||||||
growthStages: 3
|
growthStages: 3
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
chemicals:
|
chemicals:
|
||||||
Stellibinin:
|
Stellibinin:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -814,7 +819,8 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 10
|
potency: 10
|
||||||
growthStages: 2
|
growthStages: 2
|
||||||
waterConsumption: 6
|
waterConsumption: 0.60
|
||||||
|
nutrientConsumption: 0.50
|
||||||
chemicals:
|
chemicals:
|
||||||
Amatoxin:
|
Amatoxin:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -867,7 +873,8 @@
|
|||||||
potency: 5
|
potency: 5
|
||||||
growthStages: 4
|
growthStages: 4
|
||||||
idealLight: 5
|
idealLight: 5
|
||||||
nutrientConsumption: 0.15
|
nutrientConsumption: 0.30
|
||||||
|
waterConsumption: 0.60
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
Min: 1
|
Min: 1
|
||||||
@@ -894,7 +901,7 @@
|
|||||||
yield: 3
|
yield: 3
|
||||||
potency: 5
|
potency: 5
|
||||||
idealLight: 7
|
idealLight: 7
|
||||||
nutrientConsumption: 0.15
|
nutrientConsumption: 0.30
|
||||||
chemicals:
|
chemicals:
|
||||||
Nutriment:
|
Nutriment:
|
||||||
Min: 1
|
Min: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user