Commit Graph

170 Commits

Author SHA1 Message Date
Chomp f006afa28d Revert "Fixed choosing 'wipe' from launcher persisting your prestige level"
This reverts commit c463e81f24.
2025-07-19 20:44:32 +01:00
Chomp c463e81f24 Fixed choosing 'wipe' from launcher persisting your prestige level 2025-07-19 20:40:36 +01:00
Chomp 38fb2454c7 Various micro-optimisations 2025-07-18 16:05:29 +01:00
Chomp 50f684537d Expanded max loot in pmc container systems
Now allows for per-map multipliers + pocket + vest loot uses same level-based value as backpack

labs multiplier = 2
labyrinth = 4

Removed nullability from some properties
2025-07-17 18:25:31 +01:00
Chomp ca5c2b8066 Return the created profileid/sessionid when registering an account 2025-07-17 16:30:12 +01:00
Chomp b94d625362 string to mongoId + Various small refactors 2025-07-16 21:29:35 +01:00
Chomp 42d2e3f7ea Updated properties to not be nullable + various fixes 2025-07-16 14:57:24 +01:00
Chomp fdfbf66c1b Removed unncessary nulls 2025-07-16 13:26:09 +01:00
Chomp f3482e28d9 Removed unnecessary nulls from Globals class 2025-07-16 12:20:19 +01:00
Chomp 99c14de7af String to Mongo Id conversions
Cleaned up global class null values
2025-07-16 11:40:38 +01:00
Chomp 7b1f73fe7b Reduced brittleness of HealthTreatment + removed use of reflection 2025-07-16 11:15:17 +01:00
Chomp e9f6a402f7 Fixed nullref issue when healing post-raid 2025-07-16 10:43:17 +01:00
Chomp dbce1dfee7 Fixed casting issue when crafting
Renamed variable to improve readability

Code cleanup of `GetCustomSptHoursCraftingTaskConditionCounter`
2025-07-15 18:01:47 +01:00
Chomp 88e6db3342 Fixed flea offer count 2025-07-15 17:19:31 +01:00
Chomp 2639504471 String to MongoId conversions
Removed unnecessary properties from quest object
2025-07-15 10:37:49 +01:00
Chomp 040be2feaa More strings to MongoIds
Convert constructors into primary constructors

Simplified logic with use of ??, ??= and method groups

Cleaned up redundant conditional access qualifiers
2025-07-14 22:29:41 +01:00
Chomp 6f3ce60cec Simplified calls to .Remove() 2025-07-14 20:02:46 +01:00
Chomp 5ef2271a29 Converted collections to their frozen counterparts for improved lookup speed 2025-07-14 19:56:20 +01:00
Chomp 04ffbce106 Improved InsuranceController.Cost handling of duplicate Ids + made use of MongoIDs 2025-07-14 14:57:01 +01:00
Jesse a00b5c51d2 More prestige fixes (#471)
* Only send message if there's items to be sent

* Update variable name

* Fix up incrementing a null integer
2025-07-11 14:52:33 +01:00
Jesse 533a7356fd Add new service to handle profile migrations (#468)
* Add new service to handle profile migrations

* Handle various null checks

* Remove unecessary assignments

* Further works on this:

- Loads profiles as JObject's initally, so migration can take place on profiles that don't have proper compatability
- Adds prerequisite migrations, and sorts them after one another

* Throw exception if profile can't be deserialized after migration

* Cleanup & use profile version

* Further migrations work, support 3.10 & 3.11 profiles upgrading to 4.0

* Update parameter name
2025-07-11 13:11:02 +01:00
Chomp d5fc9be339 Removed Voice from profile.info
Added 'voice' to `profile.Customisation`
2025-07-09 17:02:31 +01:00
Chomp 8474f40aa8 More MongoId changes + updated nullability of EOH objects 2025-07-07 12:31:13 +01:00
Chomp 61f62f191d Converted more strings to mongoIds and fixed issue with buying items from pmcs on flea 2025-07-07 11:56:19 +01:00
Chomp 7ccb388030 Converted sessionIds to MongoId and renamed property to reflect what type of value it holds 2025-07-07 11:47:08 +01:00
Chomp 9cdbb9b1f3 Fixed typo in method name 2025-07-07 11:28:12 +01:00
Cj 1de6a75cbf Update controllers sessionIds 2025-07-07 05:50:28 -04:00
Chomp 39e4a6e676 Fixed server error on adding item to wishlist 2025-07-07 09:53:43 +01:00
Cj 448c258600 update mongoIds, remove underscores from injections in generators (#460) 2025-07-07 09:46:51 +01:00
Chomp 3d11031dc6 Converted sessionIds from strings to MongoId struct 2025-07-07 09:34:43 +01:00
Cj 3817d6cca4 Helpers Mongoid conversion + cleanup (#458)
* Start converting helper method ids to mongoids and remove underscore from injections...

* Finish helper mongoIds
2025-07-06 17:31:59 +01:00
Jesse 03ec62d17d Small fixes (#455)
* Handle weapon crates as MongoId

* Unset required on _tpl in Hideout
2025-07-06 12:13:31 +01:00
Chomp fa674d6add Converted RemapRootItemId into extension method 2025-07-05 17:46:58 +01:00
Chomp f140e1e106 Converted ReplaceIDs into extension method 2025-07-05 17:25:59 +01:00
Jesse bd7d60e5ab More mongo (#450)
* Remove debug, doesn't really work

* Convert Handbook to MongoId's

* Make traders in Database keyed to MongoId rather than string
2025-07-05 13:41:57 +01:00
Chomp 4f5571c2d4 Converted more ids to MongoId 2025-07-05 12:35:03 +01:00
Chomp 8253215410 Converted strings into MongoId type 2025-07-05 11:03:09 +01:00
Jesse b6692fead4 Chatbot async improvements (#446)
* Add better chatbot handling by making them asynchronous

Removes the need for having RunInTimespan as await Task.Delay now can handle this

* Remove now unused classes

* Handle commando's commands with ValueTask

* Set values as not nullable, client sends all of these
2025-07-04 18:04:37 +01:00
Jesse b3c5d3732e Begin initial work to make Hideout id's MongoId's (#447)
* Begin initial work to make Hideout id's MongoId's

* Set template to mongo

* More conversions
2025-07-04 15:51:10 +01:00
Chomp a337b3c4e9 Removed unused injections from controllers 2025-07-04 09:24:06 +01:00
chompDev 973ea857f9 .NET Format Style Fixes 2025-07-03 22:06:04 +00:00
Archangel 79489eadce Handle ToLower neutrally across all locales (#412) 2025-07-03 18:28:36 +02:00
Jesse ebe8f9ded5 Mongoid changes (#440)
* Remove old IsValidMongoId and Regex

* Convert more configs to MongoId, as well as BaseClasses

* Remove HashUtil.Generate(), replaced with new MongoId()
2025-07-03 15:42:16 +01:00
Chomp 83d35b4555 Fixed item deletion error - Use separate record for item deletions 2025-07-03 10:37:12 +01:00
Chomp 77ce596056 Added MongoId type to various places 2025-07-02 19:50:29 +01:00
Chomp 86295b68fb Added MongoId type to various places 2025-07-02 19:07:58 +01:00
Chomp 2beebaed12 Reduced error to warning 2025-07-02 19:07:08 +01:00
Chomp 0d946b48cc Hashutil.generate to new MongoID() 2025-07-02 13:04:53 +01:00
Chomp a8308248d6 Replaced hashutil.generate with new MongoId() 2025-07-02 12:47:00 +01:00
Cj 371c9d58f0 Repeatable quest generation MongoID conversion (#439)
* Update repeatable quest generation for mongoid, add new server localizations, switch `Traders` to MongoId

* Give error default value
2025-07-02 12:44:49 +01:00