Commit Graph

48 Commits

Author SHA1 Message Date
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 61cf11d3b8 Reordered botbase properties
Cleaned up EndRaid code to improve consistency
2025-07-08 10:26:11 +01:00
Chomp 9e136fa664 Reset limb max value after a raid 2025-07-08 10:08:36 +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
Cj 1de6a75cbf Update controllers sessionIds 2025-07-07 05:50:28 -04:00
Cj d1af6bf6e3 Service sessionIDs to mongoIDs (#454)
* Start updating service sessionIDs to mongoIDs

* Finish service conversion + fix other small issues
2025-07-06 13:08:07 +01:00
Chomp 2609db2536 Removed unused injections 2025-07-04 09:40:22 +01: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 86295b68fb Added MongoId type to various places 2025-07-02 19:07:58 +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
Chomp b4024527df Cleaned up a lot of health-related code formatting to be more readable in prep for fixing effect transference issues 2025-06-29 14:54:09 +01:00
Jesse 5686f4a486 Remove I18nService, migrate to renamed ServerLocalisationService (#433)
* Remove I18nService, migrate to renamed ServerLocalisationService

* Revert VS fuckup

* Update using

* Remove unused parameter, update comment

* Fix develop branch not building
2025-06-28 19:08:42 +01:00
Chomp 0be02bc3f5 Created ProfileExtensions 2025-06-28 09:27:41 +01:00
Chomp 41f99c3993 Made method protected added comments 2025-06-27 21:03:27 +01:00
Chomp 9b6722b06a Added ExcludeBosses property 2025-06-25 14:16:40 +01:00
chompDev c3463098be .NET Format Style Fixes 2025-06-21 14:16:39 +00:00
Chomp 1c207568a5 Moved loot generation logic from LocationLifecycleService into LocationLootGenerator 2025-06-21 15:16:01 +01:00
chompDev 203e30a637 .NET Format Style Fixes 2025-06-21 13:45:45 +00:00
Chomp 21bd868abe Added ability to track loot items and prevent more than a pre-defined amount from spawning
Replaced `location.json` `forcedLootSingleSpawnById` with `lootMaxSpawnLimits`

Added 5 item limit to `Labrys research notes` #290
2025-06-21 14:45:08 +01:00
Archangel f7782e1b1a Begin cleanup of quest model & nullability in Quests & Achievements 2025-06-20 14:24:58 +02:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp 95fd88c9ff Updated transit health system to only remove DestroyedPart effect and not heal limbs by default #300
Exposed values in config
Also apply code to PMC transits
2025-06-14 15:09:40 +01:00
Chomp 4e89fbbfd8 Fixed typos and improved code readability 2025-06-14 12:42:19 +01:00
Chomp 90568b9841 Updated HandlePostRaidPlayerScav to persist scav HP+effects when transiting to new location
Repair 30% of damaged limbs
2025-06-14 12:41:59 +01:00
Jesse 2c52012740 Further async changes (#387)
* Further async changes
- SaveServer & Backup Server are now async
- Anything that ties in with SaveServer saving (Such as callbacks) are now async
- Various async util methods added
- Removed two wrapper methods and switched code over to use the actual method

* Update test
2025-06-09 20:09:12 +01:00
Chomp 1d5162c761 Various changes and fixes for things that have been bugging me
Removed/flagged unused props
Typo fixes
Use `FirstOrDefault` over direct index access
Log stacktrace on exception inside `CreateWeaponItems`
2025-06-08 10:40:40 +01:00
Chomp 89106d5448 Refactored how skills are parsed, fixes issues with bot generation and end of raid profile parsing 2025-06-08 09:39:14 +01:00
hulkhan22 bc61f120d7 Configurable BTR delivery time 2025-06-07 17:53:12 +02:00
Archangel 4e3c755e90 Remove AppContext, store profile related data in ProfileActivityService 2025-05-30 19:36:23 +02:00
Chomp c110783269 Minor cleanup of post-raid fence standing calculations inside HandlePostRaidPlayerScav 2025-05-28 12:37:07 +01:00
Chomp a3c3cad825 Fixed scav runs not setting loot to non-FIR after runthrough #279 2025-05-28 12:28:02 +01:00
Chomp da42c2803a Comment improvements 2025-05-28 12:04:27 +01:00
hulkhan22 aef3a4202f Fix presentation of messages with items (rewards & insurance returns) (#265) 2025-05-21 22:29:34 +01:00
Chris Adamson f8bb244061 actually get rid of quest items on death (#249)
* actually get rid of quest items on death

* fixes based on feedback
2025-05-08 17:53:44 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
Chomp ae98f57bd9 Replaced various string.toLower() == x checks with string.Equals 2025-05-05 14:03:57 +01:00
Chomp 344ea6de35 Moved container methods around
Added code to validate items fit into airdrop crate

Updated `CreateForcedLoot` and `CreateRandomLoot` to return items with their children

Updated `SetFoundInRaid` to not add a upd to money/currency if it doesn't already have one
2025-05-02 19:48:28 +01:00
hulkhan22 bbae435498 Refactor Bot chat messages at raid end 2025-04-28 21:58:45 +02:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX 95d009e0e4 Changes to MailSendService
originally we had the trader id -> then used a method to get the EnumValue as a string -> then later turned it BACK into a traderId

unless im missing something major this should simplify things?

example:
we took "6617beeaa9cfa777ca915b7c" and turned it to "Ref" to then turn it back to "6617beeaa9cfa777ca915b7c"
2025-04-08 22:03:43 +01:00
Chomp 64275432df Reset skill progress value inside profile on raid start instead of raid end 2025-03-19 17:09:38 +00:00
TetrisGG 4b9ad904b6 Merge branch 'ServersComments' of https://github.com/tetrisdev/server-csharp into ServicesComments 2025-03-09 13:43:05 +01:00
TetrisGG 86f31fe202 Change Services Comments
Changed comments to XML standard
Added missing comments
Adjusted wording on some comments for clarity.
2025-03-09 13:40:05 +01:00
Archangel c872dd3d7f Make GenerateLocationAndLoot public & virtual 2025-03-08 17:43:41 +01:00
Chomp d6b5a1ad1e Remove unused method 2025-03-08 10:00:23 +00:00
Chomp 33c56e0730 Updated values to be consts where possible 2025-03-08 09:33:04 +00:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00