Compare commits
	
		
			No commits in common. "ea0449ee21ce4138fcf9183ce380591cdb19d591" and "73ce8d88bb760eba351eb970f033f8173a8de454" have entirely different histories. 
		
	
	
		
			ea0449ee21
			...
			73ce8d88bb
		
	
		
	
								
									
									
										
											6
										
									
									build.js
									
									
									
									
								
								
							
							
										
											6
										
									
									build.js
									
									
									
									
								| 
						 | 
					@ -66,9 +66,9 @@ async function patchGameCode() {
 | 
				
			||||||
	const codeSegments = [{
 | 
						const codeSegments = [{
 | 
				
			||||||
		code: `player = aQ.eF(eR);
 | 
							code: `player = aQ.eF(eR);
 | 
				
			||||||
			if (game.gIsReplay) { game.playerId = player; }
 | 
								if (game.gIsReplay) { game.playerId = player; }
 | 
				
			||||||
			str = __L(/* Player: {0} */ [b0.context.truncateAndFillText(playerData.rawPlayerNames[player], b0.qZ.sN(0, 10), 150)]) + "   ";
 | 
								str = L(58, /* Player: {0} */ [b0.context.truncateAndFillText(playerData.rawPlayerNames[player], b0.qZ.sN(0, 10), 150)]) + "   ";
 | 
				
			||||||
			str += __L(/* Strength: {10} */ [b0.rY.formatNumber(playerData.playerBalances[player])]) + "   ";
 | 
								str += L(59, /* Strength: {10} */ [b0.rY.formatNumber(playerData.playerBalances[player])]) + "   ";
 | 
				
			||||||
			str += __L(/* Territory: {10} */ [b0.rY.formatNumber(playerData.playerTerritories[player])]) + "   ";
 | 
								str += L(60, /* Territory: {10} */ [b0.rY.formatNumber(playerData.playerTerritories[player])]) + "   ";
 | 
				
			||||||
		`, addToDictionary: ["game", "gIsReplay", "playerData", "rawPlayerNames", "playerBalances", "playerTerritories"]
 | 
							`, addToDictionary: ["game", "gIsReplay", "playerData", "rawPlayerNames", "playerBalances", "playerTerritories"]
 | 
				
			||||||
	}];
 | 
						}];
 | 
				
			||||||
	codeSegments.forEach(({ code, addToDictionary }) => {
 | 
						codeSegments.forEach(({ code, addToDictionary }) => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,6 @@
 | 
				
			||||||
      "version": "0.5.3",
 | 
					      "version": "0.5.3",
 | 
				
			||||||
      "license": "ISC",
 | 
					      "license": "ISC",
 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "core-js": "^3.44.0",
 | 
					 | 
				
			||||||
        "js-beautify": "^1.14.11",
 | 
					        "js-beautify": "^1.14.11",
 | 
				
			||||||
        "uglify-js": "^3.19.2"
 | 
					        "uglify-js": "^3.19.2"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
| 
						 | 
					@ -366,10 +365,9 @@
 | 
				
			||||||
      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
 | 
					      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/brace-expansion": {
 | 
					    "node_modules/brace-expansion": {
 | 
				
			||||||
      "version": "2.0.2",
 | 
					      "version": "2.0.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
 | 
				
			||||||
      "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
 | 
					      "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
 | 
				
			||||||
      "license": "MIT",
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "balanced-match": "^1.0.0"
 | 
					        "balanced-match": "^1.0.0"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					@ -474,22 +472,10 @@
 | 
				
			||||||
        "proto-list": "~1.2.1"
 | 
					        "proto-list": "~1.2.1"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/core-js": {
 | 
					 | 
				
			||||||
      "version": "3.44.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.44.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-aFCtd4l6GvAXwVEh3XbbVqJGHDJt0OZRa+5ePGx3LLwi12WfexqQxcsohb2wgsa/92xtl19Hd66G/L+TaAxDMw==",
 | 
					 | 
				
			||||||
      "hasInstallScript": true,
 | 
					 | 
				
			||||||
      "license": "MIT",
 | 
					 | 
				
			||||||
      "funding": {
 | 
					 | 
				
			||||||
        "type": "opencollective",
 | 
					 | 
				
			||||||
        "url": "https://opencollective.com/core-js"
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "node_modules/cross-spawn": {
 | 
					    "node_modules/cross-spawn": {
 | 
				
			||||||
      "version": "7.0.6",
 | 
					      "version": "7.0.3",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
 | 
				
			||||||
      "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
 | 
					      "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
 | 
				
			||||||
      "license": "MIT",
 | 
					 | 
				
			||||||
      "dependencies": {
 | 
					      "dependencies": {
 | 
				
			||||||
        "path-key": "^3.1.0",
 | 
					        "path-key": "^3.1.0",
 | 
				
			||||||
        "shebang-command": "^2.0.0",
 | 
					        "shebang-command": "^2.0.0",
 | 
				
			||||||
| 
						 | 
					@ -1730,9 +1716,9 @@
 | 
				
			||||||
      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
 | 
					      "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "brace-expansion": {
 | 
					    "brace-expansion": {
 | 
				
			||||||
      "version": "2.0.2",
 | 
					      "version": "2.0.1",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
 | 
				
			||||||
      "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
 | 
					      "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "balanced-match": "^1.0.0"
 | 
					        "balanced-match": "^1.0.0"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
| 
						 | 
					@ -1794,15 +1780,10 @@
 | 
				
			||||||
        "proto-list": "~1.2.1"
 | 
					        "proto-list": "~1.2.1"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "core-js": {
 | 
					 | 
				
			||||||
      "version": "3.44.0",
 | 
					 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.44.0.tgz",
 | 
					 | 
				
			||||||
      "integrity": "sha512-aFCtd4l6GvAXwVEh3XbbVqJGHDJt0OZRa+5ePGx3LLwi12WfexqQxcsohb2wgsa/92xtl19Hd66G/L+TaAxDMw=="
 | 
					 | 
				
			||||||
    },
 | 
					 | 
				
			||||||
    "cross-spawn": {
 | 
					    "cross-spawn": {
 | 
				
			||||||
      "version": "7.0.6",
 | 
					      "version": "7.0.3",
 | 
				
			||||||
      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
 | 
					      "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
 | 
				
			||||||
      "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
 | 
					      "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
 | 
				
			||||||
      "requires": {
 | 
					      "requires": {
 | 
				
			||||||
        "path-key": "^3.1.0",
 | 
					        "path-key": "^3.1.0",
 | 
				
			||||||
        "shebang-command": "^2.0.0",
 | 
					        "shebang-command": "^2.0.0",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -21,7 +21,6 @@
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "homepage": "https://github.com/fxclient/FXclient#readme",
 | 
					  "homepage": "https://github.com/fxclient/FXclient#readme",
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
    "core-js": "^3.44.0",
 | 
					 | 
				
			||||||
    "js-beautify": "^1.14.11",
 | 
					    "js-beautify": "^1.14.11",
 | 
				
			||||||
    "uglify-js": "^3.19.2"
 | 
					    "uglify-js": "^3.19.2"
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,9 +3,6 @@ import ModUtils from '../modUtils.js';
 | 
				
			||||||
// Custom lobby patches
 | 
					// Custom lobby patches
 | 
				
			||||||
export default (/** @type {ModUtils} */ { insertCode, replaceCode, replaceRawCode, safeDictionary: dict, waitForMinification }) => {
 | 
					export default (/** @type {ModUtils} */ { insertCode, replaceCode, replaceRawCode, safeDictionary: dict, waitForMinification }) => {
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    // temporarily disabled for new versions
 | 
					 | 
				
			||||||
    return;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // set player id correctly
 | 
					    // set player id correctly
 | 
				
			||||||
    insertCode(`function aBG(aBE) {
 | 
					    insertCode(`function aBG(aBE) {
 | 
				
			||||||
		if (!Lobby.aAl) { return -1; }
 | 
							if (!Lobby.aAl) { return -1; }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,7 +2,6 @@ import WindowManager from "./windowManager.js";
 | 
				
			||||||
import { getVar } from "./gameInterface.js";
 | 
					import { getVar } from "./gameInterface.js";
 | 
				
			||||||
import { escapeHtml } from "./utils.js";
 | 
					import { escapeHtml } from "./utils.js";
 | 
				
			||||||
import { debugWithContext } from "./debugging.js";
 | 
					import { debugWithContext } from "./debugging.js";
 | 
				
			||||||
import 'core-js/actual/array/to-reversed.js'
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
WindowManager.add({
 | 
					WindowManager.add({
 | 
				
			||||||
    name: "donationHistory",
 | 
					    name: "donationHistory",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,8 +1,8 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    "version": "0.6.14",
 | 
					    "version": "0.6.13",
 | 
				
			||||||
    "lastUpdated": "Aug 10",
 | 
					    "lastUpdated": "Jul 22",
 | 
				
			||||||
    "changes": [
 | 
					    "changes": [
 | 
				
			||||||
        "Fix for game update v2.10.4",
 | 
					        "Fix for game update 2.09.9",
 | 
				
			||||||
        "Fix error when opening donation history on older browsers"
 | 
					        "Fix to prevent the hovering tooltip from causing perspective switching during replays (a new feature was added to the base game where, in replays, you can switch to a different player/bot by right clicking on them)"
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue