Commit Graph

52 Commits

Author SHA1 Message Date
Snarling
6732549196
ENUMS: Initial Enum Helper rework + Reorganization (#596) 2023-06-12 00:34:20 -04:00
Snarling
2ae3ac52f1
CORPORATION: Corp changes prior to 2.3 finalization (#503) 2023-05-15 18:06:57 -04:00
Snarling
ebae35b1fb
CODEBASE: Expand lint rules, and Aliases are stored as maps (#501) 2023-05-05 03:55:59 -04:00
David Walker
aa7facd4ba
NETSCRIPT: Greatly speed up script launching, and remove the limitation unique args per script (#440)
* Remove the limitation unique args per script
* Internal changes to how runningScripts are stored on the server, to make common usage faster.
2023-04-27 18:21:06 -04:00
Snarling
e0272ad4af
FILES: Path rework & typesafety (#479)
* Added new types for various file paths, all in the Paths folder.
* TypeSafety and other helper functions related to these types
* Added basic globbing support with * and ?. Currently only implemented for Script/Text, on nano and download terminal commands
* Enforcing the new types throughout the codebase, plus whatever rewrites happened along the way
* Server.textFiles is now a map
* TextFile no longer uses a fn property, now it is filename
* Added a shared ContentFile interface for shared functionality between TextFile and Script.
* related to ContentFile change above, the player is now allowed to move a text file to a script file and vice versa.
* File paths no longer conditionally start with slashes, and all directory names other than root have ending slashes. The player is still able to provide paths starting with / but this now indicates that the player is specifying an absolute path instead of one relative to root.
* Singularized the MessageFilename and LiteratureName enums
* Because they now only accept correct types, server.writeToXFile functions now always succeed (the only reasons they could fail before were invalid filepath).
* Fix several issues with tab completion, which included pretty much a complete rewrite
* Changed the autocomplete display options so there's less chance it clips outside the display area.
* Turned CompletedProgramName into an enum.
* Got rid of programsMetadata, and programs and DarkWebItems are now initialized immediately instead of relying on initializers called from the engine.
* For any executable (program, cct, or script file) pathing can be used directly to execute without using the run command (previously the command had to start with ./ and it wasn't actually using pathing).
2023-04-24 10:26:57 -04:00
Snarling
0df984eea0
CODEBASE: Add Jsonable Map and Set types, move player.sourceFiles to a map (#473) 2023-04-18 03:19:45 -04:00
David Walker
8445af5f2b
Moved Player initialization point (#452)
Now initialized as side effect in PlayerObject, instead of in Player file that is imported everywhere.
2023-03-29 00:30:27 -04:00
David Walker
028d9f9462
BUGFIX: Fix order-of-ops issue with SCRIPT_32GB achievement (#422) 2023-03-13 21:20:56 -04:00
omuretsu
4ebfdcc4a8 Changelog + misc minor changes
Recovery textarea no longer spellchecks, fixed some "as" type assertions that were not necessary.
2023-03-06 11:45:36 -05:00
Snarling
759f86d6e5
NETSCRIPT: Rework script ram updates (#408) 2023-03-05 22:39:42 -05:00
David Walker
c42fde9379
INFRA: Update Webpack to @latest, along with other dev packages (#290) 2023-01-05 20:29:02 -05:00
Snarling
fb1f95c26e
VARIOUS: Various changes prior to release 2.2 (#271)
See PR #271 description
2022-12-29 20:28:53 -05:00
Snarling
14e50e5533
Some corp fixes (#236) 2022-11-29 08:24:04 -05:00
Snarling
5fe89d5599
CORPORATION: Reorganize Industry data (#154) 2022-10-24 21:54:54 -04:00
Snarling
0a3ff56331
WIP: Remove corp employees as objects (#143)
* Removed employees as objects from corporations
* Remove employees from office JSON after loading / convert to new parameters
* Showed down morale/etc gain; added optional position to hireEmployee
* enum support for corp employee positions

Mostly authored-by: Kelenius <kelenius@ya.ru>
2022-10-24 08:44:01 -04:00
Olivier Gagnon
cbb7f58231 Make the main player object an alias, makes it easier to import 2022-10-09 18:42:14 -04:00
Snarling
50f14b4f58 Commit1 2022-10-03 12:12:16 -04:00
Snarling
83d357e758 commit1 2022-09-27 15:35:40 -04:00
hydroflame
fe3e34408d
Merge branch 'dev' into dev 2022-08-23 13:01:13 -03:00
Olivier Gagnon
326d9fd7ef Move player skills and exp to their struct 2022-07-26 23:54:17 -04:00
Aerophia
7474e50fe8
Add files via upload 2022-07-25 18:35:43 -05:00
Olivier Gagnon
2d522ea1e6 allbuild commit e9254edf 2022-07-21 15:09:55 -04:00
Olivier Gagnon
647392626e convert taking class ot new work system 2022-07-07 17:28:23 -04:00
nickofolas
7d75093989 Init work types with new None member 2022-05-04 15:03:02 -05:00
nickofolas
f45200b25e Implement ClassType and FactionWorkType enums 2022-05-04 14:18:12 -05:00
Undeemiss
584bc095c1 Fixes bb skill point achievement name ingame
Corrects "You should really spent those." to
"You should really spend those."

I don't think it does anything to the steam achievement name
because I don't know how to test that.
2022-04-27 17:14:56 -05:00
hydroflame
9c805dabb8
Merge pull request #3540 from taralx/patch-1
MISC: add better typing to Electron.tsx
2022-04-26 11:17:36 -04:00
JP Sugarbroad
c6327ee682 add better typing to Electron.tsx 2022-04-21 23:50:49 -07:00
phyzical
8e1300d69d Merge branch 'dev' into feature/add-infiltration-faction
# Conflicts:
#	src/Netscript/RamCostGenerator.ts
2022-04-20 20:10:05 +08:00
Risenafis
bb978b9420
fix covenant achievement icon path 2022-04-19 22:03:20 +09:00
phyzical
c70f59ac54 merge dev 2022-04-07 16:27:23 +08:00
Olivier Gagnon
48f80f25d6 fmt and lint 2022-04-06 19:30:08 -04:00
phyzical
fd64746ff8 various fixes and adjustments 2022-03-29 22:43:28 +08:00
phyzical
4e73e489ed more refactors 2022-03-22 23:02:15 +08:00
Olivier Gagnon
699ae2e967 with SLEEVE_8, fix workForFaction 2022-03-20 23:27:53 -04:00
hydroflame
7a2bf64fce
Revert "Fix #3194: include all division employees in small town achievement calc" 2022-03-20 14:16:03 -04:00
hydroflame
21cab81ba6
Merge pull request #3195 from BrianLDev/issue-3194
Fix #3194: include all division employees in small town achievement calc
2022-03-20 14:15:37 -04:00
Brian Leip
07a3f3b753 Fix #3194: include all division employees in small town achievement calc 2022-03-19 15:28:37 -07:00
phyzical
44ea479043 update constants
* added OperationNames
* added faction names
* used citynames where appropriate
2022-03-19 16:09:59 +08:00
Olivier Gagnon
328ef3a70a Added achievements data for the 2 new SF minus 1 2022-03-16 14:39:23 -04:00
hydroflame
f591935757
Merge pull request #2655 from SagePtr/patch-1
Fix "travel" achievement icon
2022-01-17 15:56:44 -05:00
Martin Fournier
da7f161e45 Add check for hash capacity > 0 for MAX_CACHE
Achievement would trigger as soon as you entered the node as the
capacity was 0.

It looks like this fix was lost in a merge resolution (see PR #2459)
2022-01-16 11:20:15 -05:00
Sage Pointer
12ad8b7d03
Fix "travel" achievement icon 2022-01-16 04:27:27 +02:00
Dexalt142
8b9e89ea59 fix: dev menu achievement name & visibility 2022-01-14 00:22:43 +07:00
Max Strübing
2cdc2af678
chore: add missing t for AchievementData 2022-01-12 09:20:32 +01:00
Russell Stringer
f59a145965 Hacknet server achievements grant associated hacknet node achieve
fixes #1905

Added a new property to the Achievement interface to contain a list
of additional achievements that should be granted when an achievement's
conditional passes.

Right now this is only used to unlock the 4 hacknet node achieves
when the corresponding hacknet server achievement is awarded.

This branch also changes the calculateAchievements function so it
only runs the conditionals for achievements the player doesn't have,
instead of checking all of them and then filtering out the unowned.
2022-01-11 13:45:36 -05:00
Russell Stringer
c941ec2ba6 only check cheevo conditional if player is missing it 2022-01-11 12:42:20 -05:00
Martin Fournier
964cd74b9a Add missing achievement icon 2022-01-09 18:03:00 -05:00
Martin Fournier
0f9409789e Fix unique keys warning for secrets 2022-01-09 18:02:22 -05:00
Martin Fournier
b768a68467 Fix unavailable achievements condition 2022-01-09 17:51:46 -05:00