Adds ISuicideAct and support for Held Item and Environmental suicides (#1010)

This commit is contained in:
Leo
2020-05-27 20:05:12 -03:00
committed by GitHub
parent a77c1125ce
commit 312ec5760c
6 changed files with 166 additions and 9 deletions

View 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
}
}