mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-16 21:17:39 +03:00
# Description I am trying to port over the AI turrets being implemented into wizden made by chromiumboy. It looks fantastic and would like to port this now and work on any issues that might show. --- # Original PRs https://github.com/space-wizards/space-station-14/issues/35223 https://github.com/space-wizards/space-station-14/pull/35025 https://github.com/space-wizards/space-station-14/pull/35031 https://github.com/space-wizards/space-station-14/pull/35058 https://github.com/space-wizards/space-station-14/pull/35123 https://github.com/space-wizards/space-station-14/pull/35149 https://github.com/space-wizards/space-station-14/pull/35235 https://github.com/space-wizards/space-station-14/pull/35236 --- # TODO - [x] Port all related PRs to EE. - [x] Patch any bugs with turrets or potential issues. - [x] Cleanup my shitcode or changes. --- # Changelog 🆑 - add: Added recharging sentry turrets, one is AI-based or the other is Sec can make. - add: The sentry turrets can be made after researching in T3 arsenal. The boards are made in the sec fab. - add: New ID permissions for borgs and minibots for higher turret options. - tweak: Turrets stop shooting after someone goes crit. --------- Co-authored-by: Nathaniel Adams <60526456+Nathaniel-Adams@users.noreply.github.com> (cherry picked from commit 209d0537401cbda448a03e910cca9a898c9d566f)
36 lines
923 B
C#
36 lines
923 B
C#
using Content.Shared.Access.Components;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Access;
|
|
|
|
/// <summary>
|
|
/// Contains a list of access tags that are part of this group.
|
|
/// Used by <see cref="AccessComponent"/> to avoid boilerplate.
|
|
/// </summary>
|
|
[Prototype("accessGroup")]
|
|
public sealed partial class AccessGroupPrototype : IPrototype
|
|
{
|
|
[IdDataField]
|
|
public string ID { get; private set; } = default!;
|
|
|
|
/// <summary>
|
|
/// The player-visible name of the access level group
|
|
/// </summary>
|
|
[DataField]
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// The access levels associated with this group
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public HashSet<ProtoId<AccessLevelPrototype>> Tags = default!;
|
|
|
|
public string GetAccessGroupName()
|
|
{
|
|
if (Name is { } name)
|
|
return Loc.GetString(name);
|
|
|
|
return ID;
|
|
}
|
|
}
|