Skip to content

Commit

Permalink
Removed 'durationWeeks' text from Education properties
Browse files Browse the repository at this point in the history
The 'durationWeeks' text was removed from the Education properties and the corresponding code in the Academy.java class was updated.
  • Loading branch information
IllianiCBT committed Jul 14, 2024
1 parent 98a6e91 commit a7f26e6
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 a7f26e6

Please sign in to comment.