Fixed empty td Element issue with new React Character overview. Updated changelog

This commit is contained in:
danielyxie 2019-03-17 18:20:31 -07:00
parent e6c5ff7ab7
commit c973663dc2
3 changed files with 49 additions and 44 deletions

@ -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(); }
@ -552,7 +554,7 @@ export class CorporationEventHandler {
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,14 +8,11 @@ const Component = React.Component;
export class CharacterOverviewComponent extends Component { export class CharacterOverviewComponent extends Component {
render() { render() {
let intelligence = ""; const intelligence = (
if (Player.intelligence >= 1) {
intelligence=(
<tr id="character-int-wrapper"> <tr id="character-int-wrapper">
<td>Int:&nbsp;</td><td id="character-int-text" className="character-stat-cell">{(Player.intelligence).toLocaleString()}</td> <td>Int:&nbsp;</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">
@ -45,7 +42,10 @@ export class CharacterOverviewComponent extends Component {
<tr id="character-cha-wrapper"> <tr id="character-cha-wrapper">
<td>Cha:&nbsp;</td><td id="character-cha-text" className="character-stat-cell">{(Player.charisma).toLocaleString()}</td> <td>Cha:&nbsp;</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>