<?xml version="1.0" encoding="utf-8" ?>
<Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="../Schemas/Amplitude.Unity.Simulation.SimulationDescriptor.xsd">

    <!-- Class applied on the object VictoryManager passed as parameter for Victory conditions expression & alerts -->
    <SimulationDescriptor Name="ClassVictoryManager" Type="Class">
        <Property Name="LastTurn" BaseValue="200" RoundingFunction="Ceil"/>
        <Property Name="ExpansionThreshold" BaseValue="0.8"/>
        <Property Name="EmpireMoneyThreshold" BaseValue="555500"/>
        <Property Name="PeacePointThreshold" BaseValue="3000"/>
        <Property Name="NumberOfTechnologiesThreshold" BaseValue="5"/>
        <Property Name="NumberOfTechnologiesThresholdAlert1" BaseValue="2"/>
        <Property Name="NumberOfTechnologiesThresholdAlert2" BaseValue="4"/>
        <Property Name="VictoryQuestChapterThreshold" BaseValue="6"/>


        <!--<Modifier TargetProperty="LastTurn"             Operation="Subtraction"     Value="1"   Path="ClassVictoryManager" Priority="1"/>-->
    </SimulationDescriptor>

    
    <!-- Descriptors applied depending on game parameters -->
    
    <!-- Speed modifies the last turn, the money and peace threshold -->
    <SimulationDescriptor Name="VictoryModifierGameSpeedFast" Type="VictoryModifier">
        <Modifier TargetProperty="LastTurn"             Operation="Multiplication"     Value="0.5"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="EmpireMoneyThreshold" Operation="Multiplication"     Value="0.45"  Path="ClassVictoryManager"/>
        <Modifier TargetProperty="PeacePointThreshold"  Operation="Multiplication"     Value="0.45"  Path="ClassVictoryManager"/>
    </SimulationDescriptor>

    <SimulationDescriptor Name="VictoryModifierGameSpeedSlow"   Type="VictoryModifier">
        <Modifier TargetProperty="LastTurn"             Operation="Multiplication"     Value="1.5"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="EmpireMoneyThreshold" Operation="Multiplication"  Value="1.7"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="PeacePointThreshold"  Operation="Multiplication"  Value="1.7"   Path="ClassVictoryManager"/>
    </SimulationDescriptor>

    <SimulationDescriptor Name="VictoryModifierGameSpeedEndless"    Type="VictoryModifier">
        <Modifier TargetProperty="LastTurn"             Operation="Multiplication"     Value="10"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="EmpireMoneyThreshold" Operation="Multiplication"  Value="8"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="PeacePointThreshold"  Operation="Multiplication"  Value="8"   Path="ClassVictoryManager"/>
    </SimulationDescriptor>

    
    <!-- Galaxy size modifies the thresholds only -->
    <SimulationDescriptor Name="VictoryModifierGalaxySizeMassive"  Type="VictoryModifier">
        <Modifier TargetProperty="EmpireMoneyThreshold" Operation="Multiplication"  Value="2.1"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="PeacePointThreshold"  Operation="Multiplication"  Value="2.1"   Path="ClassVictoryManager"/>
    </SimulationDescriptor>

    <SimulationDescriptor Name="VictoryModifierGalaxySizeHuge"  Type="VictoryModifier">
        <Modifier TargetProperty="EmpireMoneyThreshold" Operation="Multiplication"  Value="1.8"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="PeacePointThreshold"  Operation="Multiplication"  Value="1.8"   Path="ClassVictoryManager"/>
    </SimulationDescriptor>

    <SimulationDescriptor Name="VictoryModifierGalaxySizeLarge" Type="VictoryModifier">
        <Modifier TargetProperty="EmpireMoneyThreshold" Operation="Multiplication"  Value="1.4"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="PeacePointThreshold"  Operation="Multiplication"  Value="1.4"   Path="ClassVictoryManager"/>
    </SimulationDescriptor>

    <SimulationDescriptor Name="VictoryModifierGalaxySizeSmall" Type="VictoryModifier">
        <Modifier TargetProperty="EmpireMoneyThreshold" Operation="Multiplication"  Value="0.75"  Path="ClassVictoryManager"/>
        <Modifier TargetProperty="PeacePointThreshold"  Operation="Multiplication"  Value="0.75"  Path="ClassVictoryManager"/>
    </SimulationDescriptor>

    <SimulationDescriptor Name="VictoryModifierGalaxySizeTiny"  Type="VictoryModifier">
        <Modifier TargetProperty="EmpireMoneyThreshold" Operation="Multiplication"  Value="0.5"   Path="ClassVictoryManager"/>
        <Modifier TargetProperty="PeacePointThreshold"  Operation="Multiplication"  Value="0.5"   Path="ClassVictoryManager"/>
    </SimulationDescriptor>

</Datatable>