Instead of automatically falling back to default plates, this change
will allow the bot to attempt the next level higher armor class up to 3
times before falling back to defaults.
Through testing this prevents falling back to defaults roughly 95% of
the time and retains the ability to roll the lowest level available
armor class if the initial armor class level selected is too low for the
armor.
---------
Co-authored-by: acidphantasm <acidphantasm@acidphantasm.com>
Changes the following:
- New targets, module and moduleResolution for mods
- Enables `isolatedModules` as this matches the SPT server.
- Includes user/mods in tsconfig.json to allow for mods to be loaded
when a debugger is attached.
Adds missing data to the "view profile" endpoint.
NOTE: Causes severe freezes when viewing the hideout, but this happens
when loading your own too. I think this is a live issue.
- Adds a set of asynchronous cloners able to be used in async methods
- Updates setInterval to await the update before processing a new one.
- Updates various BotGen methods to remove nested promises and removing
a few unnecessary for loops.
Changes:
- Adds a map for `profiles`
- Changes `onBeforeSaveCallbacks` to be Promises
- Changes `SaveMD5` into `saveSHA1` as the async method for `saveSHA1`
isn't blocking
- Changes all routes and callbacks directly interacting with SaveServer
to be async
---------
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
Removes the auto-install mod dependencies feature, the related messages,
and the configuration option.
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
- Removes a test for a class that was removed
- Changes the command for type checking from `lint:types` to
`type-check`
---------
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
This should make every part that uses `loadAsync` asynchronous
The changes I made:
- I ended up creating a new method to make SHA-1 hashes asynchronously,
did up some reading up and found that `crypto.createHash` could
potentially be blocking.
- Ended up doing some slight code cleanup in `ImporterUtil` to make that
helper more readable.
- I changed `deserializeWithCacheCheckAsync` to skip writing files with
an extra parameter as it was blocking, this can now be called manually
with `writeCacheAsync` (Default behavior of this method stays the same)
Refactor of Create profile code into own service
Updated `addHideoutCustomisationLock` to use enums for parameters + refactored logic
Removed redundant `HideoutCustomizationGen` script