mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Ensure that hidden blueprint effects are applied when a blueprint is selected
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
#2.3.5
|
||||||
|
* Ensure that hidden blueprint effects are applied when a blueprint is selected
|
||||||
|
|
||||||
#2.3.4
|
#2.3.4
|
||||||
* Fix crash when removing the special effect from a module
|
* Fix crash when removing the special effect from a module
|
||||||
* Ensure comparisons with saved stock ships work correctly
|
* Ensure comparisons with saved stock ships work correctly
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "coriolis_shipyard",
|
"name": "coriolis_shipyard",
|
||||||
"version": "2.3.4",
|
"version": "2.3.5-b",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/EDCD/coriolis"
|
"url": "https://github.com/EDCD/coriolis"
|
||||||
|
|||||||
@@ -435,6 +435,14 @@ export default class Ship {
|
|||||||
*/
|
*/
|
||||||
setModuleBlueprint(m, bp) {
|
setModuleBlueprint(m, bp) {
|
||||||
m.blueprint = bp;
|
m.blueprint = bp;
|
||||||
|
this.clearModifications(m);
|
||||||
|
// Set any hidden items for the blueprint now
|
||||||
|
const features = m.blueprint.grades[m.blueprint.grade].features;
|
||||||
|
for (const featureName in features) {
|
||||||
|
if (Modifications.modifications[featureName].hidden) {
|
||||||
|
this.setModification(m, featureName, bp.grades[bp.grade].features[featureName][0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
this.updateModificationsString();
|
this.updateModificationsString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user