mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-28 09:39:20 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b29f08f599 | ||
|
|
8ae1c8da9b |
No files matched your search
@@ -24,16 +24,12 @@ namespace CustomTeamAssigner
|
||||
private static readonly Dictionary<CustomRoles, string> RoleNames = new()
|
||||
{
|
||||
{ CustomRoles.Hacker, "Anonymous" },
|
||||
{ CustomRoles.Sans, "Arrogance" },
|
||||
{ CustomRoles.OverKiller, "Butcher" },
|
||||
{ CustomRoles.EvilDiviner, "Consigliere" },
|
||||
{ CustomRoles.BallLightning, "Lightning" },
|
||||
{ CustomRoles.LovingCrewmate, "Lover" },
|
||||
{ CustomRoles.LovingImpostor, "Loving Impostor" },
|
||||
{ CustomRoles.Mafia, "Nemesis" },
|
||||
{ CustomRoles.ImperiusCurse, "Soul Catcher" },
|
||||
{ CustomRoles.BoobyTrap, "Trapster" },
|
||||
{ CustomRoles.Bloodhound, "Coroner" },
|
||||
{ CustomRoles.Divinator, "Fortune Teller" },
|
||||
{ CustomRoles.ParityCop, "Inspector" },
|
||||
{ CustomRoles.Needy, "Lazy Guy" },
|
||||
|
||||
@@ -42,8 +42,8 @@ public class Main : BasePlugin
|
||||
private const string DebugKeyHash = "c0fd562955ba56af3ae20d7ec9e64c664f0facecef4b3e366e109306adeae29d";
|
||||
private const string DebugKeySalt = "59687b";
|
||||
private const string PluginGuid = "com.gurge44.endlesshostroles";
|
||||
public const string PluginVersion = "6.6.0";
|
||||
public const string PluginDisplayVersion = "6.6.0";
|
||||
public const string PluginVersion = "6.6.1";
|
||||
public const string PluginDisplayVersion = "6.6.1";
|
||||
public const bool TestBuild = false;
|
||||
|
||||
public const string NeutralColor = "#ffab1b";
|
||||
|
||||
@@ -1879,8 +1879,6 @@ internal static class ExtendedPlayerControl
|
||||
if (Options.CurrentGameMode == CustomGameMode.SoloKombat) return;
|
||||
|
||||
if (target == null) target = killer;
|
||||
|
||||
if (!target.IsAlive()) return;
|
||||
|
||||
CheckAndSpawnAdditionalRefugee(target.Data);
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public class Goddess : Coven
|
||||
|
||||
public override bool OnCheckMurderAsTarget(PlayerControl killer, PlayerControl target)
|
||||
{
|
||||
if (AbilityEndTS == 0 || killer.Is(CustomRoles.Pestilence)) return true;
|
||||
if (AbilityEndTS == 0 || killer.Is(CustomRoles.Pestilence) || !killer.IsAlive()) return true;
|
||||
|
||||
killer.SetRealKiller(target);
|
||||
target.Kill(killer);
|
||||
|
||||
@@ -104,6 +104,8 @@ internal class Veteran : RoleBase
|
||||
|
||||
public override bool OnCheckMurderAsTarget(PlayerControl killer, PlayerControl target)
|
||||
{
|
||||
if (!killer.IsAlive()) return false;
|
||||
|
||||
if (VeteranInProtect.ContainsKey(target.PlayerId)
|
||||
&& killer.PlayerId != target.PlayerId
|
||||
&& VeteranInProtect[target.PlayerId] + VeteranSkillDuration.GetInt() >= Utils.TimeStamp)
|
||||
|
||||
Reference in new issue
Block a user