|
33 | 33 | */ |
34 | 34 | package mekhq.campaign.parts; |
35 | 35 |
|
36 | | -import static mekhq.utilities.MHQInternationalization.getFormattedTextAt; |
37 | | - |
38 | 36 | import java.io.PrintWriter; |
39 | 37 | import java.text.DecimalFormat; |
40 | 38 | import java.util.ArrayList; |
|
106 | 104 | */ |
107 | 105 | public abstract class Part implements IPartWork, ITechnology { |
108 | 106 | private static final MMLogger LOGGER = MMLogger.create(Part.class); |
109 | | - private static final String RESOURCE_BUNDLE = "mekhq.resources.Parts"; |
110 | 107 |
|
111 | 108 | private static final DecimalFormat TONNAGE_FORMATTER = new DecimalFormat("0.#"); |
112 | 109 |
|
@@ -978,13 +975,6 @@ public TargetRoll getAllMods(final @Nullable Person tech) { |
978 | 975 | mods.addModifier(1, "difficult to maintain"); |
979 | 976 | } |
980 | 977 |
|
981 | | - // Apply obsolete quirk modifier |
982 | | - int obsoleteMod = getUnit().getEntity().getObsoleteRepairModifier(campaign.getGameYear()); |
983 | | - if (obsoleteMod > 0) { |
984 | | - mods.addModifier(obsoleteMod, |
985 | | - getFormattedTextAt(RESOURCE_BUNDLE, "Part.modifier.obsolete")); |
986 | | - } |
987 | | - |
988 | 978 | if (getUnit().hasPrototypeTSM() && |
989 | 979 | ((this instanceof MekLocation) || |
990 | 980 | (this instanceof MissingMekLocation) || |
@@ -1043,13 +1033,6 @@ public TargetRoll getAllModsForMaintenance() { |
1043 | 1033 | mods.addModifier(1, "difficult to maintain"); |
1044 | 1034 | } |
1045 | 1035 |
|
1046 | | - // Apply obsolete quirk modifier |
1047 | | - int obsoleteMod = getUnit().getEntity().getObsoleteRepairModifier(campaign.getGameYear()); |
1048 | | - if (obsoleteMod > 0) { |
1049 | | - mods.addModifier(obsoleteMod, |
1050 | | - getFormattedTextAt(RESOURCE_BUNDLE, "Part.modifier.obsolete")); |
1051 | | - } |
1052 | | - |
1053 | 1036 | if (getUnit().getTech() != null) { |
1054 | 1037 | if (getUnit().getTech().getOptions().booleanOption(PersonnelOptions.TECH_WEAPON_SPECIALIST) && |
1055 | 1038 | ((IPartWork.findCorrectRepairType(this) == PartRepairType.WEAPON) || |
|
0 commit comments