Add module copy functionality - drag module whilst holding 'alt' to copy

This commit is contained in:
Cmdr McDonald
2016-12-18 21:37:21 +00:00
parent 5bf907809d
commit f82122f29f
7 changed files with 45 additions and 33 deletions

View File

@@ -46,7 +46,7 @@ export default class HardpointSlot extends Slot {
// Modifications tooltip shows blueprint and grade, if available
let modTT = translate('modified');
if (m && m.blueprint) {
if (m && m.blueprint && m.blueprint.name) {
modTT = translate(m.blueprint.name) + ' ' + translate('grade') + ' ' + m.blueprint.grade;
if (m.blueprint.special && m.blueprint.special.id) {
modTT += ', ' + translate(m.blueprint.special.name);