mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
Addressing feedback.
`flags` example should have the output, instead of the code, in a comment block. `formulas.basic.calculateExp` and `formulas.basic.hackChance` should have explicit `var` declarations.
This commit is contained in:
@@ -20,6 +20,6 @@ hackChance() Netscript Function
|
||||
|
||||
.. code-block:: javascript
|
||||
|
||||
server = getServer();
|
||||
var server = getServer();
|
||||
server.hackDifficulty = server.minDifficulty;
|
||||
tprint(formulas.basic.hackChance(server, getPlayer()));
|
||||
|
||||
Reference in New Issue
Block a user