PKA Modkits + Rebalance (#31247)

This commit is contained in:
Nemanja
2025-04-25 14:18:23 -04:00
committed by GitHub
parent 9430a0f835
commit f900d9f8b2
24 changed files with 455 additions and 4 deletions

View File

@@ -0,0 +1,36 @@
using Content.Shared.Whitelist;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Weapons.Ranged.Upgrades.Components;
/// <summary>
/// Component that stores and manages <see cref="GunUpgradeComponent"/> that modify a given weapon.
/// </summary>
[RegisterComponent, NetworkedComponent, Access(typeof(GunUpgradeSystem))]
public sealed partial class UpgradeableGunComponent : Component
{
/// <summary>
/// ID of container that holds upgrades.
/// </summary>
[DataField]
public string UpgradesContainerId = "upgrades";
/// <summary>
/// Whitelist which denotes the types of upgrades that can be added.
/// </summary>
[DataField]
public EntityWhitelist Whitelist = new();
/// <summary>
/// Sound played when upgrade is inserted.
/// </summary>
[DataField]
public SoundSpecifier? InsertSound = new SoundPathSpecifier("/Audio/Effects/thunk.ogg");
/// <summary>
/// The maximum amount of upgrades this gun can hold.
/// </summary>
[DataField]
public int MaxUpgradeCount = 2;
}