Esempio n. 1
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);
		}
Esempio n. 2
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);
            }
        }