Пример #1
0
        private void setUP_Features()
        {
            featureDictionary = getFeatureDictionary();
            List <Feature> list = new List <Feature>(featureDictionary.Keys);

            for (int i = 0; i < list.Count; i++)
            {
                int pos = 0;
                featureDictionary.TryGetValue(list[i], out pos);

                charakter.addFeature(pos, list[i]);
                managmentFeature.addFeature(list[i], pos);
            }
        }
Пример #2
0
        public void setUP()
        {
            featureManagment = new ManagmentFeature();

            feature1 = new Feature("Feature1", "Description1", "0", "0", DSA_FEATURES.VORTEIL);
            Feature feature2 = new Feature("Feature2", "Description1", "0", "0", DSA_FEATURES.VORTEIL);
            Feature feature3 = new Feature("Feature3", "Description1", "0", "0", DSA_FEATURES.VORTEIL);
            Feature feature4 = new Feature("Feature4", "Description1", "0", "0", DSA_FEATURES.VORTEIL);

            feature5 = new Feature("Feature5", "Description1", "0", "0", DSA_FEATURES.NACHTEIL);
            Feature feature6 = new Feature("Feature6", "Description1", "0", "0", DSA_FEATURES.NACHTEIL);

            talent1 = new TalentCrafting("TestTalent", new List <DSA_ATTRIBUTE>(), "BE", new List <TalentDeviate>(), new List <TalentRequirement>());

            feature3.setAttributeBonus(DSA_ATTRIBUTE.CH, 5);
            feature6.setAttributeBonus(DSA_ATTRIBUTE.CH, 2);

            feature4.setAdvancedValues(DSA_ADVANCEDVALUES.FERNKAMPF_BASIS, 5);

            feature1.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 10);
            feature2.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 2);
            feature3.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 3);
            feature4.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 8);
            feature5.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 10);
            feature6.setEnergieBonus(DSA_ENERGIEN.ASTRALENERGIE, 10);

            feature1.addTalent(talent1, 10);
            feature3.addTalent(talent1, 10);

            featureManagment.addFeature(feature1, 1);
            featureManagment.addFeature(feature2, 2);
            featureManagment.addFeature(feature3, 3);
            featureManagment.addFeature(feature4, 4);
            featureManagment.addFeature(feature5, 5);
            featureManagment.addFeature(feature6, 6);
        }