Ensure plants always have some reagents after crossing (#20078)
This commit is contained in:
@@ -319,12 +319,15 @@ public sealed class MutationSystem : EntitySystem
|
|||||||
if (!other.ContainsKey(this_chem.Key))
|
if (!other.ContainsKey(this_chem.Key))
|
||||||
{
|
{
|
||||||
if (Random(0.5f))
|
if (Random(0.5f))
|
||||||
|
{
|
||||||
|
if (val.Count > 1)
|
||||||
{
|
{
|
||||||
val.Remove(this_chem.Key);
|
val.Remove(this_chem.Key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void CrossGasses(ref Dictionary<Gas, float> val, Dictionary<Gas, float> other)
|
private void CrossGasses(ref Dictionary<Gas, float> val, Dictionary<Gas, float> other)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user