Skip to content

Commit

Permalink
Merge pull request #4411 from IllianiCBT/education_removeDaysToWeeksD…
Browse files Browse the repository at this point in the history
…isplay

Removed 'durationWeeks' Text from Education Tooltip
  • Loading branch information
NickAragua authored Jul 16, 2024
2 parents 103efce + a7f26e6 commit 5d4451d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion MekHQ/resources/mekhq/resources/Education.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ educationLevel.text=Education Level:
nothingToLearn.text=nothing to learn
tuition.text=Tuition:
duration.text=Duration:
durationWeeks.text=weeks
durationDays.text=days
durationAge.text=until %s years old
distance.text=Travel Time:
Expand Down
6 changes: 1 addition & 5 deletions MekHQ/src/mekhq/campaign/personnel/education/Academy.java
Original file line number Diff line number Diff line change
Expand Up @@ -926,11 +926,7 @@ public String getTooltip(Campaign campaign, List<Person> personnel, int courseIn
.append("</b> ").append(' ').append(String.format(resources.getString("durationAge.text"), ageMax)).append("<br>");
} else {
tooltip.append("<b>").append(resources.getString("duration.text")).append("</b> ");
if ((durationDays / 7) < 1) {
tooltip.append(durationDays).append(' ').append(resources.getString("durationDays.text")).append("<br>");
} else {
tooltip.append(durationDays / 7).append(' ').append(resources.getString("durationWeeks.text")).append("<br>");
}
tooltip.append(durationDays).append(' ').append(resources.getString("durationDays.text")).append("<br>");
}

// we need to do a little extra work to get travel time, to cover academies with multiple campuses
Expand Down

0 comments on commit 5d4451d

Please sign in to comment.