mirror of
https://github.com/FalloutCollaborationProject/FCP-Tools.git
synced 2026-07-27 16:59:37 -07:00
21 lines
564 B
C#
21 lines
564 B
C#
namespace FCP.Core;
|
|
|
|
public class CompMechDetonator : ThingComp
|
|
{
|
|
public CompProperties_MechDetonator Props => (CompProperties_MechDetonator)props;
|
|
|
|
public override IEnumerable<Gizmo> CompGetGizmosExtra()
|
|
{
|
|
if (parent.Faction != Faction.OfPlayer)
|
|
yield break;
|
|
|
|
Gizmo detonateAction = new Command_Action
|
|
{
|
|
icon = Props.GetUiIcon(),
|
|
defaultLabel = "FCP_MechDetonate".Translate(),
|
|
action = () => { parent.Kill(); }
|
|
};
|
|
yield return detonateAction;
|
|
|
|
}
|
|
} |