Genie currency subs

From Elanthipedia
Revision as of 22:40, 3 July 2020 by TRAIGA (talk | contribs) (fix where multiple subs were replacing the same text)
Jump to navigation Jump to search

Subs

These Genie substitutions summarize large quantities of coin in terms of platinums so that instead of seeing a large number like 1874919423 you will see 187,491.9 plat.

#subs {(\D+(\d+)(\d\d\d)(\d)(\d\d\d) (copper )?([Kk]ronars|[Ll]irums|[Dd]okoras))} {$1 ($2,$3.$4 plat)}
#subs {(\D+(\d?\d?\d)(\d)(\d\d\d) (copper )?([Kk]ronars|[Ll]irums|[Dd]okoras))} {$1 ($2.$3 plat)}
#subs {(Cost:\D+(\d?\d?\d)(\d)(\d\d\d)\s+)$} {$1 ($2.$3 plat)}
#subs {(Cost:\D+(\d+)(\d\d\d)(\d)(\d\d\d)\s+)$} {$1 ($2,$3.$4 plat)}

Examples

> shop notecard
Short: a boldly stenciled notecard
  Tap: a boldly stenciled notecard with a message that reads: "Ask me about forged weapons!"
 Cost: 1874919423  (187,491.9 plat)
 Look: Made from a single sheet of thick papyrus, this display has been pressed in such a way as to offer three equal sides for information.
 Read: There is nothing there to read.
> wealth
Wealth:
  24129 platinum, 3 gold, 3 silver, 4 bronze, and 7 copper Kronars (241293347 copper Kronars (24,129.3 plat)).