mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix
This commit is contained in:
1 parent
761b5259d8
commit
4718a06780
4 files changed
+15
-7
No files matched your search
@@ -183,7 +183,7 @@ public enum CustomRoles
|
||||
Goose,
|
||||
Grappler,
|
||||
Grenadier,
|
||||
GuessManagerRole,
|
||||
MeetingManager,
|
||||
Guardian,
|
||||
Helper,
|
||||
Ignitor,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -508,7 +508,7 @@ namespace EHR
|
||||
|
||||
if (room != null)
|
||||
{
|
||||
name = $"<#ffff00>{name}</color>";
|
||||
name = $"<#ff0000>{name}</color>";
|
||||
|
||||
foreach (PlayerControl pc in Main.AllAlivePlayerControls)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user