Adds ISuicideAct and support for Held Item and Environmental suicides (#1010)
This commit is contained in:
26
Content.Server/Interfaces/GameObjects/ISuicideAct.cs
Normal file
26
Content.Server/Interfaces/GameObjects/ISuicideAct.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Content.Server.Interfaces.Chat;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Content.Server.Interfaces.GameObjects
|
||||
{
|
||||
public interface ISuicideAct
|
||||
{
|
||||
public SuicideKind Suicide(IEntity victim, IChatManager chat);
|
||||
}
|
||||
|
||||
public enum SuicideKind
|
||||
{
|
||||
Special, //Doesn't damage the mob, used for "weird" suicides like gibbing
|
||||
|
||||
//Damage type suicides
|
||||
Brute,
|
||||
Heat,
|
||||
Cold,
|
||||
Acid,
|
||||
Toxic,
|
||||
Electric
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user