Adds explosion when attempting to microwave metal / bugfix (#23887)

This commit is contained in:
TinManTim
2024-01-23 17:59:09 -05:00
committed by GitHub
parent 424d3c8dc6
commit f499dfb63a
8 changed files with 153 additions and 44 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Kitchen;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Server.Kitchen.Components;
@@ -14,6 +15,10 @@ public sealed partial class ActiveMicrowaveComponent : Component
[ViewVariables(VVAccess.ReadWrite)]
public float TotalTime;
[ViewVariables(VVAccess.ReadWrite)]
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan MalfunctionTime = TimeSpan.Zero;
[ViewVariables]
public (FoodRecipePrototype?, int) PortionedRecipe;
}