Ling fixes and tweaks (#259)

* - fix: Bees fix.

* - fix: Transform transfers body type.

* - fix: Chemcap is transfered on transform.

* - fix: Gulag objective actual fix.

* - fix: Fix escape with identity not working.

* - tweak: Fixes & objective tweaks.

* - tweak: More slowdown from ling armor.
This commit is contained in:
Aviu00
2024-04-01 20:36:32 +09:00
committed by GitHub
parent 9603c83adf
commit 2e57cbf514
19 changed files with 143 additions and 45 deletions

View File

@@ -819,6 +819,7 @@ public sealed partial class ChangelingSystem
var toAdd = new ChangelingComponent
{
HiveName = component.HiveName,
ChemicalCapacity = component.ChemicalCapacity,
ChemicalsBalance = component.ChemicalsBalance,
AbsorbedEntities = component.AbsorbedEntities,
IsInited = component.IsInited,
@@ -902,10 +903,10 @@ public sealed partial class ChangelingSystem
if (component.AbsorbedEntities.ContainsKey(targetDna.DNA))
return;
if (component.AbsorbedEntities.Count == 7)
/*if (component.AbsorbedEntities.Count == 7)
{
component.AbsorbedEntities.Remove(component.AbsorbedEntities.ElementAt(2).Key);
}
}*/
var appearance = _serializationManager.CreateCopy(targetAppearance, notNullableOverride: true);
var meta = _serializationManager.CreateCopy(targetMeta, notNullableOverride: true);
@@ -966,6 +967,7 @@ public sealed partial class ChangelingSystem
var toAdd = new ChangelingComponent
{
HiveName = lingComp.HiveName,
ChemicalCapacity = lingComp.ChemicalCapacity,
ChemicalsBalance = lingComp.ChemicalsBalance,
AbsorbedEntities = lingComp.AbsorbedEntities,
IsInited = lingComp.IsInited,
@@ -1104,7 +1106,8 @@ public sealed partial class ChangelingSystem
targetHumanoid.EyeColor = sourceHumanoid.EyeColor;
targetHumanoid.Age = sourceHumanoid.Age;
_humanoidAppearance.SetSex(target, sourceHumanoid.Sex, false, targetHumanoid);
_humanoidAppearance.SetSpecies(target, sourceHumanoid.Species);
_humanoidAppearance.SetBodyType(target, sourceHumanoid.BodyType, false, targetHumanoid);
_humanoidAppearance.SetSpecies(target, sourceHumanoid.Species, true, targetHumanoid);
targetHumanoid.CustomBaseLayers = new Dictionary<HumanoidVisualLayers,
CustomBaseLayerInfo>(sourceHumanoid.CustomBaseLayers);