public void SetArtifact(Artifact art) { this.grantedArtifact = art; }
public void AddArtifact(Artifact art) { this.data.OwnedArtifacts.Add(art); if (art.DiplomacyMod > 0f) { this.data.Traits.DiplomacyMod += (art.DiplomacyMod + art.DiplomacyMod * this.data.Traits.Spiritual); } if (art.FertilityMod > 0f) { this.data.EmpireFertilityBonus += art.FertilityMod; foreach (Planet planet in this.GetPlanets()) { planet.Fertility += (art.FertilityMod + art.FertilityMod * this.data.Traits.Spiritual); } } if (art.GroundCombatMod > 0f) { this.data.Traits.GroundCombatModifier += (art.GroundCombatMod + art.GroundCombatMod * this.data.Traits.Spiritual); } if (art.ModuleHPMod > 0f) { this.data.Traits.ModHpModifier += (art.ModuleHPMod + art.ModuleHPMod * this.data.Traits.Spiritual); } if (art.PlusFlatMoney > 0f) { this.data.FlatMoneyBonus += (art.PlusFlatMoney + art.PlusFlatMoney * this.data.Traits.Spiritual); } if (art.ProductionMod > 0f) { this.data.Traits.ProductionMod += (art.ProductionMod + art.ProductionMod * this.data.Traits.Spiritual); } if (art.ReproductionMod > 0f) { this.data.Traits.ReproductionMod += (art.ReproductionMod + art.ReproductionMod * this.data.Traits.Spiritual); } if (art.ResearchMod > 0f) { this.data.Traits.ResearchMod += (art.ResearchMod + art.ResearchMod * this.data.Traits.Spiritual); } if (art.SensorMod > 0f) { this.data.SensorModifier += (art.SensorMod + art.SensorMod * this.data.Traits.Spiritual); } if (art.ShieldPenBonus > 0f) { this.data.ShieldPenBonusChance += (art.ShieldPenBonus + art.ShieldPenBonus * this.data.Traits.Spiritual); } }