mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 14:33:22 +00:00
Merge pull request #63 from Brighter-Applications/issues/776_Fix_Overcharged_Blueprint
Fixes Blueprint selection issue caused by fixing overcharged_blueprint.
This commit is contained in:
@@ -422,16 +422,19 @@ export default class ModificationsMenu extends TranslatedComponent {
|
|||||||
let haveBlueprint = false;
|
let haveBlueprint = false;
|
||||||
let blueprintTt;
|
let blueprintTt;
|
||||||
let blueprintCv;
|
let blueprintCv;
|
||||||
|
let bprintSearchName;
|
||||||
|
|
||||||
// Set the bprintSearchName value to the fdname of the blueprint for this module
|
|
||||||
let bprintSearchName = m.blueprint.fdname;
|
|
||||||
// If the fdname is Weapon_Overcharged, we need to check if it's an MC
|
// If the fdname is Weapon_Overcharged, we need to check if it's an MC
|
||||||
if (m.blueprint.fdname === 'Weapon_Overcharged') {
|
if (m.blueprint && m.blueprint.fdname) {
|
||||||
// If the module is a MultiCannon, we need to fix the blueprint search name, else it will find the Laser Weapon_Overcharged Blueprint and not the MC Weapon_Overcharged Blueprint
|
// Set the bprintSearchName value to the fdname of the blueprint for this module
|
||||||
if (m.symbol.match(/MultiCannon/i)) {
|
bprintSearchName = m.blueprint.fdname;
|
||||||
// console.log(Modifications.modules[m.grp].blueprints['MC_Overcharged']);
|
if (m.blueprint.fdname === 'Weapon_Overcharged') {
|
||||||
// console.log(m.blueprint.fdname);
|
// If the module is a MultiCannon, we need to fix the blueprint search name, else it will find the Laser Weapon_Overcharged Blueprint and not the MC Weapon_Overcharged Blueprint
|
||||||
bprintSearchName = 'MC_Overcharged';
|
if (m.symbol.match(/MultiCannon/i)) {
|
||||||
|
// console.log(Modifications.modules[m.grp].blueprints['MC_Overcharged']);
|
||||||
|
// console.log(m.blueprint.fdname);
|
||||||
|
bprintSearchName = 'MC_Overcharged';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: Fix this to actually find the correct blueprint.
|
// TODO: Fix this to actually find the correct blueprint.
|
||||||
|
|||||||
Reference in New Issue
Block a user