public override bool Success() { var te = AchievementStateComponent.Instance?.TriggerEvents; return(te != null && te.TryGetValue(PREFIX + type.ToString(), out bool overloaded) && overloaded); }
/// <summary> /// Triggered when a wire overloads. /// </summary> /// <param name="rating">The rating of the overloaded wire.</param> public static void OnOverload(Wire.WattageRating rating) { Trigger(OverloadWire.PREFIX + rating.ToString()); }