forked from wesnoth/wesnoth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix [resistance] without max_value bug
Fix wesnoth#8092 issue. If none [resistance] ability of the list contain max_avlue, on default value of 100 is used instead.
- Loading branch information
1 parent
a320377
commit 5fd3157
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 comments
on commit 5fd3157
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.
But when none abilites has max_value?
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.
All of them will have max value. If user does not specify it is default for all of them.
Assuming highest works as max, wouldnt it give wrong result? When one ability has max_value 10 and other max_value 20, I expect resistances limited to 10.