26 Commits

Author SHA1 Message Date
49edebc1eb chore: fix controllers exporting non-RequestHandler things (#1468)
I'm surprised JavaScript allows circular includes, but they still don't feel good.

Reviewed-on: OpenWF/SpaceNinjaServer#1468
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-04-05 06:52:35 -07:00
23f8901505 fix: reduce platinum cost of rushing recipes based on progress (#1393)
Reviewed-on: OpenWF/SpaceNinjaServer#1393
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-03-31 04:14:35 -07:00
d3d966a503 feat: grustrag bolt (#1392)
Reviewed-on: OpenWF/SpaceNinjaServer#1392
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-03-31 04:14:20 -07:00
b14927d605 fix: handle recipes requiring non-MiscItem items (#1348)
e.g. mutagens and antigens require vome and fass residue which are consumables

Reviewed-on: OpenWF/SpaceNinjaServer#1348
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-03-28 03:07:30 -07:00
aa12708738 chore: make addItem return InventoryChanges directly (#1299)
Reviewed-on: OpenWF/SpaceNinjaServer#1299
2025-03-23 08:26:46 -07:00
a029c288b7 fix: free slot when selling or otherwise getting rid of items (#1169)
Reviewed-on: OpenWF/SpaceNinjaServer#1169
2025-03-13 04:25:59 -07:00
457663f14a fix: claim recipe response (#1106)
Fixes #1105

The client already 'knows' the ItemCount was decremented so when we also say it in the response, it actually ends up causing the client to think the recipe was used twice.

Reviewed-on: OpenWF/SpaceNinjaServer#1106
Co-authored-by: Sainan <sainan@calamity.inc>
Co-committed-by: Sainan <sainan@calamity.inc>
2025-03-08 04:33:45 -08:00
caec5a6cbf feat: recipes that consume weapons (#1032)
Closes #720

Reviewed-on: OpenWF/SpaceNinjaServer#1032
2025-02-28 06:47:34 -08:00
a5c45bb646 fix: consume a slot when item is crafted instead of bought via plat (#1029)
Reviewed-on: OpenWF/SpaceNinjaServer#1029
2025-02-26 15:41:07 -08:00
d69cba6bef chore: reuse inventory in claimCompletedRecipeController (#999)
Reviewed-on: OpenWF/SpaceNinjaServer#999
Co-authored-by: Sainan <sainan@calamity.inc>
Co-committed-by: Sainan <sainan@calamity.inc>
2025-02-24 05:27:50 -08:00
8b836020bf
chore: turn getJSONfromString into a template/generic function (#836) 2025-01-24 14:27:10 +01:00
a4c44e8bb0
chore: get rid of some unecessary conditionals (#835) 2025-01-20 12:21:39 +01:00
709c2a401b
feat: spectre loadouts (#719) 2025-01-06 01:21:37 +01:00
74ed098692
chore: do addItem on inventory document, not accountId (#699) 2025-01-04 00:25:09 +01:00
4756f54f40
chore: add middleware for error handling (#695) 2025-01-03 22:25:03 +01:00
16d98636e9
chore: updateCurrency with existing inventory instance (#674) 2024-12-31 01:41:29 +01:00
27af54d039 chore: fix concat of ObjectId to make eslint happy 2024-12-29 06:14:54 +01:00
987b05a334
chore: update express to v5 (#599) 2024-12-22 15:42:24 +01:00
ac6eaa2f4e
fix: Convert all Body to String Before Use (#382) 2024-06-24 12:37:28 +02:00
be5a271609
feat: handle costs of recipes (#329) 2024-06-19 10:32:16 +02:00
e8d7e17611
fix: not being able to purchase or craft some recipes (#314) 2024-06-17 16:41:02 +02:00
b08fff1906
feat: rushing recipes, refactor: addItem (#248) 2024-06-15 02:50:43 +02:00
e3f543d9be
improve: ensure 'npm run lint' passes without errors (#249) 2024-06-01 13:03:27 +02:00
6294a315a8
feat: properly implement nonce (#220) 2024-05-28 13:45:06 +02:00
9f0317fed2
chore: resolve various eslint complaints (#169) 2024-05-06 15:19:42 +02:00
8b50189fcf
Foundry 1 - Preliminary (#127) 2024-01-25 14:49:45 +01:00