Ejemplo n.º 1
0
    /// <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));
    }
Ejemplo n.º 2
0
    /// <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()));
    }
Ejemplo n.º 3
0
    /// <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));
    }
Ejemplo n.º 4
0
    /// <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);
    }
Ejemplo n.º 5
0
    /// <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);
    }
Ejemplo n.º 6
0
    /// <summary>
    /// Field of View abhängig von height.
    /// </summary>
    private void pushFoV()
    {
        float height = getCurrentValueForUpgrade(0);

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