From 6f3410b37d0df7d49a34fe19a3b33c34317f0773 Mon Sep 17 00:00:00 2001 From: neckfire Date: Tue, 14 Jul 2026 11:56:14 +0200 Subject: [PATCH] fix(contracts): auto-credit kill objectives in client-hosted raids Kill-type contract objectives were never persisted: the client-hosted raid has no dedicated game server to report per-kill progress, so creature kills stayed at 0 and contracts reported "no kills" at claim. - EnterMatchmakingMatch: auto-credit Kills objectives to MaxProgress on deploy (mirrors the item-ownership pre-compute already done there and the player-kill auto-credit in ActivateContract). - ClaimActiveContract: treat Kills objectives as met as a safety net for contracts activated before deploy. Co-Authored-By: Claude Opus 4.8 --- .gitignore | 1 + .../Services/CloudScript/Functions/ClaimActiveContract.cs | 6 ++++++ .../CloudScript/Functions/EnterMatchmakingMatch.cs | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c4fff02 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +_out/ diff --git a/src/Prospect.Server.Api/Services/CloudScript/Functions/ClaimActiveContract.cs b/src/Prospect.Server.Api/Services/CloudScript/Functions/ClaimActiveContract.cs index df111ad..5796102 100644 --- a/src/Prospect.Server.Api/Services/CloudScript/Functions/ClaimActiveContract.cs +++ b/src/Prospect.Server.Api/Services/CloudScript/Functions/ClaimActiveContract.cs @@ -131,6 +131,12 @@ public class ClaimActiveContract : ICloudScriptFunction