<?xml version="1.0" encoding="utf-8"?>
<foliageType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../shared/xml/schema/foliageType.xsd">
    <fruitType name="lavender" shownOnMap="true" useForFieldMissions="true">
        <mapColors default="0.0908 0.004 0.1301 1" colorBlind="0.0546 0.0818 0.2789 1"/>
        <harvest litersPerSqm="1.3" cutHeight="0.3" forageCutHeight="0.4" chopperType="CHOPPER_MAIZE"/>
        <growth resetsSpray="true" growthRequiresLime="false" regrows="true"/>
        <soil lowDensityRequired="true" increasesDensity="false" consumesLime="false" startSprayLevel="0"/>
        <seeding directionSnapAngle="0" needsRolling="false" seedUsagePerSqm="0.02" isAvailable="true"/>
        <cultivation isAllowed="true"/>
        <mulcher chopperType="CHOPPER_MAIZE"/>
    </fruitType>
    <!-- lavender

    0 1 2 3

    1 0 0 0 - invisible
    0 1 0 0 - green small
    1 1 0 0 - green middle
    0 0 1 0 - green big
    1 0 1 0 - harvest ready
    0 1 1 0 - cut

    -->
    <foliageLayer cellSize="8" objectMask="16711935" decalLayer="0" densityMapChannelOffset="0" numDensityMapChannels="4" numBlocksPerUnit="0.7" shapeSource="lavender.i3d">
        <foliageStateDefaults distanceMapLayer="1" width="2.4" height="2.5" widthVariance="0" heightVariance="0.25" horizontalPositionVariance="0" />
        <!-- default LOD distances etc -->
        <foliageLodDefaults lod="0" viewDistance="20"  blendOutDistance="2" atlasSize="1" atlasOffset="1 0" texCoords="0 0 1 1" />
        <foliageLodDefaults lod="1" viewDistance="80" blendOutDistance="2" atlasSize="1" atlasOffset="1 0" texCoords="0 0 1 1" />
        <!-- 1 0 0 0 - invisible -->
        <foliageState name="invisible" isGrowing="true" allowsWeeding="true" allowsHoeing="true"/>
        <!-- 0 1 0 0 - green small -->
        <foliageState name="Small" width="2.4" distanceMap="distanceMaps/foliage_lavender_distance2_diffuse.png" isGrowing="true" allowsWeeding="true" allowsHoeing="true" fieldCourseLineHeight="0.3" regrowthStart="true">
			 <foliageShape>
                <foliageLod blockShape="0>0|0" />
                <foliageLod blockShape="1>0|0" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>0|1" />
                <foliageLod blockShape="1>0|1" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>0|2" />
                <foliageLod blockShape="1>0|2" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>0|3" />
                <foliageLod blockShape="1>0|3" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>0|4" />
                <foliageLod blockShape="1>0|4" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>0|5" />
                <foliageLod blockShape="1>0|5" />
            </foliageShape>
        </foliageState>
        <!-- 1 1 0 0 - green middle -->
        <foliageState name="Medium" distanceMap="distanceMaps/foliage_lavender_distance2_diffuse.png" isGrowing="true" allowsWeeding="true" isDestructibleByWheel="true" isDestructibleByDisaster="true" fieldCourseLineHeight="0.3">
            <foliageShape>
                <foliageLod blockShape="0>1|0" />
                <foliageLod blockShape="1>1|0" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>1|1" />
                <foliageLod blockShape="1>1|1" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>1|2" />
                <foliageLod blockShape="1>1|2" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>1|3" />
                <foliageLod blockShape="1>1|3" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>1|4" />
                <foliageLod blockShape="1>1|4" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>1|5" />
                <foliageLod blockShape="1>1|5" />
            </foliageShape>
        </foliageState>
        <!-- 0 0 1 0 - green big -->
        <foliageState name="Big" distanceMap="distanceMaps/foliage_lavender_distance3_diffuse.png" isGrowing="true" isDestructibleByWheel="true" isDestructibleByDisaster="true" fieldCourseLineHeight="0.3"> 
            <foliageShape>
                <foliageLod blockShape="0>2|0" />
                <foliageLod blockShape="1>2|0" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>2|1" />
                <foliageLod blockShape="1>2|1" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>2|2" />
                <foliageLod blockShape="1>2|2" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>2|3" />
                <foliageLod blockShape="1>2|3" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>2|4" />
                <foliageLod blockShape="1>2|4" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>2|5" />
                <foliageLod blockShape="1>2|5" />
            </foliageShape>
        </foliageState>
        <!-- 1 0 1 0 - harvest ready -->
        <foliageState name="Ready" distanceMap="distanceMaps/foliage_lavender_distance4_diffuse.png" isDestructibleByWheel="true" isDestructibleByDisaster="true" isHarvestReady="true" groundType="HARVEST_READY" fieldCourseLineHeight="0.3">
            <foliageShape>
                <foliageLod blockShape="0>3|0" />
                <foliageLod blockShape="1>3|0" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>3|1" />
                <foliageLod blockShape="1>3|1" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>3|2" />
                <foliageLod blockShape="1>3|2" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>3|3" />
                <foliageLod blockShape="1>3|3" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>3|4" />
                <foliageLod blockShape="1>3|4" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>3|5" />
                <foliageLod blockShape="1>3|5" />
            </foliageShape>
        </foliageState>
        <foliageState name="Bad" distanceMap="distanceMaps/foliage_lavender_distance5_diffuse.png" isWithered="true" isDestructibleByWheel="true" isDestructibleByDisaster="true" fieldCourseLineHeight="0.3">
            <foliageShape>
                <foliageLod blockShape="0>4|0" />
                <foliageLod blockShape="1>4|0" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>4|1" />
                <foliageLod blockShape="1>4|1" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>4|2" />
                <foliageLod blockShape="1>4|2" />
            </foliageShape>
        </foliageState>
        <!-- 0 1 1 0 - cut -->
        <foliageState name="Cut" isCut="true" isDestructedByWheel="true" isDestructedByDisaster="true" distanceMap="distanceMaps/foliage_lavender_distance3_diffuse.png" width="2.2" height="2.2">
            <foliageShape>
                <foliageLod blockShape="0>5|0" />
                <foliageLod blockShape="1>5|0" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>5|1" />
                <foliageLod blockShape="1>5|1" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>5|2" />
                <foliageLod blockShape="1>5|2" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>5|3" />
                <foliageLod blockShape="1>5|3" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>5|4" />
                <foliageLod blockShape="1>5|4" />
            </foliageShape>
            <foliageShape>
                <foliageLod blockShape="0>5|5" />
                <foliageLod blockShape="1>5|5" />
            </foliageShape>
        </foliageState>
        <!--  -->
    </foliageLayer>

    <growth>
        <seasonal initialState="Big">
            <period name="EARLY_SPRING"/>
            <period name="MID_SPRING" >
                <update startState="Cut" endState="Medium" />
            </period>
            <period name="LATE_SPRING" plantingAllowed="true">
                <update startState="invisible" endState="Small" />
                <update startState="Medium" endState="Big" />
                <update startState="Cut" endState="Medium" />
                <update startState="Small" endState="Medium" />
            </period>
            <period name="EARLY_SUMMER" plantingAllowed="true">
                <update startState="invisible" endState="Small" />
                <update startState="Small" endState="Medium" />
                <update startState="Medium" endState="Big" />
                <update startState="Big" endState="Ready" />
                <update startState="Cut" endState="Medium" />
            </period>
            <period name="MID_SUMMER">
                <update startState="Small" endState="Medium" />
                <update startState="Medium" endState="Big" />
                <update startState="Big" endState="Ready" />
                <update startState="Cut" endState="Medium" />
            </period>
            <period name="LATE_SUMMER">
                <update startState="Medium" endState="Big" />
                <update startState="Big" endState="Ready" />
                <update startState="Cut" endState="Medium" />
            </period>
            <period name="EARLY_AUTUMN">
                <update startState="Medium" endState="Big" />
                <update startState="Big" endState="Ready" />
                <update startState="Cut" endState="Medium" />
            </period>
            <period name="MID_AUTUMN">
                <update startState="Medium" endState="Big" />
                <update startState="Big" endState="Ready" />
                <update startState="Cut" endState="Medium" />            
            </period>
            <period name="LATE_AUTUMN">
                <update startState="Medium" endState="Small" />
                <update startState="Big" endState="Small" />
            </period>
            <period name="EARLY_WINTER"/>
            <period name="MID_WINTER"/>
            <period name="LATE_WINTER"/>
        </seasonal>
        <nonSeasonal>
            <update startState="invisible"       endState="Small" />
            <update startState="Small"           endState="Medium" />
            <update startState="Medium"          endState="Big" />
            <update startState="Big"             endState="Ready" />
            <update startState="Cut"             endState="Medium" />
        </nonSeasonal>
    </growth>
</foliageType>