Feature #10
openGather similar items into piles
0%
Description
When a container contains multiple coins those coins are automatically put into a pile. You can pull individual coins out of the pile or pull all the coins of a particular type out of the pile.
I think it would be nifty if other objects could be heaped into piles as well. If there are seven swords on the ground, I'd like to see:
a heap of swords is here
instead of
a sword, a sword, a sword, a sword, a sword, a sword, and a sword are here
This could be controlled by adding something like:
int CanBePiled() { return 1; }
string PileNoun(int numItems) { return "pile" }
to LIB_OBJECT. Objects that shouldn't be piled could then override CanBePiled() and have it return 0. Other objects can alter the noun.
By altering the noun based on the number of items a we could do something like have a dozen roses when there are 12 otherwise we'd have a bunch of roses.
A pile wouldn't be created unless there are five or more objects or some such.