private static void applyItemApplyCode(String codesLine, Item I, Environmental adjuster, Environmental caster, Environmental resister)
	{
		final int num=CMath.s_int(CMParms.getCleanBit(codesLine,0).trim());
		final int val=CMath.s_int(CMParms.getCleanBit(codesLine,1).trim());
		switch(num)
		{
		case 1:
			adjuster.setMiscText(adjuster.text()+" str"+((val>=0)?("+"+val):(""+val)));
			break;
		case 2:
			adjuster.setMiscText(adjuster.text()+" dex"+((val>=0)?("+"+val):(""+val)));
			break;
		case 3:
			adjuster.setMiscText(adjuster.text()+" int"+((val>=0)?("+"+val):(""+val)));
			break;
		case 4:
			adjuster.setMiscText(adjuster.text()+" wis"+((val>=0)?("+"+val):(""+val)));
			break;
		case 5:
			adjuster.setMiscText(adjuster.text()+" con"+((val>=0)?("+"+val):(""+val)));
			break;
		case 6:
			// coffeemud don't play with sex
			break;
		case 7:
			adjuster.setMiscText(adjuster.text()+" cha"+((val>=0)?("+"+val):(""+val)));
			break;
		case 8:
			break;
		case 9:
			break;
		case 10:
			break;
		case 11:
			break;
		case 12:
			adjuster.setMiscText(adjuster.text()+" mana"+((val>=0)?("+"+val):(""+val)));
			break;
		case 13:
			adjuster.setMiscText(adjuster.text()+" hit"+((val>=0)?("+"+val):(""+val)));
			break;
		case 14:
			adjuster.setMiscText(adjuster.text()+" move"+((val>=0)?("+"+val):(""+val)));
			break;
		case 15:
			break;
		case 16:
			break;
		case 17:
			if((val>0)&&(I instanceof Armor))
				I.basePhyStats().setArmor(I.basePhyStats().armor()+(val*5));
			else
				adjuster.setMiscText(adjuster.text()+" armor"+((val>=0)?("+"+(val*5)):(""+(val*5))));
			break;
		case 18:
			if((val>0)&&(I instanceof Weapon))
				I.basePhyStats().setAttackAdjustment(I.basePhyStats().attackAdjustment()+(val*5));
			else
				adjuster.setMiscText(adjuster.text()+" attack"+((val>=0)?("+"+(val*5)):(""+(val*5))));
			break;
		case 19:
			if((val>0)&&(I instanceof Weapon))
				I.basePhyStats().setDamage(I.basePhyStats().damage()+val);
			else
				adjuster.setMiscText(adjuster.text()+" damage"+((val>=0)?("+"+(val)):(""+(val))));
			break;
		case 20: // spells, but with a numeric value.. ?!?!
			break;
		case 21:
			break;
		case 22:
			break;
		case 23:
			break;
		case 24:
			resister.setMiscText(resister.text()+" magic "+((-val)*2)+"%");
			break;
		case 25:
			// i have no idea what a power up is
			break;
		case 30:
			switch(val)
			{
			case 6:
				caster.setMiscText(caster.text()+("Prayer_Curse")+";");
				break;
			case 9:
				caster.setMiscText(caster.text()+("Poison")+";");
				break;
			case 10:
				caster.setMiscText(caster.text()+("Prayer_Plague")+";");
				break;
			case 11:
				caster.setMiscText(caster.text()+("Spell_Blindness")+";");
				break;
			}
			break;
		}
	}