public override bool HandleEvent(GetDisplayNameEvent E) { if (this.stage > 0) { E.AddClause("&y[" + debugstring() + "&y]"); } return(true); }
public override bool HandleEvent(GetDisplayNameEvent E) { if (ParentObject.GetPart <Inventory>() != null && ParentObject.GetPart <Inventory>().Objects.Count() > 0) { int count = 0; foreach (GameObject GO in ParentObject.GetPart <Inventory>().GetObjects()) { count += GO.Count; } E.AddClause(" &y[" + count + " items]"); } return(true); }