mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Package bump
This commit is contained in:
@@ -5,6 +5,12 @@
|
|||||||
* Tidy up shipyard page; remove units from data columns and re-order for legibility
|
* Tidy up shipyard page; remove units from data columns and re-order for legibility
|
||||||
* Allow basic drag/drop functionality in Edge/Internet Explorer 11 browser
|
* Allow basic drag/drop functionality in Edge/Internet Explorer 11 browser
|
||||||
* Provide separate special effects for dumbfire and seeker missiles
|
* Provide separate special effects for dumbfire and seeker missiles
|
||||||
|
* Include special effect modifiers in blueprint tooltip
|
||||||
|
* Use coriolis-data 2.3.4:
|
||||||
|
* Add missing Long Range blueprint to multi-cannon
|
||||||
|
* Fix values for thermal load of focused weapon grade 4
|
||||||
|
* Fix internal module information for power plant blueprints
|
||||||
|
* Add 'FSD Interrupt' special to dumbfire missile racks; this module now has `specials_S` and `specials_D` keys for specials to differentiate
|
||||||
|
|
||||||
#2.3.3
|
#2.3.3
|
||||||
* Remove unused blueprint when hitting reset
|
* Remove unused blueprint when hitting reset
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "coriolis_shipyard",
|
"name": "coriolis_shipyard",
|
||||||
"version": "2.3.4-b",
|
"version": "2.3.4",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/EDCD/coriolis"
|
"url": "https://github.com/EDCD/coriolis"
|
||||||
|
|||||||
@@ -87,6 +87,36 @@ export function blueprintTooltip(translate, blueprint, engineers, grp, m) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We also add in any benefits from specials that aren't covered above
|
||||||
|
if (m.blueprint && m.blueprint.special) {
|
||||||
|
for (const feature in Modifications.modifierActions[m.blueprint.special.edname]) {
|
||||||
|
if (!blueprint.features[feature] && !m.mods.feature) {
|
||||||
|
const featureDef = Modifications.modifications[feature];
|
||||||
|
let symbol = '';
|
||||||
|
if (feature === 'jitter') {
|
||||||
|
symbol = '°';
|
||||||
|
} else if (featureDef.type === 'percentage') {
|
||||||
|
symbol = '%';
|
||||||
|
}
|
||||||
|
let current = m.getModValue(feature);
|
||||||
|
if (featureDef.type === 'percentage' || featureDef.name === 'burst' || featureDef.name === 'burstrof') {
|
||||||
|
current = Math.round(current / 10) / 10;
|
||||||
|
} else if (featureDef.type === 'numeric') {
|
||||||
|
current /= 100;
|
||||||
|
}
|
||||||
|
const currentIsBeneficial = isValueBeneficial(feature, current);
|
||||||
|
effects.push(
|
||||||
|
<tr key={feature}>
|
||||||
|
<td style={{ textAlign: 'left' }}>{translate(feature, grp)}</td>
|
||||||
|
<td> </td>
|
||||||
|
<td className={current === 0 ? '' : currentIsBeneficial ? 'secondary' : 'warning'} style={{ textAlign: 'right' }}>{current}{symbol}</td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let components;
|
let components;
|
||||||
if (!m) {
|
if (!m) {
|
||||||
|
|||||||
Reference in New Issue
Block a user