mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 14:27:03 +02:00
Added copy save to clipbaord option. Added getOrders netscript function. Fixed Corporation Bugs
This commit is contained in:
+7
-1
@@ -54,7 +54,7 @@ function BitburnerSaveObject() {
|
||||
this.CorporationResearchTreesSave = "";
|
||||
}
|
||||
|
||||
BitburnerSaveObject.prototype.saveGame = function(db) {
|
||||
BitburnerSaveObject.prototype.getSaveString = function() {
|
||||
this.PlayerSave = JSON.stringify(Player);
|
||||
|
||||
//Delete all logs from all running scripts
|
||||
@@ -85,6 +85,12 @@ BitburnerSaveObject.prototype.saveGame = function(db) {
|
||||
}
|
||||
var saveString = btoa(unescape(encodeURIComponent(JSON.stringify(this))));
|
||||
|
||||
return saveString;
|
||||
}
|
||||
|
||||
BitburnerSaveObject.prototype.saveGame = function(db) {
|
||||
var saveString = this.getSaveString();
|
||||
|
||||
//We'll save to both localstorage and indexedDb
|
||||
var objectStore = db.transaction(["savestring"], "readwrite").objectStore("savestring");
|
||||
var request = objectStore.put(saveString, "save");
|
||||
|
||||
Reference in New Issue
Block a user