mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Fix no kill button for NNKs
This commit is contained in:
1 parent
9d89abc833
commit
6d0470308c
3 files changed
+8
-5
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user