예제 #1
0
파일: Plant.cs 프로젝트: Jaak27/PlantUP
    /// <summary>
    /// Basic Nutrient Absorb Value abhängig von thickStalk und largePetals, range 50% - 150%.
    /// </summary>
    private void pushNutrientAbsorb()
    {
        float thickStalk  = getCurrentValueForUpgrade(7);
        float porousRoots = getCurrentValueForUpgrade(5);

        nutrientAbsorb.setCurrentValue(nutrientAbsorb.getBaseValue() + (porousRoots * 0.1f) - (thickStalk * 0.1f));
    }
예제 #2
0
파일: Plant.cs 프로젝트: Jaak27/PlantUP
    /// <summary>
    /// HPS von regeneration und insect abhängig,
    /// bei negativ spielt damageTaken eine Rolle.
    /// </summary>
    private void pushHps()
    {
        float regen   = getCurrentValueForUpgrade(1);
        float insects = getCurrentValueForUpgrade(9);

        healthPerSecond.setCurrentValue((maxHealth * regen * 0.02f) - (maxHealth * insects * 0.01f * damageTaken.getCurrentValue()));
    }
예제 #3
0
파일: Plant.cs 프로젝트: Jaak27/PlantUP
    /// <summary>
    /// DamageTaken abhängig von efficiency und thickStalk, range 50% - 150%.
    /// </summary>
    private void pushDamageTaken()
    {
        float efficiency = getCurrentValueForUpgrade(8);
        float thickStalk = getCurrentValueForUpgrade(7);

        damageTaken.setCurrentValue(damageTaken.getBaseValue() + (thickStalk * 0.1f) - (efficiency * 0.1f));
    }
예제 #4
0
파일: Plant.cs 프로젝트: Jaak27/PlantUP
    /// <summary>
    /// Energieausgabe abhängig von height, regen, deepRoots, bigLeaves, largePetals und efficiency.
    /// </summary>
    private void pushEps()
    {
        float height      = getCurrentValueForUpgrade(0);
        float regen       = getCurrentValueForUpgrade(1);
        float efficiency  = getCurrentValueForUpgrade(8);
        float deepRoots   = getCurrentValueForUpgrade(2);
        float bigLeaves   = getCurrentValueForUpgrade(3);
        float largePetals = getCurrentValueForUpgrade(4);

        energyPerSecond.setCurrentValue(bankCapacity.getCurrentValue() * (height + regen + deepRoots + bigLeaves + largePetals - 2 * efficiency) * 0.01f);
    }
예제 #5
0
파일: Plant.cs 프로젝트: Jaak27/PlantUP
    /// <summary>
    /// Pflanze gewinnt Sonnenenergie abhängig vom allgemeinen NutrientAbsorb und dem largePetals Upgrade.
    /// </summary>
    private void pushSunAbsorb()
    {
        float largePetals = getCurrentValueForUpgrade(4);

        sunAbsorb.setCurrentValue(nutrientAbsorb.getCurrentValue() + largePetals * 0.1f);
    }
예제 #6
0
파일: Plant.cs 프로젝트: Jaak27/PlantUP
    /// <summary>
    /// Field of View abhängig von height.
    /// </summary>
    private void pushFoV()
    {
        float height = getCurrentValueForUpgrade(0);

        fieldOfView.setCurrentValue(fieldOfView.getBaseValue() + height);
    }