2 using Microsoft.Xna.Framework;
7 partial class GeneticMaterial : ItemComponent
23 if (containedMaterial ==
null) {
continue; }
24 mergedMaterialName +=
", " + containedMaterial.materialName;
26 name =
name.Replace(materialName, mergedMaterialName);
31 name = TextManager.GetWithVariable(
"entityname.taintedgeneticmaterial",
"[geneticmaterialname]",
name);
37 description = TextManager.GetWithVariable(
"entitydescription." +
Item.
Prefab.
Identifier,
"[value]", value.ToString());
41 var containedGeneticMaterial = containedItem.GetComponent<
GeneticMaterial>();
42 if (containedGeneticMaterial ==
null) {
continue; }
45 containedGeneticMaterial.AddTooltipInfo(ref _, ref containedDescription);
46 if (!containedDescription.IsNullOrEmpty())
48 description +=
'\n' + containedDescription;
57 var otherGeneticMaterial =
59 if (otherGeneticMaterial ==
null)
61 buttonText = TextManager.Get(
"researchstation.combine");
62 infoText = TextManager.Get(
"researchstation.combine.infotext");
66 buttonText = TextManager.Get(
"researchstation.refine");
67 int taintedProbability = (int)(GetTaintedProbabilityOnRefine(otherGeneticMaterial,
Character.
Controlled) * 100);
68 infoText = TextManager.GetWithVariable(
"researchstation.refine.infotext",
"[taintedprobability]", taintedProbability.ToString());
78 uint selectedTaintedEffectId = msg.
ReadUInt32();
AfflictionPrefab is a prefab that defines a type of affliction that can be applied to a character....
static readonly PrefabCollection< AfflictionPrefab > Prefabs
static Character? Controlled
virtual IEnumerable< Item > AllItems
All items contained in the inventory. Stacked items are returned as individual instances....
IEnumerable< Item > ContainedItems
float ConditionPercentage
ItemContainer InputContainer
void ClientEventRead(IReadMessage msg, float sendingTime)
void ModifyDeconstructInfo(Deconstructor deconstructor, ref LocalizedString buttonText, ref LocalizedString infoText)
override void AddTooltipInfo(ref LocalizedString name, ref LocalizedString description)
readonly ItemInventory Inventory
readonly Identifier Identifier