Fix React list without keys, fix int miscalculation of blade skills.

This commit is contained in:
Olivier Gagnon 2021-08-17 23:52:18 -04:00
parent 9af9bf58b6
commit fa78b3f421
3 changed files with 3 additions and 2 deletions

@ -969,6 +969,7 @@ export class Bladeburner implements IBladeburner {
effDex: 1,
effAgi: 1,
effCha: 1,
effInt: 1,
stamina: 1,
money: 1,
expGain: 1,

@ -124,7 +124,7 @@ export class Skill {
if(name === "stamina") return this.stamina;
if(name === "money") return this.money;
if(name === "expGain") return this.expGain;
return 1;
return 0;
}
}

@ -24,7 +24,7 @@ export function TravelPopup(props: IProps): React.ReactElement {
{BladeburnerConstants.CityNames.map(city =>
// Reusing this css class...it adds a border and makes it
// so that background color changes when you hover
<div className="cmpy-mgmt-find-employee-option"
<div key={city} className="cmpy-mgmt-find-employee-option"
onClick={() => travel(city)}>
{city}
</div>)}