Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix explosive bolt being craftable via anything with Comp Explosive #2976

Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Content.Server._NF.Whitelist.Components;

/// <summary>
/// Whitelist component for crafting explosive arrow bolts
/// </summary>
[RegisterComponent]
public sealed partial class NFExplosivecraftingComponent : Component;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not put the comp in shared? @whatston3

Copy link
Contributor

@whatston3 whatston3 Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could move all of the whitelist components into shared, and it's probably a good idea. At the moment, the only time this would get used is in a construction graph with a ghost, which we do not have.

Works as-is, but might break if construction graphs are moved to be more predicted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
name: fire bomb
description: A weak, improvised incendiary device.
components:
- type: NFExplosivecrafting
- type: WeaponCaseInsertable # Frontier
- type: Sprite
sprite: Objects/Weapons/Bombs/ied.rsi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- type: constructionGraph
- type: constructionGraph
id: CraftCrossbowBoltGlassShard
start: start
graph:
Expand Down Expand Up @@ -127,7 +127,7 @@
sprite: Objects/Weapons/Guns/Ammunition/Casings/shotgun_shell.rsi
state: base
doAfter: 1
- component: Explosive
- component: NFExplosivecrafting
name: Firebomb
icon:
sprite: Objects/Weapons/Bombs/ied.rsi
Expand Down
Loading