* Garbage Vaporizer 3000
+ DestroyGarbage bool property
+ DestroyGarbage property check when dealing with incoming trash
* Update ContainmentFieldComponent.cs
Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
---------
Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
{
var otherBody = args.OtherEntity;
- if (HasComp<SpaceGarbageComponent>(otherBody))
+ if (component.DestroyGarbage && HasComp<SpaceGarbageComponent>(otherBody))
{
_popupSystem.PopupEntity(Loc.GetString("comp-field-vaporized", ("entity", otherBody)), uid, PopupType.LargeCaution);
QueueDel(otherBody);
/// </summary>
[DataField("maxMass")]
public float MaxMass = 10000f;
+
+ /// <summary>
+ /// Should field vaporize garbage that collides with it?
+ /// </summary>
+ [DataField]
+ public bool DestroyGarbage = true;
}