This commit is contained in:
Gurge44 committed 2025-06-13 12:24:41 +02:00
1 parent 761b5259d8
commit 4718a06780
4 files changed
+15 -7

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ public enum CustomRoles
Goose,
Grappler,
Grenadier,
GuessManagerRole,
MeetingManager,
Guardian,
Helper,
Ignitor,
+1 -2
View File
@@ -269,8 +269,7 @@ public static class NaturalDisasters
};
SystemTypes? room = disaster.Name == "BuildingCollapse" ? roomKvp.Key : null;
float warningTime = DisasterWarningTime.GetFloat();
PreparingDisasters.Add(new(position, warningTime, Sprite(disaster.Name), disaster.Name, room));
AddPreparingDisaster(position, disaster.Name, room);
}
if (now - LastSync >= 15)
+1 -1
View File
@@ -508,7 +508,7 @@ namespace EHR
if (room != null)
{
name = $"<#ffff00>{name}</color>";
name = $"<#ff0000>{name}</color>";
foreach (PlayerControl pc in Main.AllAlivePlayerControls)
{
+12 -3
View File
@@ -27,9 +27,15 @@ internal static class NotificationPopperPatch
SendRpc(0, index, playSound: playSound);
string name = key.GetName();
if (name == "Accept") return;
string parentName = key.Parent?.GetName() ?? string.Empty;
if (parentName == "Accept") return;
string str = key.Parent != null
? FastDestroyableSingleton<TranslationController>.Instance.GetString(StringNames.LobbyChangeSettingNotification, "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + key.Parent.GetName() + "</font>: <font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + key.GetName() + "</font>", "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + optValue + "</font>")
: FastDestroyableSingleton<TranslationController>.Instance.GetString(StringNames.LobbyChangeSettingNotification, "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + key.GetName() + "</font>", "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + optValue + "</font>");
? FastDestroyableSingleton<TranslationController>.Instance.GetString(StringNames.LobbyChangeSettingNotification, "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + parentName + "</font>: <font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + name + "</font>", "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + optValue + "</font>")
: FastDestroyableSingleton<TranslationController>.Instance.GetString(StringNames.LobbyChangeSettingNotification, "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + name + "</font>", "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + optValue + "</font>");
SettingsChangeMessageLogic(key, str, playSound);
}
@@ -39,8 +45,11 @@ internal static class NotificationPopperPatch
string optValue = key.GetString();
if (optValue == "STRMISS") return;
string name = key.GetName();
if (name == "Accept") return;
SendRpc(1, index, customRole, playSound);
string str = FastDestroyableSingleton<TranslationController>.Instance.GetString(StringNames.LobbyChangeSettingNotification, "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + key.GetName() + "</font>", "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + optValue + "</font>");
string str = FastDestroyableSingleton<TranslationController>.Instance.GetString(StringNames.LobbyChangeSettingNotification, "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + name + "</font>", "<font=\"Barlow-Black SDF\" material=\"Barlow-Black Outline\">" + optValue + "</font>");
SettingsChangeMessageLogic(key, str, playSound);
}