@@ -33,7 +33,7 @@ const legacyContractRouter = Router()
3333/**
3434 * This game changer was modified between H1 and H2 to add pacification tracking, but that crashes in H1, so we use the old version.
3535 */
36- const doNotGetSpottedH1 : GameChanger = {
36+ const doNotGetSpottedSecondaryH1 : GameChanger = {
3737 Id : "b48bb7f9-b630-48cb-a816-720ed7959319" ,
3838 Name : "UI_GAMECHANGERS_GLOBAL_CONTRACTCONDITION_DO_NOT_GET_SPOTTED_SECONDARY_NAME" ,
3939 Description :
@@ -78,6 +78,54 @@ const doNotGetSpottedH1: GameChanger = {
7878 ] ,
7979}
8080
81+ const doNotGetSpottedPrimaryH1 : GameChanger = {
82+ Id : "9f409781-0a06-4748-b08d-784e78c6d481" ,
83+ Name : "UI_GAMECHANGERS_GLOBAL_CONTRACTCONDITION_DO_NOT_GET_SPOTTED_PRIMARY_NAME" ,
84+ Description :
85+ "UI_GAMECHANGERS_GLOBAL_CONTRACTCONDITION_DO_NOT_GET_SPOTTED_PRIMARY_DESC" ,
86+ Icon : "images/challenges/default_challenge_icon.png" ,
87+ IsHidden : null ,
88+ TileImage :
89+ "images/contractconditions/condition_contrac_do_not_be_spotted.jpg" ,
90+ Resource : [ ] ,
91+ Objectives : [
92+ {
93+ Id : "88778b57-2a4e-434f-874e-219d4eeb4089" ,
94+ Category : "primary" ,
95+ OnActive : {
96+ IfCompleted : {
97+ Visible : false ,
98+ } ,
99+ } ,
100+ BriefingText :
101+ "$loc UI_GAMECHANGERS_GLOBAL_CONTRACTCONDITION_DO_NOT_GET_SPOTTED_PRIMARY_FAIL" ,
102+ HUDTemplate : {
103+ display :
104+ "$loc UI_GAMECHANGERS_GLOBAL_CONTRACTCONDITION_DO_NOT_GET_SPOTTED_PRIMARY_OBJ" ,
105+ } ,
106+ Type : "statemachine" ,
107+ Definition : {
108+ Scope : "session" ,
109+ States : {
110+ Start : {
111+ "-" : {
112+ Transition : "Success" ,
113+ } ,
114+ } ,
115+ Success : {
116+ Spotted : {
117+ Transition : "Failure" ,
118+ } ,
119+ DisguiseBlown : {
120+ Transition : "Failure" ,
121+ } ,
122+ } ,
123+ } ,
124+ } ,
125+ } ,
126+ ] ,
127+ }
128+
81129legacyContractRouter . post (
82130 "/GetForPlay" ,
83131 jsonMiddleware ( ) ,
@@ -131,8 +179,12 @@ legacyContractRouter.post(
131179 for ( const gameChangerId of contractData . Data . GameChangers ) {
132180 let gameChanger = gameChangerData [ gameChangerId ]
133181
134- if ( gameChangerId === "b48bb7f9-b630-48cb-a816-720ed7959319" ) {
135- gameChanger = doNotGetSpottedH1
182+ if ( gameChangerId === doNotGetSpottedSecondaryH1 . Id ) {
183+ gameChanger = doNotGetSpottedSecondaryH1
184+ }
185+
186+ if ( gameChangerId === doNotGetSpottedPrimaryH1 . Id ) {
187+ gameChanger = doNotGetSpottedPrimaryH1
136188 }
137189
138190 if ( ! gameChanger ) {
0 commit comments