mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
Apply discounts when ship updates
This commit is contained in:
@@ -606,6 +606,7 @@ export default class CostSection extends TranslatedComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (nextProps.ship != this.props.ship || nextProps.code != this.props.code) {
|
if (nextProps.ship != this.props.ship || nextProps.code != this.props.code) {
|
||||||
|
nextProps.ship.applyDiscounts(Persist.getShipDiscount(), Persist.getModuleDiscount());
|
||||||
this._updateAmmoCosts(nextProps.ship);
|
this._updateAmmoCosts(nextProps.ship);
|
||||||
this._updateRetrofit(nextProps.ship, retrofitShip);
|
this._updateRetrofit(nextProps.ship, retrofitShip);
|
||||||
this._sortCost(nextProps.ship);
|
this._sortCost(nextProps.ship);
|
||||||
|
|||||||
Reference in New Issue
Block a user