small changes

This commit is contained in:
Gurge44 committed 2025-10-14 14:05:38 +02:00
1 parent 54a9051bbe
commit ab761633b4
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -562,7 +562,8 @@ public static class Utils
string str = GetString("Prefix." + subRole);
if (!subRole.IsAdditionRole()) str = GetString(subRole.ToString());
roleText = ColorString(GetRoleColor(subRole), (Options.AddBracketsToAddons.GetBool() ? "<#ffffff>(</color>" : string.Empty) + str + (Options.AddBracketsToAddons.GetBool() ? "<#ffffff>)</color>" : string.Empty) + " ") + roleText;
bool brackets = Options.AddBracketsToAddons.GetBool();
roleText = ColorString(GetRoleColor(subRole), $"{(brackets ? "(" : string.Empty)}{str}{(brackets ? ")" : string.Empty)} ") + roleText;
}
}
}
+2 -2
View File
@@ -32,11 +32,11 @@ public class Vampire : RoleBase
{
Options.SetupRoleOptions(Id, TabGroup.ImpostorRoles, CustomRoles.Vampire);
Cooldown = new FloatOptionItem(Id + 9, "VampireKillCooldown", new(1f, 90f, 1f), 30f, TabGroup.ImpostorRoles)
Cooldown = new FloatOptionItem(Id + 9, "VampireKillCooldown", new(1f, 120f, 1f), 30f, TabGroup.ImpostorRoles)
.SetParent(Options.CustomRoleSpawnChances[CustomRoles.Vampire])
.SetValueFormat(OptionFormat.Seconds);
OptionKillDelay = new FloatOptionItem(Id + 10, "VampireKillDelay", new(1f, 30f, 1f), 3f, TabGroup.ImpostorRoles)
OptionKillDelay = new FloatOptionItem(Id + 10, "VampireKillDelay", new(1f, 120f, 1f), 3f, TabGroup.ImpostorRoles)
.SetParent(Options.CustomRoleSpawnChances[CustomRoles.Vampire])
.SetValueFormat(OptionFormat.Seconds);