A buy/sell transaction between two Inventorys, paid for from a StatBlock stat acting as
currency - the same role craft() fills for a recipe: check everything first, touch
nothing until every check passes, and if any later step fails (the buyer's bag has no
room), roll back whatever the earlier steps already did rather than losing stock or coin
for nothing.
A buy/sell transaction between two
Inventorys, paid for from aStatBlockstat acting as currency - the same rolecraft()fills for a recipe: check everything first, touch nothing until every check passes, and if any later step fails (the buyer's bag has no room), roll back whatever the earlier steps already did rather than losing stock or coin for nothing.Example