Save seed data in components and remove the seed-database (#7499)

This commit is contained in:
Leon Friedrich
2022-04-16 17:32:35 +12:00
committed by GitHub
parent 98e7c84dad
commit 6997bd83b2
16 changed files with 225 additions and 232 deletions

View File

@@ -20,13 +20,13 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
if (random.Prob(0.1f))
{
plantHolderComp.CheckForDivergence(true);
plantHolderComp.EnsureUniqueSeed();
plantHolderComp.Seed.Lifespan++;
}
if (random.Prob(0.1f))
{
plantHolderComp.CheckForDivergence(true);
plantHolderComp.EnsureUniqueSeed();
plantHolderComp.Seed.Endurance++;
}
}

View File

@@ -20,13 +20,13 @@ namespace Content.Server.Chemistry.ReagentEffects.PlantMetabolism
if (plantHolderComp.Seed.Potency < 100 && random.Prob(0.1f))
{
plantHolderComp.CheckForDivergence(true);
plantHolderComp.EnsureUniqueSeed();
plantHolderComp.Seed.Potency++;
}
if (plantHolderComp.Seed.Yield > 1 && random.Prob(0.1f))
{
plantHolderComp.CheckForDivergence(true);
plantHolderComp.EnsureUniqueSeed();
plantHolderComp.Seed.Yield--;
}
}