Adds explosion when attempting to microwave metal / bugfix (#23887)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Content.Shared.Construction.Prototypes;
|
||||
using Content.Shared.DeviceLinking;
|
||||
using Content.Shared.Item;
|
||||
using Robust.Shared.Audio;
|
||||
@@ -12,8 +13,10 @@ namespace Content.Server.Kitchen.Components
|
||||
{
|
||||
[DataField("cookTimeMultiplier"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float CookTimeMultiplier = 1;
|
||||
|
||||
[DataField("baseHeatMultiplier"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float BaseHeatMultiplier = 100;
|
||||
|
||||
[DataField("objectHeatMultiplier"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public float ObjectHeatMultiplier = 100;
|
||||
|
||||
@@ -23,10 +26,13 @@ namespace Content.Server.Kitchen.Components
|
||||
#region audio
|
||||
[DataField("beginCookingSound")]
|
||||
public SoundSpecifier StartCookingSound = new SoundPathSpecifier("/Audio/Machines/microwave_start_beep.ogg");
|
||||
|
||||
[DataField("foodDoneSound")]
|
||||
public SoundSpecifier FoodDoneSound = new SoundPathSpecifier("/Audio/Machines/microwave_done_beep.ogg");
|
||||
|
||||
[DataField("clickSound")]
|
||||
public SoundSpecifier ClickSound = new SoundPathSpecifier("/Audio/Machines/machine_switch.ogg");
|
||||
|
||||
[DataField("ItemBreakSound")]
|
||||
public SoundSpecifier ItemBreakSound = new SoundPathSpecifier("/Audio/Effects/clang.ogg");
|
||||
|
||||
@@ -72,6 +78,23 @@ namespace Content.Server.Kitchen.Components
|
||||
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public ProtoId<ItemSizePrototype> MaxItemSize = "Normal";
|
||||
|
||||
/// <summary>
|
||||
/// How frequently the microwave can malfunction.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public float MalfunctionInterval = 1.0f;
|
||||
|
||||
/// <summary>
|
||||
/// Chance of an explosion occurring when we microwave a metallic object
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public float ExplosionChance = .1f;
|
||||
|
||||
/// <summary>
|
||||
/// Chance of lightning occurring when we microwave a metallic object
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public float LightningChance = .75f;
|
||||
}
|
||||
|
||||
public sealed class BeingMicrowavedEvent : HandledEntityEventArgs
|
||||
|
||||
Reference in New Issue
Block a user