mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +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,47 +8,47 @@ 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=(
|
<td>Int: </td><td id="character-int-text" className="character-stat-cell">{(Player.intelligence).toLocaleString()}</td>
|
||||||
<tr id="character-int-wrapper">
|
</tr>
|
||||||
<td>Int: </td><td id="character-int-text" className="character-stat-cell">{(Player.intelligence).toLocaleString()}</td>
|
);
|
||||||
</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">
|
||||||
<td>Hp:</td><td id="character-hp-text" className="character-stat-cell">{Player.hp + " / " + Player.max_hp}</td>
|
<td>Hp:</td><td id="character-hp-text" className="character-stat-cell">{Player.hp + " / " + Player.max_hp}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="character-money-wrapper">
|
<tr id="character-money-wrapper">
|
||||||
<td>Money: </td><td id="character-money-text" className="character-stat-cell">{numeralWrapper.format(Player.money.toNumber(), '$0.000a')}</td>
|
<td>Money: </td><td id="character-money-text" className="character-stat-cell">{numeralWrapper.format(Player.money.toNumber(), '$0.000a')}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="character-hack-wrapper">
|
<tr id="character-hack-wrapper">
|
||||||
<td>Hack: </td><td id="character-hack-text" className="character-stat-cell">{(Player.hacking_skill).toLocaleString()}</td>
|
<td>Hack: </td><td id="character-hack-text" className="character-stat-cell">{(Player.hacking_skill).toLocaleString()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="character-str-wrapper">
|
<tr id="character-str-wrapper">
|
||||||
<td>Str: </td><td id="character-str-text" className="character-stat-cell">{(Player.strength).toLocaleString()}</td>
|
<td>Str: </td><td id="character-str-text" className="character-stat-cell">{(Player.strength).toLocaleString()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="character-def-wrapper">
|
<tr id="character-def-wrapper">
|
||||||
<td>Def: </td><td id="character-def-text" className="character-stat-cell">{(Player.defense).toLocaleString()}</td>
|
<td>Def: </td><td id="character-def-text" className="character-stat-cell">{(Player.defense).toLocaleString()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="character-dex-wrapper">
|
<tr id="character-dex-wrapper">
|
||||||
<td>Dex: </td><td id="character-dex-text" className="character-stat-cell">{(Player.dexterity).toLocaleString()}</td>
|
<td>Dex: </td><td id="character-dex-text" className="character-stat-cell">{(Player.dexterity).toLocaleString()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="character-agi-wrapper">
|
<tr id="character-agi-wrapper">
|
||||||
<td>Agi: </td><td id="character-agi-text" className="character-stat-cell">{(Player.agility).toLocaleString()}</td>
|
<td>Agi: </td><td id="character-agi-text" className="character-stat-cell">{(Player.agility).toLocaleString()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<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}
|
{
|
||||||
</tbody>
|
Player.intelligence >= 1 &&
|
||||||
</table>
|
intelligence
|
||||||
</div>
|
}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user