Skip to content

Commit

Permalink
Merge branch 'release/2.2.17'
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdrmcdonald committed Feb 18, 2017
2 parents 230351b + e42a0d1 commit 178d38f
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 7 deletions.
9 changes: 9 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#2.2.17
* Use in-game terminology for shield generator optmul and optmass items
* Add crew to shipyard and outfitting page information
* Use coriolis-data 2.2.17:
* Add mass as potential SCB modification
* Fix mining laser statistics
* Remove non-existent grade 4 and 5 wake scanner modifications
* Add number of crew for each ship

#2.2.16
* Fix 'Extreme' blueprint roll where some incorrect ranges were chosen
* Use coriolis-data 2.2.16:
Expand Down
3 changes: 2 additions & 1 deletion __tests__/fixtures/anaconda-test-detailed-export-v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@
"shieldExplRes": 0.5,
"shieldKinRes": 0.4,
"shieldThermRes": -0.2,
"timeToDrain": 7.04
"timeToDrain": 7.04,
"crew": 3
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coriolis_shipyard",
"version": "2.2.16",
"version": "2.2.17",
"repository": {
"type": "git",
"url": "https://github.com/EDCD/coriolis"
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/InternalSlot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export default class InternalSlot extends Slot {
<div className={'r'}>{formats.round(mass)}{u.T}</div>
</div>
<div className={'cb'}>
{ m.getOptMass() ? <div className={'l'}>{translate('optimal mass')}: {formats.int(m.getOptMass())}{u.T}</div> : null }
{ m.getMaxMass() ? <div className={'l'}>{translate('max mass')}: {formats.int(m.getMaxMass())}{u.T}</div> : null }
{ m.getOptMass() ? <div className={'l'}>{translate('optmass', m.grp)}: {formats.int(m.getOptMass())}{u.T}</div> : null }
{ m.getMaxMass() ? <div className={'l'}>{translate('maxmass', m.grp)}: {formats.int(m.getMaxMass())}{u.T}</div> : null }
{ m.bins ? <div className={'l'}>{m.bins} <u>{translate('bins')}</u></div> : null }
{ m.bays ? <div className={'l'}>{translate('bays')}: {m.bays}</div> : null }
{ m.rebuildsperbay ? <div className={'l'}>{translate('rebuildsperbay')}: {m.rebuildsperbay}</div> : null }
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Modification.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class Modification extends TranslatedComponent {

return (
<div className={'cb'} key={name}>
<div className={'cb'}>{translate(name)}{symbol}</div>
<div className={'cb'}>{translate(name, m.grp)}{symbol}</div>
<NumberEditor className={'cb'} style={{ width: '90%', textAlign: 'center' }} step={0.01} stepModifier={1} decimals={2} value={this.state.value} onValueChange={this._updateValue.bind(this)} />
</div>
);
Expand Down
2 changes: 2 additions & 0 deletions src/app/components/ShipSummaryTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export default class ShipSummaryTable extends TranslatedComponent {
<th rowSpan={2}>{translate('fuel')}</th>
<th colSpan={3}>{translate('jump range')}</th>
<th onMouseEnter={termtip.bind(null, 'PHRASE_FASTEST_RANGE')} onMouseLeave={hide} colSpan={3}>{translate('fastest range')}</th>
<th rowSpan={2}>{translate('crew')}</th>
<th onMouseEnter={termtip.bind(null, 'mass lock factor')} onMouseLeave={hide} rowSpan={2}>{translate('MLF')}</th>
</tr>
<tr>
Expand Down Expand Up @@ -88,6 +89,7 @@ export default class ShipSummaryTable extends TranslatedComponent {
<td>{int(ship.maxJumpCount)}</td>
<td>{f2(ship.unladenFastestRange)} {u.LY}</td>
<td>{f2(ship.ladenFastestRange)} {u.LY}</td>
<td>{ship.crew}</td>
<td>{ship.masslock}</td>
</tr>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/app/i18n/Language.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export function getLanguage(langCode) {
let gen = d3Locale.numberFormat('n');

if(lang === EN) {
translate = (t) => { return currentTerms[t] || t; };
translate = (t, x) => { return currentTerms[t + '_' + x] || currentTerms[t] || t; };
} else {
translate = (t) => { return currentTerms[t] || fallbackTerms[t] || t; };
translate = (t, x) => { return currentTerms[t + '_' + x] || currentTerms[t] || fallbackTerms[t + '_' + x] || fallbackTerms[t] || t; };
}

return {
Expand Down
8 changes: 8 additions & 0 deletions src/app/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ export const terms = {
wepcap: 'Weapons capacity',
weprate: 'Weapons recharge rate',

// Shield generators use a different terminology
minmass_sg: 'Minimum hull mass',
optmass_sg: 'Optimal hull mass',
maxmass_sg: 'Maximum hull mass',
minmul_sg: 'Minimum strength',
optmul_sg: 'Optimal strength',
maxmul_sg: 'Minimum strength',

// Help text
HELP_TEXT: `
<h1>Introduction</h1>
Expand Down
2 changes: 2 additions & 0 deletions src/app/pages/ShipyardPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export default class ShipyardPage extends Page {
<td className='cap'>{translate(SizeMap[s.class])}</td>
<td className='ri'>{fInt(s.agility)}</td>
<td className='ri'>{fInt(s.hardness)}</td>
<td className='ri'>{fInt(s.crew)}</td>
<td className='ri'>{fInt(s.speed)}{u['m/s']}</td>
<td className='ri'>{fInt(s.boost)}{u['m/s']}</td>
<td className='ri'>{fInt(s.baseArmour)}</td>
Expand Down Expand Up @@ -270,6 +271,7 @@ export default class ShipyardPage extends Page {
<th rowSpan={2} className='sortable' onClick={sortShips('class')}>{translate('size')}</th>
<th rowSpan={2} className='sortable' onClick={sortShips('agility')}>{translate('agility')}</th>
<th rowSpan={2} className='sortable' onClick={sortShips('hardness')}>{translate('hardness')}</th>
<th rowSpan={2} className='sortable' onClick={sortShips('crew')}>{translate('crew')}</th>
<th colSpan={4}>{translate('base')}</th>
<th colSpan={4}>{translate('max')}</th>
<th colSpan={6}>{translate('core module classes')}</th>
Expand Down

0 comments on commit 178d38f

Please sign in to comment.