Skip to content

[Feature] Colossus Clowncar - #2658

Merged
WBHarry merged 12 commits into
mainfrom
feature/colossus-clown-car
Nov 27, 2026
Merged

WBHarry merged 12 commits into
mainfrom
feature/colossus-clown-car

Conversation

@WBHarry

@WBHarry WBHarry commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Swapped from placing all parts onCreate to instead make use of the clowncar functionality.

ColossiClowncar.mp4

@WBHarry
WBHarry marked this pull request as draft November 23, 2026 21:13
@CarlosFdez

Copy link
Copy Markdown
Contributor

placeParts also updates the frameworkActor of already existing parts. You'll have to maintain that functionality in some way in the _onCreate(), since that functionality helps with handling the user accidentally deleting and re-adding the framework.

@WBHarry
WBHarry marked this pull request as ready for review November 25, 2026 16:38
@WBHarry

WBHarry commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

placeParts also updates the frameworkActor of already existing parts. You'll have to maintain that functionality in some way in the _onCreate(), since that functionality helps with handling the user accidentally deleting and re-adding the framework.

I've added the "summoning-placement" handling now. Can be done via TokenHUD or a button in the Adversary Sheet sidebar.

As for the onCreate logic,
Is that just the actor.reset(); that needs to be called, or is it more?

@CarlosFdez

Copy link
Copy Markdown
Contributor

As for the onCreate logic, Is that just the actor.reset(); that needs to be called, or is it more?

You can test by creating a collosus, deleting the main, and then adding the main again. It should not prompt to create the parts. If you delete one part and a main, and add the main again, it should prompt for a single part.

It is handled by the abandonedParts acquisition in placeParts at the very top.

@WBHarry

WBHarry commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

As for the onCreate logic, Is that just the actor.reset(); that needs to be called, or is it more?

You can test by creating a collosus, deleting the main, and then adding the main again. It should not prompt to create the parts. If you delete one part and a main, and add the main again, it should prompt for a single part.

It is handled by the abandonedParts acquisition in placeParts at the very top.

🙌

  • I split out the fetch of missingParts as it's own function, so we can check it ahead of time to give notifications when all parts are already present, etc.
  • I split out the handling of abandonedParts into it's own function, and it's now called during document/token/_onCreate
  • Fixed a small bug that probably wouldn't come up much, but all the same. Check was pointing at the wrong propertyPath, making a second dropped in framework token assign existing parts belonging to a first one to itself.
image

@WBHarry

WBHarry commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

As a note, I added a typeData.adjacentParts property for role=part.
I wanted to display the clean text of what the adjacent segments are during part placement, and the actual actor names don't match that.

Took advantage of it and made the adjacentParts string get enriched onto the description, so we don't have to write it out for parts anymore.
image

@CarlosFdez

Copy link
Copy Markdown
Contributor

Adjacent Parts works for me, though I was tempted on making that a list of actors so we can open the door to drawing lines in the canvas. Wouldn't render as well in the embed nor sheet though. It was cause of that indecision and the need for an MVP that I didn't do it, but a text block is simple.

@WBHarry

WBHarry commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

An alternative would be to add a simpleName property, so we'd have:
typeData.simpleName {string} and typeData.adjacentParts {Array<DhAdversary>}

It does come with all the maintenance of keeping another actor linked though

@CarlosFdez

Copy link
Copy Markdown
Contributor

The thing about the alternative is that they may say "Arms" and there are multiple arm actors, so it gets shortened.

At the very least for actual links, we don't need to bother with the relink as its not involved in actually creating an actor, but we would need to validate that it least matches a part on the framework. Adjacent can be tested against compendium source. But yeah, the best I can think of is Adjacent Segments: Ikeri Arm x2, Ikeri Leg x2.

Text label is fine, since I don't think we plan to visibly link them anytime soon.

@WBHarry

WBHarry commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Yeah, I think it's a reasonable simple way out. If we're inspired to do upgrades at some point, it's not exactly rough to just let the current string data die.

@WBHarry

WBHarry commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

There is also Daggerheart's tendency to name/write random things to consider. Who is to say they won't make a Colossi stating: Adjacent Segments: One unlucky, selected character!

Comment thread lang/en.json Outdated
Comment on lines +817 to +818
"retrieveColossiTitle": "Retrieve Colossi Parts",
"retrieveColossiText": "Retrieving the colossi parts removes them, losing any data on marked hit points, applied active effects etc. Are you sure?"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe change to "Retrieving the colossi parts deletes all marked hit points, active effects, and features., This data cannot be recovered. Are you sure?"

Maybe both this and title should be grouped up in a single retrieveCollosi group or something like that? That's what we do for other dialogs (see DAGGERHEART.ACTORS.Adversary.changeType)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

  • Moved the confirm dialog localization under common retrieveCollosi namespace
  • Changed the content localization to the better one 👍
  • The ArrowDunk icon in the adversary sheet is now not shown if all parts are accounted for on the canvas
  • Fixed so the sheet sidebar collosi list is properly rerendered after placing the parts

@CarlosFdez

Copy link
Copy Markdown
Contributor

I fixed a new regression where parts could not be opened if it didn't have a framework actor. I also fixed a bug (that exists in live!) where you can't add a part to a framework while both are in the compendium.

There is an error remaining where the collosus sidebar header link (to deposit) still allows you to click it in the compendium or in world items, and in both instances it fails/errors out. Once fixed I can take another look at this PR.

@WBHarry

WBHarry commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

There is an error remaining where the collosus sidebar header link (to deposit) still allows you to click it in the compendium or in world items, and in both instances it fails/errors out. Once fixed I can take another look at this PR.

I fixed so the sidebar colossus section is just a title for Compendium/WorldActors. I did the same thing for colossus parts, as the logic only works for the framework. (we could of course allow it and grab the linked framework, but I dunno if it's needed)

@CarlosFdez

Copy link
Copy Markdown
Contributor

The one thing that stands out to me is extended description. Try putting the actors in @Embed. Maybe we should reproduce the item description prepend stuff?

@WBHarry
WBHarry merged commit 901bd92 into main Nov 27, 2026
1 check passed
@WBHarry
WBHarry deleted the feature/colossus-clown-car branch November 27, 2026 10:49
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.

2 participants