mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
<!-- This is a semi-strict format, you can add/remove sections as needed but the order/format should be kept the same Remove these comments before submitting --> # Description <!-- Explain this PR in as much detail as applicable Some example prompts to consider: How might this affect the game? The codebase? What might be some alternatives to this? How/Who does this benefit/hurt [the game/codebase]? --> Originally started because I wanted to add some stuff to salvage, but ended up with me porting over whitelisted borg hands, the PKA module, and some other stuff. --- # Changelog <!-- You can add an author after the `🆑` to change the name that appears in the changelog (ex: `🆑 Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> 🆑 - add: Engi borgs can now carry electronics, and medical borgs can carry organs - add: Salvage borgs now get a PKA module - tweak: All mining drills have had their damage turned to piercing and have received a moderate damage buff - tweak: Exosuit drills now swing at the same speed as normal drills (why were they worse???) - tweak: The RPD and RCD modules for borg have been merged into one - tweak: Salvage can now purchase drills from their vendor - tweak: Salvage borgs mining module no longer contains a shovel --------- Co-authored-by: Your Name <EctoplasmIsGood@users.noreply.github.com> Co-authored-by: Whatstone <whatston3@gmail.com> Co-authored-by: RatherUncreative <RatherUncreativeName@proton.me> Co-authored-by: Aidenkrz <aiden@djkraz.com> (cherry picked from commit ed8850e551bd9c0d533d69cad262a8743442a62a)
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Content.Shared.Stacks;
|
|
|
|
[Prototype]
|
|
public sealed partial class StackPrototype : IPrototype
|
|
{
|
|
[ViewVariables]
|
|
[IdDataField]
|
|
public string ID { get; private set; } = default!;
|
|
|
|
/// <summary>
|
|
/// Human-readable name for this stack type e.g. "Steel"
|
|
/// </summary>
|
|
/// <remarks>This is a localization string ID.</remarks>
|
|
[DataField]
|
|
public string Name { get; private set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// An icon that will be used to represent this stack type.
|
|
/// </summary>
|
|
[DataField]
|
|
public SpriteSpecifier? Icon { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The entity id that will be spawned by default from this stack.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public EntProtoId Spawn { get; private set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// The maximum amount of things that can be in a stack.
|
|
/// Can be overriden on <see cref="StackComponent"/>
|
|
/// if null, simply has unlimited max count.
|
|
/// </summary>
|
|
[DataField]
|
|
public int? MaxCount { get; private set; }
|
|
}
|