Commit Graph

20 Commits

Author SHA1 Message Date
Daniel Xie
5f1b58fd86 Evaluator + Netscript should now properly handle errors in syntax/runtime errors (almost..still have to implement the properly closing down script when an error is thrown. Check file for TODO). Player skill level should now properly be updated 2016-12-15 16:22:42 -06:00
Daniel Xie
96fb37c6d1 Fixed loadAllRunningScripts(), now seems to be working properly 2016-12-15 11:51:23 -06:00
Daniel Xie
23c036827f Fixed script hack(), should be working now. Changed some numbers to rebalance. Implemented script RAM usage. If a script uses too much ram it will not run (untested) 2016-12-14 14:29:40 -06:00
Daniel Xie
d5d198cbb4 Refactored Code to make Save/Load work. This included re-structuring classes so that they contained only native objects/arrays of native objects and using a Reviver function in the JSON.parse. Cleaned up some code that was no longer needed 2016-12-01 16:18:18 -06:00
Daniel Xie
40b0b585e1 Added InputStream, Tokenizer, and Parser(unfinished) class. Changed Newerth to Aevum 2016-11-14 00:42:31 -06:00
Daniel Xie
0e9740dcf9 Continued defining the Company class and began writing initialization for it. Defined a namespace for Constants. 2016-11-02 16:45:10 -05:00
Daniel Xie
8530e51628 Finished initializing new servers (johnson ortho and newerth police). Finished init functions for Company class, and began declaring all possible companies. 2016-11-01 16:19:57 -05:00
Daniel Xie
6cf9339919 Refactored the hacking progress code into an action progress code so that it can be reused for analyze and anything else that requires an animated progress bar. Implemented analyze 2016-11-01 00:30:59 -05:00
Daniel Xie
f6aaef455d Added full hack functionality with animated progress bar and everthing. All thats left is balancing exp/money gains and also taking care of porthack stuff. Also fixed the terminal not being scrollable 2016-10-27 13:26:00 -05:00
Daniel Xie
0a13496984 Trying to get hack progress bar to work 2016-10-26 22:34:18 -05:00
Daniel Xie
d268ea09f8 Added debugging statements to try and figure out whats wrong when the time is calculated for hacks 2016-10-24 16:36:23 -05:00
Daniel Xie
0307b3334d Added port properties to server. Wrote code for hacking() and PortHacking, currently untested 2016-10-24 16:16:51 -05:00
Daniel Xie
4ea83fa199 Added functions to create a random network with foreign servers 2016-10-24 01:34:04 -05:00
Daniel Xie
0b7f19fd8c Added function to calculate Player's hacking skill based on exp 2016-10-21 16:15:45 -05:00
Daniel Xie
4057f946d8 Implemented df and cls/clear commands 2016-10-20 16:11:01 -05:00
Daniel Xie
ce0ca6c24d Fixed syntactical bugs/typos 2016-10-20 13:26:38 -05:00
Daniel Xie
47e19f5862 Added a few more commands to Terminal (not the implementation). Began defining some of the foreign servers that will exist 2016-10-18 16:37:53 -05:00
Daniel Xie
a1fd46232e Added cases for all the commands that will be implemented for now. Updated Server class to contain information about servers, home computer, etc. Added a few fields to Server that will be used when hacking, as well as constructor. 2016-10-17 16:23:23 -05:00
Daniel Xie
7c03b274d7 Added Player, Server, Terminal, and engine javascript files. Implemented basic terminal UI. Implemented main menu tabs (only added Character and Terminal for now 2016-10-17 03:24:39 -05:00
Daniel Xie
9772525263 Adding basic Player and Server class definitions 2016-10-14 16:02:06 -05:00