mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-20 23:17:43 +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]? --> Ports over a few items from Goob LRP, those being the dualettas, the anaconda, and the pocket dimension plant pot <!-- 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/72f66056-7eb1-4c93-92f5-d35ad4fcaf01 </p> </details> --- # 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: Added the dualettas, two stylish pistols that can be dual wielded - add: Added the anaconda, a robust syndicate handcannon that automatically generates ammo - add: Added the Pocket Dimension Plant, a normal looking potted plant that actually has a pocket dimension linked to it --------- Signed-off-by: EctoplasmIsGood <109397347+EctoplasmIsGood@users.noreply.github.com> Co-authored-by: Your Name <EctoplasmIsGood@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Aviu00 <93730715+Aviu00@users.noreply.github.com> Co-authored-by: Piras314 <p1r4s@proton.me> (cherry picked from commit 0c4803719b27dab144373600b62bb1048affe53e)
24 lines
694 B
C#
24 lines
694 B
C#
using Content.Shared.Weapons.Ranged.Systems;
|
|
using Robust.Shared.GameStates;
|
|
using Content.Shared.Whitelist;
|
|
|
|
namespace Content.Shared._Goobstation.Weapons.RequiresDualWield;
|
|
|
|
/// <summary>
|
|
/// Makes a weapon only able to be shot while dual wielding.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(RequiresDualWieldSystem))]
|
|
public sealed partial class RequiresDualWieldComponent : Component
|
|
{
|
|
public TimeSpan LastPopup;
|
|
|
|
[DataField]
|
|
public TimeSpan PopupCooldown = TimeSpan.FromSeconds(1);
|
|
|
|
[DataField]
|
|
public LocId? WieldRequiresExamineMessage = "gun-requires-dual-wield-component-examine";
|
|
|
|
[DataField]
|
|
public EntityWhitelist? Whitelist;
|
|
}
|