Ejemplo n.º 1
0
 public void ManagmentFeature_attributBons()
 {
     Assert.AreEqual(3, featureManagment.getAttributeBonus(DSA_ATTRIBUTE.CH));
 }
Ejemplo n.º 2
0
        private void setUP_Energien()
        {
            int ko = 0;
            int kk = 0;
            int mu = 0;
            int ge = 0;
            int IN = 0;
            int kl = 0;
            int ch = 0;

            attributeDictionary.TryGetValue(DSA_ATTRIBUTE.KO, out ko);
            attributeDictionary.TryGetValue(DSA_ATTRIBUTE.KK, out kk);
            attributeDictionary.TryGetValue(DSA_ATTRIBUTE.MU, out mu);
            attributeDictionary.TryGetValue(DSA_ATTRIBUTE.GE, out ge);
            attributeDictionary.TryGetValue(DSA_ATTRIBUTE.IN, out IN);
            attributeDictionary.TryGetValue(DSA_ATTRIBUTE.KL, out kl);
            attributeDictionary.TryGetValue(DSA_ATTRIBUTE.CH, out ch);

            ko = ko + managmentFeature.getAttributeBonus(DSA_ATTRIBUTE.KO);
            kk = kk + managmentFeature.getAttributeBonus(DSA_ATTRIBUTE.KK);
            mu = mu + managmentFeature.getAttributeBonus(DSA_ATTRIBUTE.MU);
            ge = ge + managmentFeature.getAttributeBonus(DSA_ATTRIBUTE.GE);
            IN = IN + managmentFeature.getAttributeBonus(DSA_ATTRIBUTE.IN);
            kl = kl + managmentFeature.getAttributeBonus(DSA_ATTRIBUTE.KL);
            ch = ch + managmentFeature.getAttributeBonus(DSA_ATTRIBUTE.CH);


            energienDictionary_VOR = new Dictionary <DSA_ENERGIEN, int>();
            energienDictionary_VOR.Add(DSA_ENERGIEN.LEBENSENERGIE, (int)Math.Ceiling(Convert.ToDouble(ko + ko + kk) / 2));
            energienDictionary_VOR.Add(DSA_ENERGIEN.AUSDAUER, (int)Math.Ceiling(Convert.ToDouble(mu + ge + ko) / 2));
            energienDictionary_VOR.Add(DSA_ENERGIEN.ASTRALENERGIE, (int)Math.Ceiling(Convert.ToDouble(mu + IN + ch) / 2));
            energienDictionary_VOR.Add(DSA_ENERGIEN.MAGIERESISTENZ, (int)Math.Ceiling(Convert.ToDouble(mu + kl + ko) / 5));
            energienDictionary_VOR.Add(DSA_ENERGIEN.KARMAENERGIE, 0);
        }