mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 05:59:03 +03:00
* Deep Fryer And Its Powers The Deep Fryer has been implemented. It uses Corn Oil, Ghee, and Olive Oil to fry. Other features include: 1. Mixing Oil and Water at a certain temperature causes smoke. 2. When throwing an object at the Deep Fryer, a Chef will *always* land the shot, but anyone else has a chance of missing. 3. When an item is sliced, an event is triggered that other items can see. * Update meal_recipes.yml * Reworking the effects so they won't trigger on init. * Create DeepFryerTest.cs * Commenting out the UnsafeOilVolumeEffects part of the .yml. Something about the sound script inside of it breaks UnintializedSaveTest and it's not necessary for a smoke reaction to occur anyway. * Update DeepFryerSystem.cs
47 lines
1.6 KiB
C#
47 lines
1.6 KiB
C#
namespace Content.Shared.Throwing
|
|
{
|
|
/// <summary>
|
|
/// Base class for all throw events.
|
|
/// </summary>
|
|
public abstract class ThrowEvent : HandledEntityEventArgs
|
|
{
|
|
///Nyano - Summary: Allows us to tell who threw the item. It matters!
|
|
/// <summary>
|
|
/// The entity that threw <see cref="Thrown"/>.
|
|
/// </summary>
|
|
public EntityUid? User { get; }
|
|
// End Nyano code.
|
|
public readonly EntityUid Thrown;
|
|
public readonly EntityUid Target;
|
|
public ThrownItemComponent Component;
|
|
|
|
public ThrowEvent(EntityUid? user, EntityUid thrown, EntityUid target, ThrownItemComponent component) //Nyano - Summary: User added.
|
|
{
|
|
User = user; //Nyano - Summary: User added.
|
|
Thrown = thrown;
|
|
Target = target;
|
|
Component = component;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Raised directed on the target entity being hit by the thrown entity.
|
|
/// </summary>
|
|
public sealed class ThrowHitByEvent : ThrowEvent
|
|
{
|
|
public ThrowHitByEvent(EntityUid? user, EntityUid thrown, EntityUid target, ThrownItemComponent component) : base(user, thrown, target, component) //Nyano - Summary: User added.
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Raised directed on the thrown entity that hits another.
|
|
/// </summary>
|
|
public sealed class ThrowDoHitEvent : ThrowEvent
|
|
{
|
|
public ThrowDoHitEvent(EntityUid thrown, EntityUid target, ThrownItemComponent component) : base(null, thrown, target, component) //Nyano - Summary: User added.
|
|
{
|
|
}
|
|
}
|
|
}
|