Skip to content

Commit

Permalink
Update description of Half Credit achievement items.
Browse files Browse the repository at this point in the history
'Gives half credit' seems ambiguous, for it could mean set the score
to 50% instead of increase the score by 50%. This updates the description
to indicate the score is increased to a maximum of 100%.
  • Loading branch information
somiaj committed Aug 17, 2024
1 parent c5f3f14 commit bd8d16f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/WeBWorK/AchievementItems/HalfCreditProb.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sub new ($class) {
return bless {
id => 'HalfCreditProb',
name => x('Lesser Rod of Revelation'),
description => x('Gives half credit on a single homework problem.')
description => x('Increases the score of a single problem by 50%, to a maximum of 100%.')
}, $class;
}

Expand Down Expand Up @@ -60,7 +60,7 @@ sub print_form ($self, $sets, $setProblemIds, $c) {
$c->tag(
'p',
$c->maketext(
'Please choose the set name and problem number of the question which should be given half credit.')
'Please choose the assignment name and problem number of the question to add half credit to.')
),
WeBWorK::AchievementItems::form_popup_menu_row(
$c,
Expand Down
6 changes: 4 additions & 2 deletions lib/WeBWorK/AchievementItems/HalfCreditSet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sub new ($class) {
return bless {
id => 'HalfCreditSet',
name => x('Lesser Tome of Enlightenment'),
description => x('Gives half credit on every problem in a set.')
description => x('Increases the score of every problem in an assignment by 50%, to a maximum of 100%.')
}, $class;
}

Expand All @@ -41,7 +41,9 @@ sub print_form ($self, $sets, $setProblemIds, $c) {
return unless @openSets;

return $c->c(
$c->tag('p', $c->maketext('Please choose the set for which all problems should have half credit added.')),
$c->tag(
'p', $c->maketext('Please choose the assignment for which all problems should have half credit added.')
),
WeBWorK::AchievementItems::form_popup_menu_row(
$c,
id => 'hcs_set_id',
Expand Down

0 comments on commit bd8d16f

Please sign in to comment.