[#modding] feature request: have a helper `PluralCount` function in XRL.Grammar that takes ...
Issue #9141
new
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 returns1 foo
or2 foos
based on the count:
cs static string PluralCount(string What, int count = 1) => count + (count == 1 ? What : Grammar.Pluralize(What));
Comments (4)
-
-
Additionally, an option to not include the count would be helpful (though hardly needed)
-
repo owner -
repo owner -
assigned issue to
-
assigned issue to
- Log in to comment
We have this as extension method on int called Things but a second entry for it on the grammar helper couldn't hurt