Skip to content

Commit

Permalink
Fix duplicate id
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy-XL committed Mar 1, 2025
1 parent c224431 commit 0f32e9c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Roles/Impostor/AbyssBringer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ public override void SetupCustomOption()
{
const TabGroup tab = TabGroup.ImpostorRoles;
const CustomRoles role = CustomRoles.Abyssbringer;
Options.SetupRoleOptions(Id, tab, role);
SetupRoleOptions(Id, tab, role);
BlackHoleCountLimit = IntegerOptionItem.Create(Id + 16, "BlackHoleCountLimit", new(1, 15, 1), 1, tab, false)
.SetParent(Options.CustomRoleSpawnChances[role]);
.SetParent(CustomRoleSpawnChances[role]);
BlackHolePlaceCooldown = IntegerOptionItem.Create(Id + 10, "BlackHolePlaceCooldown", new(1, 180, 1), 30, tab, false)
.SetParent(Options.CustomRoleSpawnChances[role])
.SetParent(CustomRoleSpawnChances[role])
.SetValueFormat(OptionFormat.Seconds);
BlackHoleDespawnMode = StringOptionItem.Create(Id + 11, "BlackHoleDespawnMode", Enum.GetNames<DespawnMode>(), 0, tab, false)
.SetParent(Options.CustomRoleSpawnChances[role]);
.SetParent(CustomRoleSpawnChances[role]);
BlackHoleDespawnTime = IntegerOptionItem.Create(Id + 12, "BlackHoleDespawnTime", new(1, 60, 1), 15, tab, false)
.SetParent(BlackHoleDespawnMode)
.SetValueFormat(OptionFormat.Seconds);
BlackHoleMovesTowardsNearestPlayer = BooleanOptionItem.Create(Id + 13, "BlackHoleMovesTowardsNearestPlayer", true, tab, false)
.SetParent(Options.CustomRoleSpawnChances[role]);
.SetParent(CustomRoleSpawnChances[role]);
BlackHoleMoveSpeed = FloatOptionItem.Create(Id + 14, "BlackHoleMoveSpeed", new(0.25f, 10f, 0.25f), 1f, tab, false)
.SetParent(BlackHoleMovesTowardsNearestPlayer);
BlackHoleRadius = FloatOptionItem.Create(Id + 15, "BlackHoleRadius", new(0.1f, 5f, 0.1f), 1.2f, tab, false)
.SetParent(Options.CustomRoleSpawnChances[role])
.SetParent(CustomRoleSpawnChances[role])
.SetValueFormat(OptionFormat.Multiplier);
CanKillTNA = BooleanOptionItem.Create(Id + 16, "CanKillTNA", false, tab, false).SetParent(CustomRoleSpawnChances[role]);
CanKillTNA = BooleanOptionItem.Create(Id + 17, "CanKillTNA", false, tab, false).SetParent(CustomRoleSpawnChances[role]);
}

public override void ApplyGameOptions(IGameOptions opt, byte playerId)
Expand Down

0 comments on commit 0f32e9c

Please sign in to comment.