mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Added (non-functional) resistances
This commit is contained in:
@@ -23,7 +23,7 @@ export default class ShipSummaryTable extends TranslatedComponent {
|
|||||||
let translate = language.translate;
|
let translate = language.translate;
|
||||||
let u = language.units;
|
let u = language.units;
|
||||||
let formats = language.formats;
|
let formats = language.formats;
|
||||||
let { time, int, round, f1, f2 } = formats;
|
let { time, int, round, f1, f2, pct } = formats;
|
||||||
let armourDetails = null;
|
let armourDetails = null;
|
||||||
let sgClassNames = cn({ warning: ship.sgSlot && !ship.shieldStrength, muted: !ship.sgSlot });
|
let sgClassNames = cn({ warning: ship.sgSlot && !ship.shieldStrength, muted: !ship.sgSlot });
|
||||||
let sgRecover = '-';
|
let sgRecover = '-';
|
||||||
@@ -42,12 +42,24 @@ export default class ShipSummaryTable extends TranslatedComponent {
|
|||||||
sgRecharge = time(ship.calcShieldRecharge());
|
sgRecharge = time(ship.calcShieldRecharge());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//<th colSpan={3}>{translate('shield resistance')}</th>
|
||||||
|
//<th colSpan={3}>{translate('hull resistance')}</th>
|
||||||
|
//<th className='lft'>{translate('explosive')}</th>
|
||||||
|
//<th className='lft'>{translate('kinetic')}</th>
|
||||||
|
//<th className='lft'>{translate('thermal')}</th>
|
||||||
|
//<th className='lft'>{translate('explosive')}</th>
|
||||||
|
//<th className='lft'>{translate('kinetic')}</th>
|
||||||
|
//<th className='lft'>{translate('thermal')}</th>
|
||||||
|
//<td>{pct(ship.shieldExplRes)}</td>
|
||||||
|
//<td>{pct(ship.shieldKinRes)}</td>
|
||||||
|
//<td>{pct(ship.shieldThermRes)}</td>
|
||||||
|
//<td>{pct(ship.hullExplRes)}</td>
|
||||||
|
//<td>{pct(ship.hullKinRes)}</td>
|
||||||
|
//<td>{pct(ship.hullThermRes)}</td>
|
||||||
return <div id='summary'>
|
return <div id='summary'>
|
||||||
<table id='summaryTable'>
|
<table id='summaryTable'>
|
||||||
<thead>
|
<thead>
|
||||||
<tr className='main'>
|
<tr className='main'>
|
||||||
<th rowSpan={2}>{translate('size')}</th>
|
|
||||||
<th onMouseEnter={termtip.bind(null, 'maneuverability')} onMouseLeave={hide} rowSpan={2}>{translate('MNV')}</th>
|
|
||||||
<th rowSpan={2} className={ cn({ 'bg-warning-disabled': !ship.canThrust() }) }>{translate('speed')}</th>
|
<th rowSpan={2} className={ cn({ 'bg-warning-disabled': !ship.canThrust() }) }>{translate('speed')}</th>
|
||||||
<th rowSpan={2} className={ cn({ 'bg-warning-disabled': !ship.canBoost() }) }>{translate('boost')}</th>
|
<th rowSpan={2} className={ cn({ 'bg-warning-disabled': !ship.canBoost() }) }>{translate('boost')}</th>
|
||||||
<th onMouseEnter={termtip.bind(null, 'damage per second')} onMouseLeave={hide} rowSpan={2}>{translate('DPS')}</th>
|
<th onMouseEnter={termtip.bind(null, 'damage per second')} onMouseLeave={hide} rowSpan={2}>{translate('DPS')}</th>
|
||||||
@@ -79,8 +91,6 @@ export default class ShipSummaryTable extends TranslatedComponent {
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td className='cap'>{translate(SizeMap[ship.class])}</td>
|
|
||||||
<td>{ship.agility}/10</td>
|
|
||||||
<td>{ ship.canThrust() ? <span>{int(ship.topSpeed)} {u['m/s']}</span> : <span className='warning'>0 <Warning/></span> }</td>
|
<td>{ ship.canThrust() ? <span>{int(ship.topSpeed)} {u['m/s']}</span> : <span className='warning'>0 <Warning/></span> }</td>
|
||||||
<td>{ ship.canBoost() ? <span>{int(ship.topBoost)} {u['m/s']}</span> : <span className='warning'>0 <Warning/></span> }</td>
|
<td>{ ship.canBoost() ? <span>{int(ship.topBoost)} {u['m/s']}</span> : <span className='warning'>0 <Warning/></span> }</td>
|
||||||
<td>{f1(ship.totalDps)}</td>
|
<td>{f1(ship.totalDps)}</td>
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ export const terms = {
|
|||||||
burst: 'Burst',
|
burst: 'Burst',
|
||||||
clip: 'Ammunition clip',
|
clip: 'Ammunition clip',
|
||||||
damage: 'Damage',
|
damage: 'Damage',
|
||||||
delay: 'Delay',
|
|
||||||
dps: 'Damage per second',
|
dps: 'Damage per second',
|
||||||
distdraw: 'Distributor draw',
|
distdraw: 'Distributor draw',
|
||||||
duration: 'Duration',
|
duration: 'Duration',
|
||||||
@@ -121,6 +120,7 @@ export const terms = {
|
|||||||
rof: 'Rate of fire',
|
rof: 'Rate of fire',
|
||||||
shield: 'Shield',
|
shield: 'Shield',
|
||||||
shieldmul: 'Shield boost',
|
shieldmul: 'Shield boost',
|
||||||
|
spinup: 'Spin up time',
|
||||||
syscap: 'Systems capacity',
|
syscap: 'Systems capacity',
|
||||||
sysrate: 'Systems recharge rate',
|
sysrate: 'Systems recharge rate',
|
||||||
thermload: 'Thermal load',
|
thermload: 'Thermal load',
|
||||||
|
|||||||
@@ -478,6 +478,12 @@ export default class Ship {
|
|||||||
this.totalDps = 0;
|
this.totalDps = 0;
|
||||||
this.totalEps = 0;
|
this.totalEps = 0;
|
||||||
this.totalHps = 0;
|
this.totalHps = 0;
|
||||||
|
this.shieldExplRes = 0;
|
||||||
|
this.shieldKinRes = 0;
|
||||||
|
this.shieldThermRes = 0;
|
||||||
|
this.hullExplRes = 0;
|
||||||
|
this.hullKinRes = 0;
|
||||||
|
this.hullThermRes = 0;
|
||||||
|
|
||||||
this.bulkheads.m = null;
|
this.bulkheads.m = null;
|
||||||
this.useBulkhead(comps && comps.bulkheads ? comps.bulkheads : 0, true);
|
this.useBulkhead(comps && comps.bulkheads ? comps.bulkheads : 0, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user