mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
* organise roles and fix role and gamemode namespaces * fix hudspritepatch import
21 lines
711 B
C#
21 lines
711 B
C#
using static EHR.Options;
|
|
|
|
namespace EHR.Roles;
|
|
|
|
internal class Antidote : IAddon
|
|
{
|
|
public AddonTypes Type => AddonTypes.Mixed;
|
|
|
|
public void SetupCustomOption()
|
|
{
|
|
const int id = 648500;
|
|
SetupAdtRoleOptions(id, CustomRoles.Antidote, canSetNum: true, teamSpawnOptions: true);
|
|
|
|
AntidoteCDOpt = new FloatOptionItem(id + 8, "AntidoteCDOpt", new(0f, 180f, 1f), 5f, TabGroup.Addons)
|
|
.SetParent(CustomRoleSpawnChances[CustomRoles.Antidote])
|
|
.SetValueFormat(OptionFormat.Seconds);
|
|
|
|
AntidoteCDReset = new BooleanOptionItem(id + 9, "AntidoteCDReset", true, TabGroup.Addons)
|
|
.SetParent(CustomRoleSpawnChances[CustomRoles.Antidote]);
|
|
}
|
|
} |