Static
defaultStatic
orderStatic
_directoryStatic
_failedStatic
convertConvert totalAmount to a currency object containing
currency object containing max number of coins. Falsey values will assume infinity
currency as gold pieces. If provided as a currency object, will convert to gold
false if failed, currency object containing new amounts on conversion success
Static
transferTransfer an amount of currency to a valid document
ActorPF or ItemPF with currency
ActorPF or ItemPF with currency
currency object containing transferred amount. Undefined keys will be assumed to be zero. Providing just a number will assume just gold
Use alt currency on source
Use alt currency on destination
Optional
allowConversion: number = falseAttempts to make change with sourceDoc's currency limit
false if failed, object containing amount transferred on success
Generated using TypeDoc
Order of coin types, descending in value