-
Notifications
You must be signed in to change notification settings - Fork 487
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
Rescue ability awarts unit's reward #86
Rescue ability awarts unit's reward #86
Conversation
Codecov Report
@@ Coverage Diff @@
## master #86 +/- ##
=========================================
- Coverage 90.41% 90.4% -0.01%
=========================================
Files 80 80
Lines 1012 1011 -1
Branches 154 154
=========================================
- Hits 915 914 -1
Misses 82 82
Partials 15 15
Continue to review full report at Codecov.
|
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 @RascalTwo! The changes look good. I just have one suggestion regarding the ability's description.
@@ -25,8 +25,8 @@ Rotate in the given direction (backward by default). | |||
|
|||
### `unit.rescue([direction])`: | |||
|
|||
Rescue a captive from his chains (earning `[rescuingReward]` points) in the | |||
given direction (forward by default). | |||
Rescue a captive from his chains (earning points) in the given direction |
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.
I think that "earning a reward" is slightly better than "earning points".
|
||
function rescue() { | ||
return unit => ({ | ||
action: true, | ||
description: `Rescue a captive from his chains (earning ${rescuingReward} points) in the given direction (${defaultDirection} by default).`, | ||
description: `Rescue a captive from his chains (earning points) in the given direction (${defaultDirection} by default).`, |
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.
Idem s/points/a reward/
.
Allow the rescue ability to award the number of points assigned to the unit being rescued.
Gotcha, description changed from |
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.
Excellent, thanks!
Allow the rescue ability to award the number of points assigned to the unit being rescued.
Closes #64