/// <summary> /// /// /// </summary> //Player-only interfaces public void DropDialogue() { int dropCoordX = owner.CoordX; int dropcoordY = owner.CoordY; if (BodyCarrying != null) { DropBody(); return; } List <Item> dropped = MultipleItemSelectionMenu("drop", Backpack); for (int i = 0; i < dropped.Count; i++) { if (owner is Player) { Log.AddLine("You dropped the " + dropped[i].DisplayName); } dropped[i].CoordX = dropCoordX; dropped[i].CoordY = dropcoordY; owner.Timing.AddActionTime(TimeCost.DropItemCost(dropped[i])); World.AllItemsOnFloor.Add(dropped[i]); Backpack.Remove(dropped[i]); //if (dropped.Count == 1) break; } Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Gray; }
public void DropBody() //OF COURSE it's not final! { int dropCoordX = owner.CoordX; int dropcoordY = owner.CoordY; Item dropped; if (BodyCarrying != null) { if (owner is Player) { Log.AddLine("You dropped the " + BodyCarrying.DisplayName + " from your shoulder."); } dropped = BodyCarrying; dropped.CoordX = dropCoordX; dropped.CoordY = dropcoordY; owner.Timing.AddActionTime(TimeCost.DropItemCost(dropped)); World.AllItemsOnFloor.Add(dropped); BodyCarrying = null; } }