Companies save/loading properly. Added a utility file for Objects. Started work on Active Scripts info page. Adjusted leveling formula. Tested/fixed scripts running that have errors, seems to work fine might need proper testing later

This commit is contained in:
Daniel Xie 2016-12-16 16:14:41 -06:00
parent 5f1b58fd86
commit d88237fa91

@ -0,0 +1,10 @@
//Netburner Object helper functions
//Returns the size (number of keys) of an object
function sizeOfObject(obj) {
var size = 0, key;
for (key in obj) {
if (obj.hasOwnProperty(key)) size++;
}
return size;
}