- fixed indentation to 4 spaces
- added missing semicolons
- some other changes here and there that either make the code look consistent between examples or just make it more concise
- removed "os" devDependency, as it's an internal module and should've never been set as a devDependency in package.json
- general cleanup and restructure of package.json, indent with 4 spaces, moved a few properties around so it's more readable
- indent workspace file with 4 spaces
- added refringe.spt-id-highlighter to the recommended extensions
- removed the "-version" from the zip and folder name the build script was generating
- added /tmp to .eslintignore
The default example only adds the trader to the trading menu, but doesn't display the trader in ragfair too (like how the default traders are). With this PR, the trader's inventory is also available in ragfair.
Reviewed-on: #12
Co-authored-by: Merijn Hendriks <senko-san@noreply.dev.sp-tarkov.com>
Co-committed-by: Merijn Hendriks <senko-san@noreply.dev.sp-tarkov.com>
Move some code to new class `traderHelper`
More comments
Added example of constructing weapon from scratch
exposed trader update time as parameter instead of hard coding
Add additional example for adding singular item with different params
Added ability to add buy restrictions to items