public static bool IsEmpty(Corpse c) { if (c.GetTotal(TotalType.Gold) > 0 || c.GetTotal(TotalType.Items) > 0) return false; return true; }
//Note: Default decay time is 14* minutes private String ReadOut(Corpse c) { TimeSpan lapsed; String readOut; lapsed = (DateTime.Now).Subtract(c.TimeOfDeath); hue = ReadOutHue(lapsed.Minutes); readOut = " " + (14 - lapsed.Minutes) + " Items: " + c.GetTotal(TotalType.Items) + " Gold: " + (c.GetTotal(TotalType.Gold) / 1000) + " k"; return readOut; }