mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 11:39:45 +00:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using MiraAPI.Example.GameOver;
|
|
using MiraAPI.GameEnd;
|
|
using MiraAPI.Roles;
|
|
using UnityEngine;
|
|
|
|
namespace MiraAPI.Example.Roles;
|
|
|
|
public class NeutralKillerRole : ImpostorRole, ICustomRole
|
|
{
|
|
public string RoleName => "Outcast Killer";
|
|
public string RoleDescription => "Outcast who can kill.";
|
|
public string RoleLongDescription => RoleDescription;
|
|
public Color RoleColor => Color.magenta;
|
|
public ModdedRoleTeams Team => ModdedRoleTeams.Custom;
|
|
|
|
public CustomRoleConfiguration Configuration => new(this)
|
|
{
|
|
UseVanillaKillButton = true,
|
|
CanGetKilled = true,
|
|
CanUseVent = true,
|
|
};
|
|
|
|
public RoleOptionsGroup RoleOptionsGroup { get; } = new("Outcast", Color.gray);
|
|
|
|
public TeamIntroConfiguration? IntroConfiguration { get; } = new(
|
|
Color.gray,
|
|
"OUTCAST",
|
|
"You are an Outcast. You do not have a team.");
|
|
|
|
public override void SpawnTaskHeader(PlayerControl playerControl)
|
|
{
|
|
// remove existing task header.
|
|
}
|
|
|
|
public override bool DidWin(GameOverReason gameOverReason)
|
|
{
|
|
return gameOverReason == CustomGameOver.GameOverReason<NeutralKillerGameOver>();
|
|
}
|
|
}
|