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); }
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); } }