public Item(SimDescription sim, CareerLevel level) : base(level.GetLocalizedName(sim), level.Level) { mLevel = level; }
public override void RunEvent(Career c) { Career newCareer = NewCareer as Career; if (newCareer == null) { return; } int newCareerLevel = this.GetNewCareerLevel(c); CareerLevel level = null; foreach (Dictionary <int, CareerLevel> dictionary in newCareer.CareerLevels.Values) { if (dictionary.TryGetValue(newCareerLevel, out level)) { ObjectGuid simObjectId = new ObjectGuid(); if (c.OwnerDescription.CreatedSim != null) { simObjectId = c.OwnerDescription.CreatedSim.ObjectId; } if (Display(LocalizeString(c.OwnerDescription.IsFemale, mStringKey, new object[] { c.OwnerDescription, level.GetLocalizedName(c.OwnerDescription), level.Level, c.CurLevel.GetLocalizedName(c.OwnerDescription), c.CareerLevel }), simObjectId, c.OwnerDescription.IsFemale, c)) { DoTransfer(c, newCareerLevel); } break; } } }