Skip to content

Conversation

@ottml
Copy link
Contributor

@ottml ottml commented Dec 1, 2024

Fixes #1711

Copy link
Member

@Flamefire Flamefire left a comment

Choose a reason for hiding this comment

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

Thanks for working on this! I added some inline notes

@ottml ottml force-pushed the leather_addon branch 2 times, most recently from 2a59a2f to e51f41e Compare January 22, 2025 13:44
@ottml ottml marked this pull request as ready for review June 11, 2025 17:01
@ottml
Copy link
Contributor Author

ottml commented Jun 15, 2025

From my side everything is finished so far. We can begin reviewing the changes.

@ottml
Copy link
Contributor Author

ottml commented Jun 25, 2025

@Flamefire If you have time it would be nice to get a review :)

ottml and others added 21 commits November 5, 2025 19:34
Co-authored-by: Alexander Grund <[email protected]>
Co-authored-by: Alexander Grund <[email protected]>
…and skinner in case of active leather addon to finish their work is doubled to give the skinner the chance to reach the dead animal in time
if(isSoldier(GetJobType()))
{
auto* armoredFigure = checkedCast<nofArmored*>(this);
if(armoredFigure && armoredFigure->HasArmor())
Copy link
Member

Choose a reason for hiding this comment

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

armoredFigure can never be NULL, can it? Did you mean to use dynamic_cast here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it can never be NULL and should be dynamic_cast. But as you suggested in the review earlier i will remove the nofArmored class completly and use a pure member for the armor. I will added the details add the corresponding comment in noArmored.cpp

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.

New Addon: Leather Economy (new buildings/jobs/wares)

4 participants