mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
small changes
This commit is contained in:
1 parent
54a9051bbe
commit
ab761633b4
2 files changed
+4
-3
No files matched your search
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user