-
Notifications
You must be signed in to change notification settings - Fork 86
Add leather addon #1720
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
base: master
Are you sure you want to change the base?
Add leather addon #1720
Conversation
Flamefire
left a comment
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.
Thanks for working on this! I added some inline notes
2a59a2f to
e51f41e
Compare
|
From my side everything is finished so far. We can begin reviewing the changes. |
|
@Flamefire If you have time it would be nice to get a review :) |
…ly died our died by the hunter)
…s for coins - Order, upgrade, enable/disable - Add armor member to nofSoldier, reduce first armor before hitpoints
- refactor gui to handle adding new stuff more easily
… save game and replays
…t by a catapult (losing his armor)
…wrong good type for leather addon
…dons checks as bool const, use Gamesettings as parameter instead of player
Co-authored-by: Alexander Grund <[email protected]>
Co-authored-by: Alexander Grund <[email protected]>
…square for skinner
… latter inherit the former
…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()) |
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.
armoredFigure can never be NULL, can it? Did you mean to use dynamic_cast here?
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.
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
Fixes #1711