New Content - Implemented a couple of unknown plurals

AlbinoRhino

Active member
Recently ran across a couple of unknown plurals. (Attached...using r18920)

Also, ran into this:

PHP:
> ash to_plural($item[water purification pills])

Returned:     water purification pillss

I am assuming one could just add 'water purification pills' as a plural in items.txt and that would avoid the extra 's'?

Haven't done that in the patch but thought I would mention it as there may be more 'naturally' pluralized items...or not? But it seems like a glitch that could affect other things.
 

Attachments

  • items.txt.patch
    1.2 KB · Views: 30

Veracity

Developer
Staff member
If you don't specify a plural, we assume it is item name + 's'.

A 'natural' plural of "water purification pills" might be "bottles of water purification pills", but we make no such assumption. It might be "plates of" or "heaps of" or whatever. Or, as in this case, simply "water purification pills".

So, as you suggest, simply recording "water purification pills" as the plural of "water purification pills" is the way to go.

Thanks for the patch!
 

AlbinoRhino

Active member
Ha...this is from using the closet interface in the relay browser ( to_plural() DID match the game ):

You stored 859 water purification pillss in your closet.
 
Last edited:
Top