mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
few fixes
This commit is contained in:
1 parent
ed6ebed013
commit
bedb16d1a1
7 files changed
+49
-23
No files matched your search
@@ -36,6 +36,11 @@ public class Hypocrite : RoleBase
|
||||
HypocritePC = playerId.GetPlayer();
|
||||
}
|
||||
|
||||
public override bool CanUseKillButton(PlayerControl pc)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnTaskComplete(PlayerControl pc, int completedTaskCount, int totalTaskCount)
|
||||
{
|
||||
if (!pc.IsAlive()) return;
|
||||
@@ -63,7 +68,7 @@ public class Hypocrite : RoleBase
|
||||
|
||||
public override string GetSuffix(PlayerControl seer, PlayerControl target, bool hud = false, bool meeting = false)
|
||||
{
|
||||
if (seer.PlayerId != target.PlayerId || hud || seer.Is(Team.Impostor) || meeting || HypocritePC == null || !HypocritePC.IsAlive() || !seer.IsAlive()) return string.Empty;
|
||||
if (seer.PlayerId != target.PlayerId || hud || seer.Is(Team.Impostor) || meeting || !HypocritePC || !HypocritePC.IsAlive() || !seer.IsAlive()) return string.Empty;
|
||||
|
||||
TaskState ts = HypocritePC.GetTaskState();
|
||||
if (!NonImpGetsNotifyWhenLowTasks.GetBool() || ts.RemainingTasksCount > NotifyAtXTasksLeft.GetInt()) return string.Empty;
|
||||
|
||||
Reference in new issue
Block a user