Fix no kill button for NNKs

This commit is contained in:
Gurge44 committed 2024-03-04 19:15:37 +01:00
1 parent 9d89abc833
commit 6d0470308c
3 files changed
+8 -5

No files matched your search

+5
View File
@@ -64,6 +64,11 @@ namespace TOHE.Roles.Neutral
public override bool IsEnable => On;
public override bool CanUseImpostorVentButton(PlayerControl pc) => false;
public override bool CanUseKillButton(PlayerControl pc)
{
return pc.IsAlive() && !isWon;
}
public override void ApplyGameOptions(IGameOptions opt, byte playerId)
{
opt.SetVision(true);
+2 -5
View File
@@ -50,11 +50,8 @@ public class Maverick : RoleBase
public override void SetKillCooldown(byte id) => Main.AllPlayerKillCooldown[id] = KillCooldown.GetFloat();
public override void ApplyGameOptions(IGameOptions opt, byte id) => opt.SetVision(HasImpostorVision.GetBool());
public override bool CanUseImpostorVentButton(PlayerControl pc) => CanVent.GetBool();
public override bool CanUseSabotage(PlayerControl pc)
{
return false;
}
public override bool CanUseKillButton(PlayerControl pc) => pc.IsAlive();
public override bool CanUseSabotage(PlayerControl pc) => false;
public override string GetProgressText(byte playerId, bool comms)
{
+1
View File
@@ -171,6 +171,7 @@ public class Romantic : RoleBase
public override void OnReportDeadBody() => IsPartnerProtected = false;
public override bool CanUseImpostorVentButton(PlayerControl pc) => false;
public override bool CanUseKillButton(PlayerControl pc) => pc.IsAlive();
public static void ChangeRole()
{