diff --git a/doc/source/netscript/basicfunctions/getServerMaxRam.rst b/doc/source/netscript/basicfunctions/getServerMaxRam.rst
new file mode 100644
index 000000000..d895c494e
--- /dev/null
+++ b/doc/source/netscript/basicfunctions/getServerMaxRam.rst
@@ -0,0 +1,15 @@
+getServerMaxRam() Netscript Function
+====================================
+
+.. js:function:: getServerMaxRam(hostname)
+
+ :RAM cost: 0.05 GB
+ :param string hostname: Hostname of target server.
+ :returns: Total ram available on that server. In GB.
+
+ Example:
+
+ .. code-block:: javascript
+
+ maxRam = getServerMaxRam("helios"); // returns: 16
+ print("helios has "+maxRam + "GB");
diff --git a/doc/source/netscript/basicfunctions/getServerRam.rst b/doc/source/netscript/basicfunctions/getServerRam.rst
index 40e46df42..70d3ce032 100644
--- a/doc/source/netscript/basicfunctions/getServerRam.rst
+++ b/doc/source/netscript/basicfunctions/getServerRam.rst
@@ -3,6 +3,8 @@ getServerRam() Netscript Function
.. js:function:: getServerRam(hostname)
+ .. warning:: This function is deprecated.
+
:RAM cost: 0.1 GB
:param string hostname: Hostname of target server.
:returns: An array of 2 number, first number is the total RAM, second the
diff --git a/doc/source/netscript/basicfunctions/getServerUsedRam.rst b/doc/source/netscript/basicfunctions/getServerUsedRam.rst
new file mode 100644
index 000000000..878389cb0
--- /dev/null
+++ b/doc/source/netscript/basicfunctions/getServerUsedRam.rst
@@ -0,0 +1,15 @@
+getServerUsedRam() Netscript Function
+=====================================
+
+.. js:function:: getServerUsedRam(hostname)
+
+ :RAM cost: 0.05 GB
+ :param string hostname: Hostname of target server.
+ :returns: Used ram on that server. In GB.
+
+ Example:
+
+ .. code-block:: javascript
+
+ usedRam = getServerUsedRam("harakiri-sushi"); // returns: 5.6
+ print("harakiri-sushi uses "+usedRam + "GB");
diff --git a/doc/source/netscript/netscriptfunctions.rst b/doc/source/netscript/netscriptfunctions.rst
index d0cb3ce37..deea623f9 100644
--- a/doc/source/netscript/netscriptfunctions.rst
+++ b/doc/source/netscript/netscriptfunctions.rst
@@ -54,7 +54,8 @@ This includes information such as function signatures, what they do, and their r
getServerMinSecurityLevel()
Warning: Joining this faction may prevent you from joining other factions during this run!
{this.state.status}
Threads: {props.workerScript.scriptRef.threads}+
Threads: {numeralWrapper.formatThreads(props.workerScript.scriptRef.threads)}
Args: {arrayToString(props.workerScript.args)}
Online Time: {convertTimeMsToTimeElapsedString(scriptRef.onlineRunningTime * 1e3)}
Offline Time: {convertTimeMsToTimeElapsedString(scriptRef.offlineRunningTime * 1e3)}diff --git a/src/ui/React/AugmentationAccordion.tsx b/src/ui/React/AugmentationAccordion.tsx index 87ab4ae8f..19eb601f2 100644 --- a/src/ui/React/AugmentationAccordion.tsx +++ b/src/ui/React/AugmentationAccordion.tsx @@ -24,10 +24,19 @@ export function AugmentationAccordion(props: IProps): React.ReactElement { } } + if(typeof props.aug.info === 'string') { + return ( +
{props.aug.info}
} /> ) } diff --git a/src/ui/React/CharacterOverview.jsx b/src/ui/React/CharacterOverview.jsx index 631145721..638da227f 100644 --- a/src/ui/React/CharacterOverview.jsx +++ b/src/ui/React/CharacterOverview.jsx @@ -15,8 +15,7 @@ export class CharacterOverviewComponent extends Component { ); return ( -Hp: | {numeralWrapper.formatHp(Player.hp) + " / " + numeralWrapper.formatHp(Player.max_hp)} | @@ -47,8 +46,7 @@ export class CharacterOverviewComponent extends Component { intelligence }