mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
* Update CustomRoles.cs * Update Flash.cs * Update Main.cs * Update CustomRolesHelper.cs * Update ExtendedPlayerControl.cs * Update PlayerGameOptionsSender.cs * Update GameState.cs * Update GuessManager.cs * Update HudPatch.cs * Update CustomRoleSelector.cs * Update OptionHolder.cs * Update en_US.json * Update IntroPatch.cs * Update en_US.json
16 lines
537 B
C#
16 lines
537 B
C#
namespace EHR.AddOns.Common;
|
|
|
|
internal class Flash : IAddon
|
|
{
|
|
public AddonTypes Type => AddonTypes.Helpful;
|
|
|
|
public void SetupCustomOption()
|
|
{
|
|
Options.SetupAdtRoleOptions(18700, CustomRoles.Flash, canSetNum: true, tab: TabGroup.Addons, teamSpawnOptions: true);
|
|
|
|
Options.FlashSpeed = new FloatOptionItem(18708, "FlashSpeed", new(0.25f, 3f, 0.05f), 2.5f, TabGroup.Addons)
|
|
.SetParent(Options.CustomRoleSpawnChances[CustomRoles.Flash])
|
|
.SetValueFormat(OptionFormat.Multiplier);
|
|
}
|
|
}
|