Hot Fix of Gravity Grenades (#19414)

* Supermatter grenade fix

* taking out the trash

* Removing debug Console.Log() in twostage

* More fixes

* Better to put LoadComponents on Update, else it will modify list of other untriggered components
This commit is contained in:
AlexMorgan3817
2023-09-04 19:23:48 +07:00
committed by GitHub
parent 91cfabd6f6
commit 61b0e6abcd
4 changed files with 21 additions and 17 deletions

View File

@@ -19,12 +19,15 @@ public sealed partial class TwoStageTriggerComponent : Component
/// <summary>
/// This list of components that will be added for the second trigger.
/// </summary>
[ViewVariables(VVAccess.ReadOnly)]
[DataField("components", required: true)]
public ComponentRegistry SecondStageComponents = new();
[DataField("nextTriggerTime", customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan? NextTriggerTime;
[ViewVariables(VVAccess.ReadWrite), DataField("triggered")] public bool Triggered = false;
[DataField("triggered")]
public bool Triggered = false;
[DataField("ComponentsIsLoaded")]
public bool ComponentsIsLoaded = false;
}