Commit Graph

4705 Commits

Author SHA1 Message Date
TheMas3212
3da3a61e20 manMax, oneOf, subsetOf validators 2022-01-10 07:37:46 +11:00
TheMas3212
d9064b608f PoC for save validation on load via hooking the Reviver function and
static property validationData on classes

PoC/example implemented with HacknetNode:
  validates cores is a number in the range between 1 and HacknetNodeConstants.MaxCores
  validates level is a number in range between 1 and HacknetNodeConstants.MaxLevel
  validates ram is a number in range between 1 and HacknetNodeConstants.MaxRam
  validates onlineTimeSeconds in non negative number
  validates totalMoneyGenerated is a non negative number
2022-01-10 07:37:46 +11:00
Olivier Gagnon
d8a5f5b03c many fixes 2022-01-09 15:24:32 -05:00
Olivier Gagnon
ab15481cd6 try to fix the game hanging 2022-01-09 14:11:33 -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
f6bc3b0b5e
Merge pull request #2495 from TheMas3212/fix-2163
Clear input field for CodingContractModal after submission
2022-01-09 13:01:34 -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
hydroflame
a2cf8c0244
Merge pull request #2489 from TheMas3212/fix-2452
fix grammar in Ishima Glitch
2022-01-09 13:00:35 -05:00
hydroflame
3fe77f5a0b
Merge pull request #2483 from PhilipArmstead/warehouse-typo
Removing errant apostrophe
2022-01-09 13:00:23 -05:00
hydroflame
8e816e9110
Merge pull request #2488 from TheMas3212/fix-2124
log key for gang.ascendMember is 'gang.ascendMember' not 'gang.ascend'
2022-01-09 13:00:10 -05:00
hydroflame
55cd8b3c78
Merge pull request #2498 from dcragusa/dev
Fix apostrophe typo
2022-01-09 12:59:52 -05:00
hydroflame
b31517e402
Merge pull request #2490 from TheMas3212/fix-2440
Clear Netscript ports on augment install / soft reset / bitnode change
2022-01-09 12:59:40 -05:00
hydroflame
df55c9ce59
Merge pull request #2494 from TheMas3212/fix-2285
Add check to readd Corporation Management Handbook after augment install
2022-01-09 12:59:22 -05:00
hydroflame
23cae6489d
Merge pull request #2502 from MartinFournier/fix/brachiblade-sleeve
Fix sleeves brachiblades aug with save migration
2022-01-09 12:59:08 -05:00
hydroflame
ee07942d3e
Merge pull request #2500 from MartinFournier/fix/server-list-alphabetical
Sort server list alphabetically
2022-01-09 12:58:54 -05:00
hydroflame
9c33e27996
Merge pull request #2506 from MartinFournier/feature/styles-settings
Add fontFamily & lineHeight settings
2022-01-09 12:58:27 -05:00
hydroflame
46a8de4924
Merge pull request #2507 from MartinFournier/fix/quit-job-error
Fix crash when quitting job
2022-01-09 12:58:03 -05:00
hydroflame
ea81d666a6
Merge pull request #2511 from paiv/dev
fix small typo in bitnode intro
2022-01-09 12:56:56 -05:00
Pavel Ivashkov
b500f540bb
fix small typo in bitnode intro 2022-01-09 17:50:26 +02:00
Martin Fournier
12330e1f12 Fix crash when quitting job 2022-01-09 08:58:13 -05:00
Martin Fournier
0ede6c4295 Add fontFamily & lineHeight settings 2022-01-09 08:40:57 -05:00
XxKingsxX-Pinu
4dfa5d1e51
Removed "N00dles" from 16GB server list 2022-01-09 22:38:42 +10:00
Martin Fournier
2220286062 Fix sleeves brachiblades aug with save migration 2022-01-09 05:57:50 -05:00
Martin Fournier
d6fa672fac Sort server list alphabetically 2022-01-09 05:43:50 -05:00
David Ragusa
056f2e0375
Fix apostrophe typo 2022-01-08 23:36:23 -08:00
TheMas3212
5901312184
Clear input field for CodingContractModal after submission 2022-01-09 15:26:36 +11:00
TheMas3212
ee6794933c
Add check to readd Corporation Management Handbook after augment
install/soft reset if player is in BitNode3
2022-01-09 15:01:08 +11: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
440d9e4978
Clear Netscript ports on augment install / soft reset / bitnode change 2022-01-09 13:43:52 +11:00
TheMas3212
94eef03c74
fix grammar in Ishima Glitch 2022-01-09 13:32:23 +11:00
TheMas3212
a193f651bc
log key for gang.ascendMember is 'gang.ascendMember' not 'gang.ascend'
fixes #2124
2022-01-09 13:21:18 +11:00
TheMas3212
8bf18c1981
Mark Gang as implementing IGang 2022-01-09 13:07:07 +11:00
TheMas3212
ee181e1509
update hp on gaining defense experience 2022-01-09 12:57:46 +11:00
Heikki Aitakangas
c6ff982b1d Remove stopFlag checks made redundant by the netscriptDelay change 2022-01-09 02:42:36 +02:00
Heikki Aitakangas
59da79a427 Refactor netscriptDelay and script kill interaction
Store the Promise reject function instead of resolve in WorkerScript, since
it's only used when killing a script that's blocked in delay. And when killing
a script, reject the delay Promise with the WorkerScript as cause.
2022-01-09 02:36:54 +02:00
philarmstead
43d31c409c Removing errant apostrophe 2022-01-08 23:56:57 +00:00
hydroflame
0de588ee17
Merge pull request #2481 from nickofolas/fix-terminal-exp
Fix terminal grow/weaken EXP gain
2022-01-08 18:15:03 -05:00
KenJohansson
a9b810d827
Update hackingalgorithms.rst
Removed "Growth can be made more efficient by dividing it into many processes, instead of one script with a high thread count. Four grow scripts with 20 threads will outperform one grow script with 80 threads." since this has been proven not to be true.
2022-01-09 00:14:54 +01:00
nickofolas
474ab69301 Fix terminal grow/weaken EXP gain 2022-01-08 15:57:44 -06:00
hydroflame
2b10c11913
Merge pull request #2478 from nickofolas/update-toast-signature
Update toast signature
2022-01-08 16:42:36 -05:00
nickofolas
357258261a Use codeblocks for null 2022-01-08 14:59:28 -06:00
nickofolas
a971921417 Document null duration for toasts 2022-01-08 14:56:29 -06:00
nickofolas
01efd372e9 Logs button reopens log window 2022-01-08 14:31:58 -06:00
hydroflame
d74efd6a4a
Merge pull request #2475 from TheMas3212/refactor-gameroot-v2
Refactor GameRoot.tsx to use a switch case statement instead of 20 nested ternarys
2022-01-08 15:29:47 -05:00
hydroflame
4b130a88fa
Merge pull request #2473 from JustAnOkapi/patch-1
fix two typos in HelpText
2022-01-08 15:29:11 -05:00
TheMas3212
2e31dda75e
make Popups use variable like Sidebar does 2022-01-09 07:25:41 +11:00
JustAnOkapi
00b838dab2
fix two typos in HelpText
mem -tab
scp +tab
2022-01-08 14:15:40 -06:00
TheMas3212
84845ff9a2
Refactor GameRoot.tsc to use a switch case statement instead of 20
nested ternarys
2022-01-09 07:15:28 +11:00
Olivier Gagnon
ea5e142fa1 increase achievment counter 2022-01-08 15:03:36 -05:00
hydroflame
bff3c51a68
Merge pull request #2460 from MartinFournier/feature/convert-extra-hashes-to-cash
Use wasted hashes on "Sell for Money"
2022-01-08 14:55:19 -05:00