src/com/lilithsthrone/game/character/body/Body.java
/**
	 * Updates this body's covering to more realistic values.
	 * @param updateEyes If true, human eyes will be set to non-heterochromatic.
	 * @param updateHair If true, human hair and body hair will be set to unpatterned.
	 * @param updateBodyHairColours If true, the colour of all body hair values will be set to the matching colour of the body's head hair.
	 * @param updateSkin If true, all values for anus, lips, vagina, nipples, and penis will be set to the matching colour of the body's skin.
	 */
Updates this body's covering to more realistic values.
@param updateEyes If true, human eyes will be set to non-heterochromatic.
@param updateHair If true, human hair and body hair will be set to unpatterned.
@param updateBodyHairColours If true, the colour of all body hair values will be set to the matching colour of the body's head hair.
@param updateSkin If true, all values for anus, lips, vagina, nipples, and penis will be set to the matching colour of the body's skin.
Updates this body ' s covering to more realistic values . @param updateEyes If true human eyes will be set to non - heterochromatic . @param updateHair If true human hair and body hair will be set to unpatterned . @param updateBodyHairColours If true the colour of all body hair values will be set to the matching colour of the body ' s head hair . @param updateSkin If true all values for anus lips vagina nipples and penis will be set to the matching colour of the body ' s skin .
public void updateCoverings(boolean updateEyes, boolean updateHair, boolean updateBodyHairColours, boolean updateSkin) {
		if(updateEyes) {
			coverings.put(BodyCoveringType.EYE_HUMAN, new Covering
					(BodyCoveringType.EYE_HUMAN, CoveringPattern.EYE_IRISES, coverings.get(BodyCoveringType.EYE_HUMAN).getPrimaryColour(), false, coverings.get(BodyCoveringType.EYE_HUMAN).getPrimaryColour(), false));
		}
		if(updateHair) {
			coverings.put(BodyCoveringType.HAIR_HUMAN, new Covering
					(BodyCoveringType.HAIR_HUMAN, CoveringPattern.NONE, coverings.get(BodyCoveringType.HAIR_HUMAN).getPrimaryColour(), false, coverings.get(BodyCoveringType.HAIR_HUMAN).getPrimaryColour(), false));
			coverings.put(BodyCoveringType.BODY_HAIR_HUMAN, new Covering
					(BodyCoveringType.BODY_HAIR_HUMAN, CoveringPattern.NONE, coverings.get(BodyCoveringType.BODY_HAIR_HUMAN).getPrimaryColour(), false, coverings.get(BodyCoveringType.BODY_HAIR_HUMAN).getPrimaryColour(), false));
		}
		if(updateBodyHairColours) {
			for(AbstractRace race : Race.getAllRaces()) {
				if(!HairType.getHairTypes(race).isEmpty()) {
					coverings.put(race.getRacialBody().getBodyHairType(), new Covering(race.getRacialBody().getBodyHairType(), coverings.get(HairType.getHairTypes(race).get(0).getBodyCoveringType(this)).getPrimaryColour()));
				}
			}
		}
		if(updateSkin) {
			for(BodyMaterial mat : BodyMaterial.values()) { 
				if(mat!=BodyMaterial.FLESH) {
					AbstractBodyCoveringType coreSlimeCovering = BodyCoveringType.getMaterialBodyCoveringType(mat, BodyCoveringCategory.MAIN_SKIN);
					for(BodyCoveringCategory cat : BodyCoveringCategory.values()) {
						if(cat.isInfluencedByMaterialType()) {
							AbstractBodyCoveringType slimeCovering = BodyCoveringType.getMaterialBodyCoveringType(mat, cat);
							coverings.put(slimeCovering,
									new Covering(slimeCovering,
											slimeCovering.getNaturalPatterns().entrySet().iterator().next().getKey(),
											coverings.get(coreSlimeCovering).getPrimaryColour(),
											false,
											coverings.get(coreSlimeCovering).getPrimaryColour(),
											false));
						}
					}
				}
			}
			updateAnusColouring();
			updateNippleColouring();
			updateNippleCrotchColouring();
			updateMouthColouring();
			updateVaginaColouring();
			updatePenisColouring();
			updateSpinneretColouring();
		}
	}
public void updateCoverings ( boolean updateEyes , boolean updateHair , boolean updateBodyHairColours , boolean updateSkin ) { if ( updateEyes ) { coverings . put ( BodyCoveringType . EYE_HUMAN , new Covering ( BodyCoveringType . EYE_HUMAN , CoveringPattern . EYE_IRISES , coverings . get ( BodyCoveringType . EYE_HUMAN ) . getPrimaryColour ( ) , false , coverings . get ( BodyCoveringType . EYE_HUMAN ) . getPrimaryColour ( ) , false ) ) ; } if ( updateHair ) { coverings . put ( BodyCoveringType . HAIR_HUMAN , new Covering ( BodyCoveringType . HAIR_HUMAN , CoveringPattern . NONE , coverings . get ( BodyCoveringType . HAIR_HUMAN ) . getPrimaryColour ( ) , false , coverings . get ( BodyCoveringType . HAIR_HUMAN ) . getPrimaryColour ( ) , false ) ) ; coverings . put ( BodyCoveringType . BODY_HAIR_HUMAN , new Covering ( BodyCoveringType . BODY_HAIR_HUMAN , CoveringPattern . NONE , coverings . get ( BodyCoveringType . BODY_HAIR_HUMAN ) . getPrimaryColour ( ) , false , coverings . get ( BodyCoveringType . BODY_HAIR_HUMAN ) . getPrimaryColour ( ) , false ) ) ; } if ( updateBodyHairColours ) { for ( AbstractRace race : Race . getAllRaces ( ) ) { if ( ! HairType . getHairTypes ( race ) . isEmpty ( ) ) { coverings . put ( race . getRacialBody ( ) . getBodyHairType ( ) , new Covering ( race . getRacialBody ( ) . getBodyHairType ( ) , coverings . get ( HairType . getHairTypes ( race ) . get ( 0 ) . getBodyCoveringType ( this ) ) . getPrimaryColour ( ) ) ) ; } } } if ( updateSkin ) { for ( BodyMaterial mat : BodyMaterial . values ( ) ) { if ( mat != BodyMaterial . FLESH ) { AbstractBodyCoveringType coreSlimeCovering = BodyCoveringType . getMaterialBodyCoveringType ( mat , BodyCoveringCategory . MAIN_SKIN ) ; for ( BodyCoveringCategory cat : BodyCoveringCategory . values ( ) ) { if ( cat . isInfluencedByMaterialType ( ) ) { AbstractBodyCoveringType slimeCovering = BodyCoveringType . getMaterialBodyCoveringType ( mat , cat ) ; coverings . put ( slimeCovering , new Covering ( slimeCovering , slimeCovering . getNaturalPatterns ( ) . entrySet ( ) . iterator ( ) . next ( ) . getKey ( ) , coverings . get ( coreSlimeCovering ) . getPrimaryColour ( ) , false , coverings . get ( coreSlimeCovering ) . getPrimaryColour ( ) , false ) ) ; } } } } updateAnusColouring ( ) ; updateNippleColouring ( ) ; updateNippleCrotchColouring ( ) ; updateMouthColouring ( ) ; updateVaginaColouring ( ) ; updatePenisColouring ( ) ; updateSpinneretColouring ( ) ; } }
Updates this body's covering to more realistic values.
Updates this body ' s covering to more realistic values .
//		if(this.getBodyMaterial()==BodyMaterial.SLIME) { //			coverings.put(BodyCoveringType.SLIME, new Covering //					(BodyCoveringType.SLIME, coverings.get(BodyCoveringType.SLIME).getPattern(), coverings.get(BodyCoveringType.SLIME).getPrimaryColour(), false, coverings.get(BodyCoveringType.SLIME).getPrimaryColour(), false)); //		} // Make eyes normal: // Make hair non-highlighted: // Make all orifice colours the same as their surroundings: // Update all non-flesh parts to be the same colour as main skin: