Files
wwdpublic/Content.Server/Objectives/Components/StealAreaComponent.cs
Lumminal 3aaaac7c06 [PORT] Thief Beacon (#2447)
# Description

Ports thieving beacon.

PRs ported:
https://github.com/space-wizards/space-station-14/pull/29997
https://github.com/space-wizards/space-station-14/pull/34430
https://github.com/space-wizards/space-station-14/pull/33750
https://github.com/space-wizards/space-station-14/pull/32764

<!--
This is default collapsed, readers click to expand it and see all your
media
The PR media section can get very large at times, so this is a good way
to keep it clean
The title is written using HTML tags
The title must be within the <summary> tags or you won't see it
-->

<details><summary><h1>Media</h1></summary>
<p>



https://github.com/user-attachments/assets/a25836d0-7d1c-47fb-b284-762e20ce1299



</p>
</details>

---

# Changelog

🆑 TheShuEd, sporkyz, ReeZer2, Alpha-Two
- add: Ported thieving beacon from wizden. Have fun stealing pets now!

---------

Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
Co-authored-by: John <35928781+sporkyz@users.noreply.github.com>
Co-authored-by: ReeZer2 <63300653+ReeZer2@users.noreply.github.com>
Co-authored-by: Alpha-Two <92269094+Alpha-Two@users.noreply.github.com>
2025-07-12 12:30:27 +10:00

24 lines
693 B
C#

using Content.Server.Objectives.Systems;
using Content.Server.Thief.Systems;
namespace Content.Server.Objectives.Components;
/// <summary>
/// An abstract component that allows other systems to count adjacent objects as "stolen" when controlling other systems
/// </summary>
[RegisterComponent, Access(typeof(StealConditionSystem), typeof(ThiefBeaconSystem))]
public sealed partial class StealAreaComponent : Component
{
[DataField]
public bool Enabled = true;
[DataField]
public float Range = 1f;
/// <summary>
/// all the minds that will be credited with stealing from this area.
/// </summary>
[DataField]
public HashSet<EntityUid> Owners = new();
}