-
Notifications
You must be signed in to change notification settings - Fork 645
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
Hotfix explosive bolt being craftable via anything with Comp Explosive #2976
Conversation
this included RTGS & Air tanks for some reason, moved the targeting requirement to a Firebomb tag. which might not be optimal but works.
This is my First attempt of this kind so this Might be a very poor method to fix this |
…s as to what its for
Convert to empty component, no new tag please. |
Thanks for the contribution. It's reasonable, but I think dvir's right on this one. The reason we don't like tags is that they always push complete inheritance - if you create a new tag and tag an item with only that (as you did here), you remove all previous tags (unsure if it's an issue in this particular case). If you look at Content.Server/_NF/Whitelist/Components, you'll see a bunch of empty [components] used for tagging items to avoid this issue. A better longer-term solution would be to build support for an NFTag that can add and remove tags from a particular entity, rather than specifying a complete set, but that's a bit more involved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good.
/// Whitelist component for crafting explosive arrow bolts | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class NFExplosivecraftingComponent : Component; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swapped the component name over from NFExplosivecrafting (vague, not camel case) to NFFireBomb. Works fine.
this included RTGS & Air tanks for some reason, moved the targeting requirement to a Firebomb tag. which might not be optimal but works.
About the PR
Why / Balance
Fixes a glaring issue reported in Bug reports
https://discord.com/channels/1123826877245694004/1343433692139225139/1343433692139225139
How to test
Attempt to create a explosive bolt with an RTG instead of the firebomb (reported to be able to be done with any explosive comp including airtanks)
Media
no longer able to be crafted with an RTG
Requirements
Breaking changes
Changelog
🆑