Project

General

Profile

Actions

Feature #10

open

Gather similar items into piles

Added by Hilapdatus over 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Low
Assignee:
-
Start date:
02/07/2020
Due date:
% Done:

0%

Estimated time:
reported_by:
Hilapdatus

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.

Actions #1

Updated by Hilapdatus over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Hilapdatus over 4 years ago

  • Description updated (diff)
Actions #3

Updated by Hilapdatus about 4 years ago

  • reported_by set to Hilapdatus
Actions

Also available in: Atom PDF