Commit Graph

208 Commits

Author SHA1 Message Date
phyzical
44ea479043 update constants
* added OperationNames
* added faction names
* used citynames where appropriate
2022-03-19 16:09:59 +08:00
nickofolas
919f8480dd Grafting UI framework 2022-03-18 23:22:21 -05:00
hydroflame
561219a0ab
Merge branch 'dev' into bugfix/2877-2 2022-03-17 12:05:38 -04:00
phyzical
9949cc9a1e removed ip references 2022-03-17 21:50:23 +08:00
BB
4eb59ac70c Turned on no-useless-concat lint and fixed it in code 2022-03-16 20:44:52 +01:00
BB
5e2ccc71ec Mixing spaces and tabs, extra semicolons and lonely ifs are now forbidden 2022-03-11 16:32:48 +01:00
hydroflame
31a26a31ad
Merge pull request #3055 from ApamNapat/simplified_some_boolean_logic
Simplified some booleans and if elses
2022-03-10 22:11:26 -05:00
hydroflame
459296c160
Merge pull request #3068 from phyzical/hotfix/2902
Fix for work in progress modal when augmenting
2022-03-10 21:41:48 -05:00
nickofolas
e39817cb57 Very slightly adjust router.toFaction
- Faction argument is now required
- Added augPage argument
2022-03-10 18:37:57 -06:00
BB
0eced1b9f2 Simplified some booleans and if elses 2022-03-08 22:52:26 +01:00
Jack
a2fae480f3
Update src/PersonObjects/Player/PlayerObjectGeneralMethods.tsx 2022-03-08 17:32:03 +08:00
BB
2c3e0985c4 Simplified some relative imports 2022-03-06 05:05:55 +01:00
phyzical
0e1929b561 added early out for when it goes wrong here too 2022-03-05 13:14:28 +08:00
Felix Wolfsteller
a755af8176 fix typo (UnforTunately) fix #2918 2022-02-05 11:04:23 +01:00
Martin Fournier
974344545d Move import save functionality into SaveObject
Adds a lot of metadata to be able to easily compare the new save to the
current player.

- Adds lastSaved & identifier to the PlayerObject
- Includes a hash method used to generate an identifier
2022-01-26 03:42:52 -05:00
Martin Fournier
e7aa977eb0 Persist terminal command history in game save
Copy the terminal commands into the player object so that they are saved
between game reloads.

Adds a 'history' command to display history, and a 'history -c' command
to clear it from both the current terminal & the player's save.
2022-01-23 17:09:54 -05:00
hydroflame
bb34d6b582
Merge pull request #2618 from pigalot/Corp-Api-Updates
Corp api updates
2022-01-18 18:05:23 -05:00
nickofolas
2d38ce8f72 Fix focus arg for sing functions 2022-01-18 08:49:06 -06:00
hydroflame
27a54217eb
Merge pull request #2653 from nickofolas/fix/refactor-loops
Refactor `for ... in` loops
2022-01-17 16:01:04 -05:00
pigalot
8729b54a9c Make 3.3 unlock all corp APIs 2022-01-16 16:11:31 +00:00
nickofolas
ab841f7530 Refactor for ... in loops 2022-01-15 18:45:03 -06:00
hydroflame
37401f0917
Merge pull request #2580 from deathly809/bug/cancel_should_clear_focus
Ensure that we leave focus when we call stopAction or cancel working
2022-01-15 18:15:50 -05:00
Olivier Gagnon
5126d72742 rm some stuff from netdef to make it work in-game 2022-01-13 14:26:05 -05:00
Jeffrey A. Robinson
664e99e3de Ensure that we leave focus when we call stopAction or cancel working 2022-01-11 21:08:15 -08:00
Olivier Gagnon
ea2f53e3b4 fix bug of quiting for currently working faction 2022-01-11 12:31:37 -05:00
Olivier Gagnon
d8a5f5b03c many fixes 2022-01-09 15:24:32 -05:00
hydroflame
74504a68f8
Merge pull request #2493 from TheMas3212/fix-2492
clear Player.companyName if set to company when quiting work for said company
2022-01-09 13:02:59 -05:00
hydroflame
eb57149a3f
Merge pull request #2487 from TheMas3212/fix-2127
update hp on gaining defense experience
2022-01-09 13:01:24 -05:00
Martin Fournier
12330e1f12 Fix crash when quitting job 2022-01-09 08:58:13 -05:00
TheMas3212
756d5fbc0d
clear Player.companyName if set to company when quiting work for said
company
2022-01-09 14:16:44 +11:00
TheMas3212
ee181e1509
update hp on gaining defense experience 2022-01-09 12:57:46 +11:00
hydroflame
b8eb07dda5
Merge branch 'dev' into feature/achievements 2022-01-08 14:51:36 -05:00
hydroflame
f39524b77a
Merge pull request #2167 from Hedrauta/fix#1921
workaround? fix for #1921
2022-01-08 14:28:09 -05:00
Martin Fournier
844d518684 Add achievements to base game
- Add a script to generate achievement data from Steamworks API
- Add achievements page with a link in sidebar
- Calculate achievements (1/min) with an engine counter
- Store achievements with a timestamp on unlocked in the PlayerObject
- Add a script to generate monochrome icons from Steam icons
- Add toast when unlocking an achievement
2022-01-08 05:45:32 -05:00
TheMas3212
a05dc44599
Fixes 1918 Reputation Carry Over Bug
fixes #1918
add a check that stops current work if you apply to a new job as an
employee at a different company
2022-01-06 18:55:16 +11:00
TheMas3212
1dcde649be
fixes #1752 add check when applying for job to make sure company
actually has that job position
2022-01-02 03:08:16 +11:00
Hedrauta
4264b07d75 only stop working if working at that company
bc you can be employed at multiple companies 😆
2021-12-24 02:57:25 +01:00
Hedrauta
33d8e6d3fe workaround? fix for #1921
simple do: if the player does work for company, quit WIP... otherwise let WIP still run
2021-12-24 02:19:28 +01:00
Andrew Cooper
12ba68a375 XP gain summaries now only show non-zero xp gains. 2021-12-23 19:15:39 +00:00
Andrew Cooper
4861ac4153 Fixes penalty message for quitting work early. 2021-12-23 19:15:22 +00:00
Olivier Gagnon
5dc9ac040a toast time config 2021-12-20 13:29:04 -05:00
Martin Fournier
3b99da8474 Lint current problems & fix ignore paths 2021-12-19 13:17:44 -05:00
Dan
2f9eb324b4
fix(shortcut): job shortcut only run when have job
The shortcut was always allowed to run, meaning when the player doesn't
have a job, they were sent to the job screen with no job and lost the
view context/sidebar.

- Add utility method to check if the player 'hasJob', being at least 1
job.
- Check if player has job when the key combination is pressed

Resolves danielyxie/bitburner#2013
2021-12-19 15:20:02 +00:00
Martin Fournier
84c77c1d2c Fix #1889: Add skill progress to overview
Adds a progress bar for each stat to show how close to level up you are.
2021-12-17 12:44:18 -05:00
theit8514
ad57f3dc73 Work functions do not take focus
setFocus readded and updated to send the user to the Work page if focusing.
2021-12-15 20:33:48 -05:00
Olivier Gagnon
de9fb24156 Fix scripts dying of weird causes. 2021-12-13 22:26:22 -05:00
Olivier Gagnon
60d34c3cc6 rebuild 2021-11-19 23:45:34 -05:00
Olivier Gagnon
b80d12b9f8 v1.0.2 part 1 2021-11-19 15:44:12 -05:00
Olivier Gagnon
632de50a73 convert BN13 to a more conventional one. 2021-11-18 15:38:19 -05:00
Olivier Gagnon
ef781a0627 plenty of bf 2021-11-15 23:49:33 -05:00
Olivier Gagnon
56ddcd9a45 more work on bn13 2021-11-13 22:44:17 -05:00
Olivier Gagnon
f5d6132dfc fix bladeburner action cancel 2021-11-12 16:54:34 -05:00
Olivier Gagnon
c0d28c17e7 fix more bugs 2021-11-11 23:40:48 -05:00
Olivier Gagnon
0114c92829 fix decimal 2021-11-11 21:35:26 -05:00
Olivier Gagnon
aa07ea981a saving timebomb 2021-11-11 20:42:19 -05:00
Olivier Gagnon
6e74716940 huh? 2021-11-11 20:31:26 -05:00
hydroflame
70ffe25bb4
Revert "bunch of bugfixes" 2021-11-11 20:06:05 -05:00
Olivier Gagnon
d91d7c564e bunch of bugfixes 2021-11-11 19:56:09 -05:00
Olivier Gagnon
15b3a82a41 plenty of bug fix. 2021-11-10 19:28:20 -05:00
Olivier Gagnon
88b4a7d862 bugfix 2021-11-05 17:12:52 -04:00
tyasuh.taeragan@gmail.com
afd34ef9ca Programs grant int exp based on time 2021-10-29 20:27:20 -04:00
Olivier Gagnon
48988e228e track money more precisely. 2021-10-27 14:18:33 -04:00
Olivier Gagnon
9f6767062b money is readonly 2021-10-27 13:28:36 -04:00
Olivier Gagnon
080b5a4a1f merge dev 2021-10-26 23:11:47 -04:00
Olivier Gagnon
738152d614 New sf -1 and changes to gang to rely more on territory 2021-10-26 23:02:46 -04:00
Olivier Gagnon
7733ee0375 Fix rep transfer on new job 2021-10-26 22:03:34 -04:00
Olivier Gagnon
326e827368 few changes 2021-10-26 21:22:40 -04:00
tyasuh.taeragan@gmail.com
2e7f164b5f Prettified 2021-10-22 16:35:05 -04:00
tyasuh.taeragan@gmail.com
4f7199c0bd Toasts for Noodles Eaten, Hospitalized. 2021-10-22 15:30:13 -04:00
Olivier Gagnon
75caf77231 merge dev and added purchased server softcap 2021-10-16 22:39:56 -04:00
Olivier Gagnon
c96c7e3d2e v0.57.0 2021-10-16 22:32:48 -04:00
Olivier Gagnon
c0420d1787 merge dev 2021-10-16 15:46:25 -04:00
Olivier Gagnon
84a1d27b9a fix bug with workForFaction 2021-10-16 15:43:28 -04:00
Olivier Gagnon
99c75baea0 Fix working for the CIA 2021-10-16 12:19:53 -04:00
Olivier Gagnon
3e3aa1a0fe merge dev 2021-10-15 21:39:53 -04:00
Olivier Gagnon
52a96b94f9 fix cancel penalty for company servers 2021-10-15 21:03:25 -04:00
Olivier Gagnon
d3fc6a9d48 split NetscriptFunctions 2021-10-14 03:22:02 -04:00
Olivier Gagnon
eb846c1318 merge dev 2021-10-14 02:12:15 -04:00
Olivier Gagnon
b7823f46e4 change location of home cores cost formula 2021-10-13 15:48:34 -04:00
Olivier Gagnon
a0baab6f6c dont update int when you dont have it 2021-10-12 10:29:41 -04:00
Olivier Gagnon
87c63cde59 merge v0.56.0 2021-10-12 01:35:30 -04:00
Olivier Gagnon
78d9c25671 fix error message with wrong reviver, refactor part of player 2021-10-11 23:14:15 -04:00
Olivier Gagnon
8f13363466 prettier 2021-10-11 16:38:50 -04:00
Olivier Gagnon
3fd26bea9b fix int not calculating 2021-10-11 13:18:37 -04:00
Olivier Gagnon
4355420349 made staneks gift work with prestiges 2021-10-08 03:16:51 -04:00
Olivier Gagnon
8d7f0488f8 merge dev 2021-10-07 17:58:32 -04:00
Olivier Gagnon
7d0536a4d2 finish convert to hostname 2021-10-07 17:55:49 -04:00
Olivier Gagnon
a7dfb1a537 more convertion from ip to hostname 2021-10-07 16:56:01 -04:00
Olivier Gagnon
be29481689 unexport AllServers 2021-10-07 16:04:04 -04:00
Olivier Gagnon
7304e5379f sg 2021-10-03 20:34:36 -04:00
Olivier Gagnon
4e8bb96f3f removing some of the classes 2021-10-01 13:08:37 -04:00
Olivier Gagnon
1fc2e6fd2a added unfocus aug 2021-09-26 21:11:49 -04:00
Olivier Gagnon
793d9b34ce update BN13 for new UI 2021-09-25 17:21:50 -04:00
Olivier Gagnon
06f716c0fa moved a bunch of files 2021-09-25 14:42:57 -04:00
Olivier Gagnon
8b15adda8a lint 2021-09-25 02:36:49 -04:00
Olivier Gagnon
b0f20c8c8f lint 2021-09-25 01:26:03 -04:00
Olivier Gagnon
dc2bf871cf all typescript 2021-09-24 21:49:49 -04:00
Olivier Gagnon
43723a3fbb engine in ts 2021-09-24 18:29:25 -04:00
Olivier Gagnon
413333c919 convert to ts 2021-09-24 17:07:53 -04:00
Olivier Gagnon
47f54a11c3 ts convertion 2021-09-24 16:02:38 -04:00