Make sure you read the description of the cheat code properly before using it.
Keep it somewhere else as a backup, just. Just overwrite geoscape.exe with your patched and edited file. Cut geoscape.exe from the currnt game install and move it to a new installation of Xcom1. Once you have edited the values back to originals, save it. Just enter the code in the console window and press enter to activate it. Look inside 'Sub Editor' within the editor and change 'Craft Weapons' to 0 for the Triton. Here is a list of the most popular cheat codes used in XCOM 2. A searchable list of all XCOM 2 cheats and console commands from the latest version of the game on Steam (PC / Mac).