@Override
	public void setTMMoves(List<Integer> moveIndexes) {
		int offset = romEntry.getValue("TMMovesOffset");
		for (int i = 1; i <= 50; i++) {
			rom[offset + (i - 1)] = moveIndexes.get(i - 1).byteValue();
		}

		// TM Text
		String[] moveNames = readMoveNames();
		for (TMTextEntry tte : romEntry.tmTexts) {
			String moveName = moveNames[moveIndexes.get(tte.number - 1)];
			String text = tte.template.replace("%m", moveName);
			writeFixedLengthScriptString(text, tte.offset,
					lengthOfStringAt(tte.offset));
		}
	}