mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
Implemented Hack and sleep in script. IMplemented functionality that allows scripts to stop (rejecting the Promises). Scripts will now automatically stop if they are not infinite. THIS IS UNTESTED TEST THIS WHEN I CAN. Still need to implement kill command
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
//TODO Saving only works with stirngs.key value pairs. Think of a system to do saves
|
||||
// And everything with all the things I have
|
||||
|
||||
//Replaces the character at an index with a new character
|
||||
String.prototype.replaceAt=function(index, character) {
|
||||
return this.substr(0, index) + character + this.substr(index+character.length);
|
||||
|
||||
Reference in New Issue
Block a user