示例#1
0
    public void UpdateSEA()
    {
        // update level
        level.CalculateLevel();

        // update attributes
        baseAttributes.Clamp();
        effectiveAttributes = baseAttributes + effects.CalculateAttributes();
        effectiveAttributes.Clamp();

        // update stats
        attributedStats = baseStats + StatAttRatio.AttributesToStats(effectiveAttributes);
        multipliedStats = attributedStats.MultiplyCombatStats(level.multiplierPercent);
        effectiveStats  = multipliedStats + effects.CalculateStats(multipliedStats);
        effectiveStats.Clamp();

        // update vitals
        vitals.Clamp(effectiveStats);
    }