public void setArmor(String armor) {
		this.armor = armor;
		if (armor.compareTo("Light") == 0)
			CharInfo[3] = 0;
		else if (armor.compareTo("Medium") == 0)
			CharInfo[3] = 1;
		else if (armor.compareTo("Heavy") == 0)
			CharInfo[3] = 2;
		else if (armor.compareTo("Advanced") == 0)
			CharInfo[3] = 3;
		else if (trait.compareTo("Random") == 0)
			CharInfo[4] = (int) (Math.random()*4);
		else
			this.code.setValid(false);
	}