#!/bin/bash

yarn ts-node src/tools/convertToCromText.ts resources/cutscene2RugalLineFemaleTargeted_es.txt src/patches/cutscene2RugalLineFemaleTargeted_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/cutscene2RugalLineMaleTargeted_es.txt src/patches/cutscene2RugalLineMaleTargeted_es.asm

yarn ts-node src/tools/convertToCromText.ts resources/EnglandEnding_part1_en.txt src/patches/EnglandEndingDialog_part1_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/EnglandEnding_part2_en.txt src/patches/EnglandEndingDialog_part2_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/EnglandEnding_part3_en.txt src/patches/EnglandEndingDialog_part3_en.asm

yarn ts-node src/tools/convertToCromText.ts resources/EnglandEnding_part1_es.txt src/patches/EnglandEndingDialog_part1_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/EnglandEnding_part2_es.txt src/patches/EnglandEndingDialog_part2_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/EnglandEnding_part3_es.txt src/patches/EnglandEndingDialog_part3_es.asm

yarn ts-node src/tools/convertToCromText.ts resources/MexicoEnding_part1_en.txt src/patches/MexicoEndingDialog_part1_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/MexicoEnding_part2_en.txt src/patches/MexicoEndingDialog_part2_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/MexicoEnding_part3_en.txt src/patches/MexicoEndingDialog_part3_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/MexicoEnding_part4_en.txt src/patches/MexicoEndingDialog_part4_en.asm

yarn ts-node src/tools/convertToCromText.ts resources/MexicoEnding_part1_es.txt src/patches/MexicoEndingDialog_part1_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/MexicoEnding_part2_es.txt src/patches/MexicoEndingDialog_part2_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/MexicoEnding_part3_es.txt src/patches/MexicoEndingDialog_part3_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/MexicoEnding_part4_es.txt src/patches/MexicoEndingDialog_part4_es.asm

yarn ts-node src/tools/convertToCromText.ts resources/JapanEnding_part1_en.txt src/patches/JapanEndingDialog_part1_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/JapanEnding_part2_en.txt src/patches/JapanEndingDialog_part2_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/JapanEnding_part3_en.txt src/patches/JapanEndingDialog_part3_en.asm

yarn ts-node src/tools/convertToCromText.ts resources/JapanEnding_part1_es.txt src/patches/JapanEndingDialog_part1_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/JapanEnding_part2_es.txt src/patches/JapanEndingDialog_part2_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/JapanEnding_part3_es.txt src/patches/JapanEndingDialog_part3_es.asm

yarn ts-node src/tools/convertToCromText.ts resources/USAEnding_part1_en.txt src/patches/USAEndingDialog_part1_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/USAEnding_part2_en.txt src/patches/USAEndingDialog_part2_en.asm
yarn ts-node src/tools/convertToCromText.ts resources/USAEnding_part3_en.txt src/patches/USAEndingDialog_part3_en.asm

yarn ts-node src/tools/convertToCromText.ts resources/USAEnding_part1_es.txt src/patches/USAEndingDialog_part1_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/USAEnding_part2_es.txt src/patches/USAEndingDialog_part2_es.asm
yarn ts-node src/tools/convertToCromText.ts resources/USAEnding_part3_es.txt src/patches/USAEndingDialog_part3_es.asm