mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 09:57:32 +01:00
Fixed empty td Element issue with new React Character overview. Updated changelog
This commit is contained in:
parent
e6c5ff7ab7
commit
c973663dc2
@ -289,6 +289,8 @@ export let CONSTANTS: IMap<any> = {
|
|||||||
** Increased the cost multiplier for upgrading office size (the cost will increase faster)
|
** Increased the cost multiplier for upgrading office size (the cost will increase faster)
|
||||||
** The stats of your employees now has a slightly larger effect on production & sales
|
** The stats of your employees now has a slightly larger effect on production & sales
|
||||||
** Added several new Research upgrades
|
** Added several new Research upgrades
|
||||||
|
** Market-TA research now allows you to automatically set sale price at optimal values
|
||||||
|
** Market-TA research now works for Products (not just Materials)
|
||||||
** Reduced the amount of Scientific Research needed to unlock the Hi-Tech R&D Laboratory from 10k to 5k
|
** Reduced the amount of Scientific Research needed to unlock the Hi-Tech R&D Laboratory from 10k to 5k
|
||||||
** Energy Material requirement of the Software industry reduced from 1 to 0.5
|
** Energy Material requirement of the Software industry reduced from 1 to 0.5
|
||||||
** It is now slightly easier to increase the Software industry's production multiplier
|
** It is now slightly easier to increase the Software industry's production multiplier
|
||||||
@ -299,6 +301,7 @@ export let CONSTANTS: IMap<any> = {
|
|||||||
** Training employees is now 3x more effective
|
** Training employees is now 3x more effective
|
||||||
** Bug Fix: An industry's products are now properly separated between different cities
|
** Bug Fix: An industry's products are now properly separated between different cities
|
||||||
|
|
||||||
|
* Added a Netscript API for Duplicate Sleeves (by hydroflame)
|
||||||
* Rebalanced BitNode-3 to make it slightly harder
|
* Rebalanced BitNode-3 to make it slightly harder
|
||||||
* Bug Fix: Bladeburner's Hyperbolic Regeneration Chamber should no longer instantly refill all stamina
|
* Bug Fix: Bladeburner's Hyperbolic Regeneration Chamber should no longer instantly refill all stamina
|
||||||
* Bug Fix: The cost of purchasing Augmentations for Duplicate Sleeves no longer scales with how many Augs you've purchased for yourself
|
* Bug Fix: The cost of purchasing Augmentations for Duplicate Sleeves no longer scales with how many Augs you've purchased for yourself
|
||||||
|
@ -542,7 +542,9 @@ export class CorporationEventHandler {
|
|||||||
});
|
});
|
||||||
let confirmBtn;
|
let confirmBtn;
|
||||||
const input = createElement("input", {
|
const input = createElement("input", {
|
||||||
type:"number", placeholder:"Limit",
|
margin: "5px",
|
||||||
|
placeholder:"Limit",
|
||||||
|
type:"number",
|
||||||
onkeyup: (e) => {
|
onkeyup: (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (e.keyCode === KEY.ENTER) { confirmBtn.click(); }
|
if (e.keyCode === KEY.ENTER) { confirmBtn.click(); }
|
||||||
@ -550,9 +552,9 @@ export class CorporationEventHandler {
|
|||||||
});
|
});
|
||||||
confirmBtn = createElement("button", {
|
confirmBtn = createElement("button", {
|
||||||
class: "std-button",
|
class: "std-button",
|
||||||
display:"inline-block",
|
display: "inline-block",
|
||||||
innerText:"Limit production",
|
innerText: "Limit production",
|
||||||
margin:'6px',
|
margin: "5px",
|
||||||
clickListener: () => {
|
clickListener: () => {
|
||||||
if (input.value === "") {
|
if (input.value === "") {
|
||||||
product.prdman[city][0] = false;
|
product.prdman[city][0] = false;
|
||||||
|
@ -8,17 +8,14 @@ const Component = React.Component;
|
|||||||
|
|
||||||
export class CharacterOverviewComponent extends Component {
|
export class CharacterOverviewComponent extends Component {
|
||||||
render() {
|
render() {
|
||||||
let intelligence = "";
|
const intelligence = (
|
||||||
if (Player.intelligence >= 1) {
|
<tr id="character-int-wrapper">
|
||||||
intelligence=(
|
|
||||||
<tr id="character-int-wrapper">
|
|
||||||
<td>Int: </td><td id="character-int-text" className="character-stat-cell">{(Player.intelligence).toLocaleString()}</td>
|
<td>Int: </td><td id="character-int-text" className="character-stat-cell">{(Player.intelligence).toLocaleString()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="character-overview-text">
|
<div id="character-overview-text">
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr id="character-hp-wrapper">
|
<tr id="character-hp-wrapper">
|
||||||
@ -45,10 +42,13 @@ export class CharacterOverviewComponent extends Component {
|
|||||||
<tr id="character-cha-wrapper">
|
<tr id="character-cha-wrapper">
|
||||||
<td>Cha: </td><td id="character-cha-text" className="character-stat-cell">{(Player.charisma).toLocaleString()}</td>
|
<td>Cha: </td><td id="character-cha-text" className="character-stat-cell">{(Player.charisma).toLocaleString()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{intelligence}
|
{
|
||||||
|
Player.intelligence >= 1 &&
|
||||||
|
intelligence
|
||||||
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user