Skip to content

Conversation

@misterbubb
Copy link
Contributor

Fixes #2434

@misterbubb misterbubb marked this pull request as ready for review December 20, 2025 18:12
@github-actions
Copy link

Test Results

245 tests  ±0   244 ✅ ±0   6s ⏱️ ±0s
  1 suites ±0     1 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit f058f7f. ± Comparison against base commit 177a8cc.

Comment on lines +77 to +81
if (gameObject.TryGetComponent(out CrafterLogic crafterLogic))
{
Base parentBase = gameObject.GetComponentInParent<Base>();
if (parentBase)
{
Copy link
Member

Choose a reason for hiding this comment

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

Would use early return here for the two ifs to provide better readability.

Base parentBase = gameObject.GetComponentInParent<Base>();
if (parentBase)
{
foreach (GhostCrafter crafter in parentBase.GetComponentsInChildren<GhostCrafter>(true))
Copy link
Member

Choose a reason for hiding this comment

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

@tornac1234 Is there a better way to find the ghostcrafter in a base?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Supposedly there's a list of ghosts linked to a base (Base.ghosts) but I'm not sure if crafters are added to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fabricator crafting sound doesn't seem to play

3 participants