예제 #1
0
파일: Boss.cs 프로젝트: whztt07/DeltaEngine
		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);
		}
예제 #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);
            }
        }