Does anyone know why?
The bug line is
@Override
public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
stats.getDynamic().getMod(Stats.SALVAGE_VALUE_MULT_MOD).modifyFlat(id, (Float) mag.get(hullSize) * 0.01f);
}
which looks fine except when referring to the hullSize
static {
mag.put(HullSize.FRIGATE, 1f);
mag.put(HullSize.DESTROYER, 2f);
mag.put(HullSize.CRUISER, 3f);
mag.put(HullSize.CAPITAL_SHIP, 5f);
}
Someone's mod is utilizing a ship that doesn't have a hullsize of any of these ship classes... for some weird reason. This bug doesn't seem to appear when the HullSize.FIGHTER and HullSize.DEFAULT is defined.. so. You can fix this by going to the said file and inserting in a
mag.put(HullSize.DEFAULT, 1f);
mag.put(HullSize.FIGHTER, 1f);
within the static table.
@Override
public void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id) {
stats.getDynamic().getMod(Stats.SALVAGE_VALUE_MULT_MOD).modifyFlat(id, (Float) mag.get(hullSize) * 0.01f);
}
which looks fine except when referring to the hullSize
static {
mag.put(HullSize.FRIGATE, 1f);
mag.put(HullSize.DESTROYER, 2f);
mag.put(HullSize.CRUISER, 3f);
mag.put(HullSize.CAPITAL_SHIP, 5f);
}
Ok. But what file are you talking about and where can I find it to make such a correction?