Promotion preprod → prod : contrats/kills, factions, tech-tree, assurance payout, Fortuna Pass #1
@@ -0,0 +1 @@
|
|||||||
|
_out/
|
||||||
@@ -131,6 +131,12 @@ public class ClaimActiveContract : ICloudScriptFunction<FYClaimCompletedActiveCo
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (objective.Type == EYContractObjectiveType.Kills) {
|
||||||
|
// Kill objectives can't be tracked in a client-hosted raid (no dedicated
|
||||||
|
// game server reports kills). They are auto-credited on deploy
|
||||||
|
// (EnterMatchmakingMatch); accept them here even if a contract was
|
||||||
|
// activated before that so kill contracts remain completable.
|
||||||
|
remaining = 0;
|
||||||
} else {
|
} else {
|
||||||
// NOTE: A game server must write the correct progress
|
// NOTE: A game server must write the correct progress
|
||||||
// for other types of objectives.
|
// for other types of objectives.
|
||||||
|
|||||||
@@ -61,6 +61,14 @@ public class EnterMatchmakingMatchFunction : ICloudScriptFunction<FYEnterMatchAz
|
|||||||
}
|
}
|
||||||
for (var i = 0; i < contract.Objectives.Length; i++) {
|
for (var i = 0; i < contract.Objectives.Length; i++) {
|
||||||
var objective = contract.Objectives[i];
|
var objective = contract.Objectives[i];
|
||||||
|
// Kill objectives: the client-hosted raid has no dedicated game server
|
||||||
|
// to report per-kill progress to the backend, so kills would never be
|
||||||
|
// saved. Auto-credit them on deploy so the objective can be completed
|
||||||
|
// (mirrors the player-kill auto-credit done in ActivateContract).
|
||||||
|
if (objective.Type == EYContractObjectiveType.Kills) {
|
||||||
|
contractActive.Progress[i] = objective.MaxProgress;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (objective.Type != EYContractObjectiveType.OwnNumOfItem) {
|
if (objective.Type != EYContractObjectiveType.OwnNumOfItem) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user