mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Fix issue where torpedo special effects were not showing
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#2.3.6
|
#2.3.6
|
||||||
* Update miner role to provide better defaults
|
* Update miner role to provide better defaults
|
||||||
|
* Fix issue where torpedo special effects were not showing
|
||||||
|
|
||||||
#2.3.5
|
#2.3.5
|
||||||
* Ensure that hidden blueprint effects are applied when a blueprint is selected
|
* Ensure that hidden blueprint effects are applied when a blueprint is selected
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export default class ModificationsMenu extends TranslatedComponent {
|
|||||||
const translate = language.translate;
|
const translate = language.translate;
|
||||||
|
|
||||||
const specials = [];
|
const specials = [];
|
||||||
const specialsId = m.missile ? 'specials_' + m.missile : 'specials';
|
const specialsId = m.missile && Modifications.modules[m.grp]['specials_' + m.missile] ? 'specials_' + m.missile : 'specials';
|
||||||
if (Modifications.modules[m.grp][specialsId] && Modifications.modules[m.grp][specialsId].length > 0) {
|
if (Modifications.modules[m.grp][specialsId] && Modifications.modules[m.grp][specialsId].length > 0) {
|
||||||
const close = this._specialSelected.bind(this, null);
|
const close = this._specialSelected.bind(this, null);
|
||||||
specials.push(<div style={{ cursor: 'pointer' }} key={ 'none' } onClick={ close }>{translate('PHRASE_NO_SPECIAL')}</div>);
|
specials.push(<div style={{ cursor: 'pointer' }} key={ 'none' } onClick={ close }>{translate('PHRASE_NO_SPECIAL')}</div>);
|
||||||
|
|||||||
Reference in New Issue
Block a user