If the map is wrong, Telecommunication is notified

This commit is contained in:
HyperAtill committed 2025-07-25 15:43:00 +03:00
1 parent a628bf125b
commit a7e09bf24a
2 files changed
+7 -3

No files matched your search

+2 -1
View File
@@ -3518,7 +3518,8 @@
"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 someone uses cameras, vitals, doorlogs, or admin (you will know who specifically). If you have ability uses left, you can vent/pet to open all closed doors on the map.",
"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.",
"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.",
+5 -2
View File
@@ -362,14 +362,17 @@ internal class AntiAdminer : RoleBase
{
if (!IsMonitor) return;
if (pc == null) 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)