Пример #1
0
        public static BossData GetDefaultBossData(BossType type)
        {
            switch (type)
            {
            case BossType.Cloak:
                defaultBossData = new BossData(type, BossModels.CreepBossCloak.ToString(), 500, 0.5f, 15.0f,
                                               100, DamageModifierValuesForBoss());
                break;
            }

            return(defaultBossData);
        }
		public static BossData GetDefaultBossData(BossType type)
		{
			switch (type)
			{
			case BossType.Cloak:
				defaultBossData = new BossData(type, BossModels.CreepBossCloak.ToString(), 500, 0.5f, 15.0f,
					100, DamageModifierValuesForBoss());
				break;
			}

			return defaultBossData;
		}
Пример #3
0
        private void CreateStats(BossType type, BossPropertiesXml properties)
        {
            BossData bossData = properties.Get(type);

            Name = bossData.Name;
            CreateStat("Hp", bossData.MaxHp);
            CreateStat("Speed", bossData.Speed);
            CreateStat("Resistance", bossData.Resistance);
            CreateStat("Gold", bossData.GoldReward);
            if (Player.Current != null)
            {
                ApplyBuff(new BuffEffect(Player.Current.Avatar.GetType().Name + "GoldMultiplier"));
            }

            State = new BossState();
            foreach (var modifier in bossData.TypeDamageModifier)
            {
                State.SetVulnerabilityWithValue(modifier.Key, modifier.Value);
            }
        }