Commit Graph

54 Commits

Author SHA1 Message Date
rootdarkarchon 9f189f2e15 Adjustments for Int/Cha progression in Hideout (#737)
* Fixup of some skill handling in hideout

* fix format

* add limited backwards compat and fix repair int value

* more logging and fixes

* fix charisma gain from repair

* revert divisor into multiplier

* run csharpier format

* undo formating/unnecessary files

* add debug guards

---------

Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
2026-02-07 19:45:31 +01:00
KnotScripts 2842ed1622 Check level first preventing profile from breaking. (#727)
* Check level first preventing profile from breaking.

---------

Co-authored-by: Archangel <jesse@archangel.wtf>
Co-authored-by: sp-tarkov-bot <singleplayertarkov@gmail.com>
Co-authored-by: Chomp <dev@dev.sp-tarkov.com>
2026-01-10 13:17:28 +01:00
Chomp 18f8c3b8f3 Code readability improvements for HandleRecipe() 2025-12-18 13:55:34 +00:00
Chomp 761ce2530b Fixed edge case with sending rewards to player stash would result in no space error #615
Add reward to profile prior to tools used to ensure consistency with free space check
2025-12-18 13:54:34 +00:00
Chomp 2eca8df2fa Default continuous to false 2025-11-04 21:43:34 +00:00
Chomp 88e5e9e748 Improved error handling inside HandleMusclePain() 2025-10-21 19:01:24 +01:00
Chomp ecc0ba8406 Cleanup of warnings 2025-09-26 13:38:47 +01:00
Chomp ec682ccc16 Updated GetTrader to use mongoId for traderId + removed redundant 'ragfair' check + made sessionId optional + added comments 2025-09-26 13:05:20 +01:00
Chomp e5d0af3890 Formatting and naming consistency changes 2025-09-02 14:27:10 +01:00
Chomp b44d9617d0 Added RestSpace to _areasWithResources 2025-08-21 20:42:56 +01:00
Chomp c3a4bb448c Filter down hideout areas prior to processing them in UpdateAreasWithResources
Updated hideout area "type" property to not be nullable
2025-08-13 17:15:52 +01:00
Cj e54dcbd4d1 Fix more warnings... (#543)
* Fix more warnings...

* Fix mistake
2025-08-12 15:28:54 +00:00
Lacyway d468848b0c Improve MongoIds (#537)
* Mongoid improvements pt1

* Format Style Fixes

* Fix incorrect string

* Fix != comparison

---------

Co-authored-by: sp-tarkov-bot <singleplayertarkov@gmail.com>
2025-08-09 11:50:49 +01:00
Chomp 162ce3f1d5 Comment and nullguard improvements in HideoutController 2025-08-07 18:22:13 +01:00
Archangel c3b36f4c7d Handle invalid profiles on all IOnUpdate 2025-08-05 17:20:49 +02:00
Chomp 3b4bcaf910 Made use of AddUpd extension 2025-08-05 15:56:23 +01:00
Archangel 11384c9b3f Fix null checks for profile 2025-08-05 14:28:29 +02:00
sp-tarkov-bot b14b74bf24 Format Style Fixes 2025-07-28 19:39:29 +00:00
Chomp 34bd002876 list to ienumerable changes
Removed unused methods

strong to mongoId changes
2025-07-25 12:28:40 +01:00
Chomp 59d33d2621 Deconstructed dict KvP to improve readabiltiy + string to mongoId conversions 2025-07-20 11:57:15 +01:00
Chomp f3482e28d9 Removed unnecessary nulls from Globals class 2025-07-16 12:20:19 +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 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 5ef2271a29 Converted collections to their frozen counterparts for improved lookup speed 2025-07-14 19:56:20 +01:00
Chomp 8474f40aa8 More MongoId changes + updated nullability of EOH objects 2025-07-07 12:31:13 +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 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 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 86295b68fb Added MongoId type to various places 2025-07-02 19:07:58 +01:00
Chomp a8308248d6 Replaced hashutil.generate with new MongoId() 2025-07-02 12:47:00 +01:00
Chomp 5c26f47e2f Use correct new MongoId() instead of hashutil 2025-07-02 10:56:10 +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 d2267847a8 Deconstructed dictionaries to improve readability 2025-06-27 23:21:44 +01:00
chompDev 1520cfadc3 .NET Format Style Fixes 2025-06-22 11:48:07 +00:00
Chomp 4b29aaf9d6 Fixed hideout area upgrades softlocking client when upgrading areas with containers
Removed unused injections

Renamed field to `_areasWithResources` and converted into hashset
2025-06-22 12:47:34 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Chomp 8d0c9999bc Improved comments inside RemoveResourceFromArea 2025-06-14 11:44:14 +01:00
Chomp 6804258a1d Improved nullguard inside RemoveResourceFromArea + changed warnings to errors 2025-06-14 11:39:27 +01:00
Chomp 8754690748 Cleaned up logic inside AddContainerImprovementToProfile + Added nullguard 2025-06-14 11:31:51 +01:00
Chomp cc1196717c Fixed easy start profile templates lacking a Place of Fame stash #386
Fixed hideout stash item upgrades not being correctly sent to client
2025-06-13 13:22:45 +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 3a2f68a232 Fixed issues relating to gift codes with profile modifications
Updated enums to match client formatting and ids
Added `SkillClass` enum

#368
2025-06-07 23:08:21 +01:00
Chomp 969e94975e Fixed hideout OnUpdate not triggering correctly 2025-06-05 13:52:27 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
hulkhan22 3e4b87a2ac Fix hideout upgrade complete time calculation 2025-04-27 18:59:38 +02:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
Chomp 6a5bceba39 Fixed AddContainerUpgradeToClientOutput saving the wrong key into client response object 2025-04-13 09:53:34 +01:00