Compare commits
	
		
			No commits in common. "2a74768ad8e792cdcb41ed7035a86d95ca106153" and "ea0449ee21ce4138fcf9183ce380591cdb19d591" have entirely different histories. 
		
	
	
		
			2a74768ad8
			...
			ea0449ee21
		
	
		
	| 
						 | 
					@ -35,8 +35,8 @@ function applyPatches(/** @type {ModUtils} */ { replace, replaceOne, replaceRawC
 | 
				
			||||||
+ "<br><a href='https://github.com/fxclient/FXclient' target='_blank'>Github repository</a></b>",`);
 | 
					+ "<br><a href='https://github.com/fxclient/FXclient' target='_blank'>Github repository</a></b>",`);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Add update information
 | 
					    // Add update information
 | 
				
			||||||
    replaceRawCode(`new k("🚀 New Game Update","The game was updated! Please reload the game.",!0,[`,
 | 
					    replaceRawCode(`new k("🚀 New Game Update","The game has been updated! Please reload the game.",!0,[`,
 | 
				
			||||||
        `new k("🚀 New Game Update","The game was updated! Please reload the game."
 | 
					        `new k("🚀 New Game Update","The game has been updated! Please reload the game."
 | 
				
			||||||
        + "<div style='border: white; border-width: 1px; border-style: solid; margin: 10px; padding: 5px;'><h2>FX Client is not yet compatible with the latest version of the game.</h2><p>Updates should normally be available within a few hours.<br>You can still use FX to play in singleplayer mode.</p></div>",!0,[`
 | 
					        + "<div style='border: white; border-width: 1px; border-style: solid; margin: 10px; padding: 5px;'><h2>FX Client is not yet compatible with the latest version of the game.</h2><p>Updates should normally be available within a few hours.<br>You can still use FX to play in singleplayer mode.</p></div>",!0,[`
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,7 +60,7 @@ function applyPatches(/** @type {ModUtils} */ { replace, replaceOne, replaceRawC
 | 
				
			||||||
    // Increment win counter on wins
 | 
					    // Increment win counter on wins
 | 
				
			||||||
    replaceRawCode(`=function(sE){a8.gD[sE]&&(o.ha(sE,2),b.h9<100?xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0):xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0))`,
 | 
					    replaceRawCode(`=function(sE){a8.gD[sE]&&(o.ha(sE,2),b.h9<100?xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0):xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0))`,
 | 
				
			||||||
        `=function(sE){
 | 
					        `=function(sE){
 | 
				
			||||||
		if (${playerId} === sE && !${gIsSingleplayer} && !${dict.game}.${dict.gIsReplay})
 | 
							if (${playerId} === sE && !${gIsSingleplayer})
 | 
				
			||||||
			__fx.wins.count++, window.localStorage.setItem("fx_winCount", __fx.wins.count),
 | 
								__fx.wins.count++, window.localStorage.setItem("fx_winCount", __fx.wins.count),
 | 
				
			||||||
			xD(0,"Your Win Count is now " + __fx.wins.count,3,sE,ad.gN,ad.kl,-1,!0);
 | 
								xD(0,"Your Win Count is now " + __fx.wins.count,3,sE,ad.gN,ad.kl,-1,!0);
 | 
				
			||||||
		a8.gD[sE]&&(o.ha(sE,2),b.h9<100?xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0):xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0))`);
 | 
							a8.gD[sE]&&(o.ha(sE,2),b.h9<100?xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0):xD(0,__L([a8.jx[sE]]),3,sE,ad.gN,ad.kl,-1,!0))`);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -128,8 +128,8 @@
 | 
				
			||||||
      </table>
 | 
					      </table>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div class="window" style="display: none" id="updateNotification">
 | 
					    <div class="window" style="display: none" id="updateNotification">
 | 
				
			||||||
      <h3>A new version of FX is available! Click the "Update" button below to update</h3>
 | 
					      <h3>A new version of FX is available! Reload to update</h3>
 | 
				
			||||||
      <button id="swUpdateButton">Update</button>
 | 
					      <button id="swUpdateButton">Reload</button>
 | 
				
			||||||
      <button onclick="document.getElementById('updateNotification').style.display = 'none'">Dismiss</button>
 | 
					      <button onclick="document.getElementById('updateNotification').style.display = 'none'">Dismiss</button>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
  </span>
 | 
					  </span>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,8 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    "version": "0.6.15",
 | 
					    "version": "0.6.14",
 | 
				
			||||||
    "lastUpdated": "Aug 22",
 | 
					    "lastUpdated": "Aug 10",
 | 
				
			||||||
    "changes": [
 | 
					    "changes": [
 | 
				
			||||||
        "Fix for game update v2.10.9",
 | 
					        "Fix for game update v2.10.4",
 | 
				
			||||||
        "Fixed the message in the FX Client update notification popup being inaccurate - just reloading the page normally no longer works, you have to instead press the \"Update\" (previously \"Reload\") button on the popup for the update to be applied.",
 | 
					        "Fix error when opening donation history on older browsers"
 | 
				
			||||||
        "Fixed win counter counting wins in replays"
 | 
					 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue