public override void PostDeSpawn(Map map) { base.PostDeSpawn(map); if (Infused) { InfusionLabelManager.DeRegister(this); } }
public override void PostSpawnSetup(bool respawningAfterLoad) { base.PostSpawnSetup(respawningAfterLoad); if (Infused) { //When there is only suffix if (suffix != null) { infusedLabelColor = suffix.tier.InfusionColor(); } //When there is only prefix else if (prefix != null) { infusedLabelColor = prefix.tier.InfusionColor(); } //When there are both prefix and suffix else { infusedLabelColor = MathUtility.Max(prefix.tier, suffix.tier).InfusionColor(); } infusedLabel = ""; if (prefix != null) { infusedLabel += prefix.labelShort; if (suffix != null) { infusedLabel += " "; } } if (suffix != null) { infusedLabel += suffix.labelShort; } InfusionLabelManager.Register(this); // We only throw notifications for newly spawned items. if (isNew) { throwMote(); } } }
public MapComponent_InfusionManager(Map map) : base(map) { // Clear old labels InfusionLabelManager.ReInit(); }