Merge pull request #322 from Gurge44/hyper-patch-1

Hyper patch 1
This commit is contained in:
HyperAtill authored and GitHub committed 2025-07-25 17:09:14 +03:00
commit 8a16de120b
2 files changed
+5 -7

No files matched your search

+1 -2
View File
@@ -3518,8 +3518,7 @@
"DetourInfoLong": "(Crewmate):\\nAs the Detour, all kill button related actions on you will be blocked and instead happen on the closest player to you.",
"Monitor": "Telecommunication",
"MonitorInfo": "Track device usage",
"MonitorInfoLong": "(Crewmates):\\nAs the Telecommunication, you are notified when anyone uses cameras, vitals, doorlogs, or admin. Depending on settings, you can also open doors by venting or petting (this ability doesn't work on Skeld, Dleks and Mira HQ).",
"DoorsCannotBeUnlockedOnSkeldDleksMira": "Doors can't be unlocked on Skeld, Dleks and Mira HQ.",
"MonitorInfoLong": "(Crewmates):\\nAs the Telecommunication, you are notified when anyone uses cameras, vitals, doorlogs, or admin. Depending on settings, you may also have the ability to open closed doors by venting/petting your pet.",
"Werewolf": "Werewolf",
"WerewolfInfo": "Vent to Rampage to kill quickly",
"WerewolfInfoLong": "(Neutrals):\\nAs the Werewolf, you can go on a rampage by entering a vent. While you're rampaging you have a very short kill cooldown. You cannot kill when you aren't rampaging. Rampaging has a cooldown and a limited duration.",
+4 -5
View File
@@ -76,6 +76,7 @@ internal class AntiAdminer : RoleBase
IsMonitor = Main.PlayerStates[playerId].MainRole == CustomRoles.Monitor;
ExtraAbilityStartTimeStamp = 0;
AntiAdminerId = playerId;
if(IsMonitor && Main.CurrentMap != MapNames.MiraHQ) playerId.SetAbilityUseLimit(Monitor.UseLimitOpt.GetInt());
}
public override void Remove(byte playerId)
@@ -362,17 +363,15 @@ internal class AntiAdminer : RoleBase
{
if (!IsMonitor) return;
if (pc == null) return;
if (Main.CurrentMap == MapNames.MiraHQ) return;
if (Main.CurrentMap == MapNames.Skeld || Main.CurrentMap == MapNames.Dleks || Main.CurrentMap == MapNames.MiraHQ)
pc.Notify(Translator.GetString("DoorsCannotBeUnlockedOnSkeldDleksMira"));
if (pc.GetAbilityUseLimit() < 1)
pc.Notify(Translator.GetString("OutOfAbilityUsesDoMoreTasks"));
if (pc.GetAbilityUseLimit() >= 1)
{
pc.RpcRemoveAbilityUse();
DoorsReset.OpenAllDoors();
}
else
pc.Notify(Translator.GetString("OutOfAbilityUsesDoMoreTasks"));
}
public override bool CanUseVent(PlayerControl pc, int ventId)