Skip to content
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

Make default knowledge value for random hero as 1 #8813

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ihhub
Copy link
Owner

@ihhub ihhub commented Jun 7, 2024

Also, limit minimum knowledge value to 1 rather than 0.

close #8750

Also, limit minimum knowledge value to 1 rather than 0.

close #8750
@ihhub ihhub added improvement New feature, request or improvement logic Things related to game logic editor Map editor related stuff labels Jun 7, 2024
@ihhub ihhub added this to the 1.1.1 milestone Jun 7, 2024
Copy link

sonarcloud bot commented Jun 7, 2024

Copy link
Collaborator

@Districh-ru Districh-ru left a comment

Choose a reason for hiding this comment

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

Hi, @ihhub.
In this PR we only clamp the "modified" knowledge value, but the base knowledge can still be 0.
We should not allow to enter a value lower than 1 for knowledge in hero edit dialog and in battle only dialog.

fheroes2.2024-06-08.07-06-28-904.1.mp4

Comment on lines +207 to +208
int power{ 0 };
int knowledge{ 0 };
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we also set 1 as the default value for power and knowledge skills then?

@ihhub ihhub modified the milestones: 1.1.1, 1.1.2 Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor Map editor related stuff improvement New feature, request or improvement logic Things related to game logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Scenario Editor] The default Knowledge value should be "1", not "0"
2 participants