Skip to content

Commit

Permalink
0.11.1 hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
qcwxezda committed Mar 7, 2024
1 parent 304ac15 commit 9598ff1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
Binary file modified jars/Progressive S-Mods.jar
Binary file not shown.
5 changes: 1 addition & 4 deletions latest_changelog.txt
@@ -1,4 +1 @@
Author: chdcl
- Revamped build-in UI
- Increasing s-mod limit now applies a modifier to Stats.MAX_PERMANENT_HULLMODS_MOD
- Allow fractional SP costs when increasing s-mod limit, with the fractional remainder being refunded as bonus XP
- Fix NPE if unapplicable reason is null
2 changes: 1 addition & 1 deletion mod_info.json
Expand Up @@ -2,7 +2,7 @@
"id": "progressiveSMods",
"name": "Progressive S-Mods",
"author": "qcwxezda, chdcl",
"version": {"major":0, "minor":11, "patch":0},
"version": {"major":0, "minor":11, "patch":1},
"dependencies": [],
"description": "Ships gain XP during combat that can be spent to build in hull mods. Disables building in hull mods using story points.",
"gameVersion":"0.97a-RC11",
Expand Down
2 changes: 1 addition & 1 deletion progsmod.version
Expand Up @@ -6,6 +6,6 @@
{
"major":0,
"minor":11,
"patch":0,
"patch":1,
},
}
Expand Up @@ -17,7 +17,6 @@
import progsmod.data.campaign.rulecmd.ui.HullModButton;
import progsmod.data.campaign.rulecmd.ui.LabelWithVariables;
import progsmod.data.campaign.rulecmd.ui.PanelCreator.PanelCreatorData;
import progsmod.data.campaign.rulecmd.util.HullModButtonData;
import progsmod.data.campaign.rulecmd.util.TempShipMaker;
import progsmod.data.campaign.rulecmd.util.XPHelper;
import progsmod.data.campaign.rulecmd.util.XPHelper.Affordable;
Expand Down Expand Up @@ -231,7 +230,7 @@ private BitSet disableUnapplicable() {
String reason = hullMod.getEffect().getCanNotBeInstalledNowReason(checkerShip,
interactionTarget.getMarket(), tradeMode);
shouldDisable = true;
if (!button.data.isBuiltIn) {
if (reason != null && !button.data.isBuiltIn) {
// getCanNotBeInstalledNowReason() returns a weird message when trying to build in logistic
// hullmods while not at a spaceport or station
reason = reason.replace("Can only be removed at", "Can only be built in at");
Expand Down

0 comments on commit 9598ff1

Please sign in to comment.