Skip to content
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

Ba tech advancement #5140

Merged
merged 2 commits into from
Feb 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion megamek/src/megamek/common/BattleArmor.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public int getUnitType() {
.setClanAdvancement(2710, DATE_NONE, 3058).setPrototypeFactions(F_TH)
.setReintroductionFactions(F_CS).setTechRating(RATING_D)
.setAvailability(RATING_F, RATING_X, RATING_E, RATING_D)
.setStaticTechLevel(SimpleTechLevel.STANDARD), //ultralight
.setStaticTechLevel(SimpleTechLevel.STANDARD), //PA(L)
new TechAdvancement(TECH_BASE_ALL).setISAdvancement(DATE_NONE, 3050, 3050)
.setClanAdvancement(2865, 2870, 2900).setPrototypeFactions(F_CWF)
.setProductionFactions(F_CIH, F_FS, F_LC).setClanApproximate(true, false, false)
Expand All @@ -385,12 +385,22 @@ public int getUnitType() {
.setStaticTechLevel(SimpleTechLevel.STANDARD) // assault
};

public static TechAdvancement exoskeletonTechAdvancement() {
return new TechAdvancement(TECH_BASE_ALL).setAdvancement(2100, DATE_NONE, 2200)
.setApproximate(true, false, true).setTechRating(RATING_C)
.setAvailability(RATING_B, RATING_B, RATING_B, RATING_B)
.setStaticTechLevel(SimpleTechLevel.STANDARD);
}

public static TechAdvancement getConstructionTechAdvancement(int weightClass) {
return new TechAdvancement(TA_BATTLEARMOR[weightClass]);
}

@Override
public TechAdvancement getConstructionTechAdvancement() {
if (isExoskeleton()) {
return exoskeletonTechAdvancement();
}
int index = getWeightClass();
if (index < 0 || index >= TA_BATTLEARMOR.length) {
index = EntityWeightClass.WEIGHT_MEDIUM;
Expand Down
Loading