[#modding] feature request: have a helper `PluralCount` function in XRL.Grammar that takes ...

Issue #9141 new
Freehold Games Bot Account created an issue

Marked for crossposting by: books

Message (jump):

<petrak@, Nitpicker-of-Bugs [💽]> feature request: have a helper PluralCount function in XRL.Grammar that takes a number and a thing, and returns 1 foo or 2 foos based on the count:
cs static string PluralCount(string What, int count = 1) => count + (count == 1 ? What : Grammar.Pluralize(What));

Comments (4)

  1. Corey Frang

    We have this as extension method on int called Things but a second entry for it on the grammar helper couldn't hurt

  2. Log in to comment