Documentation
¶
Overview ¶
Package wording is the one place that phrases counts, level fit and item sources for players, so digest lines, card details and prompts cannot drift apart.
Index ¶
- func Count(n int, one, many string) string
- func CutWords(s string, n int) string
- func Fit(level, mine int) string
- func Levels(n int) string
- func Plural(n int, one, many string) string
- func Slot(slot string) string
- func SlotName(slot string, invType int) string
- func Source(kind, name string) string
- func Upper(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fit ¶
Fit says how a level compares to the player's in words; "" when either is unknown (<= 0).
func SlotName ¶ added in v0.7.10
SlotName is a capture slot as a player says it, capitalized: "back" is "Cloak", "wrist" is "Wrists". invType is the item's inventory type when known (13 one-hand, 17 two-hand, 14 shield), else 0.
Types ¶
This section is empty.