I think I've sorted out those two shops.
I think I want to write some tests before committing.
Code:
get availableSeptEmbers
7
> ash buy($coinmaster[Sept-Ember Censer], 1, $item[structural ember])
Visiting the Sept-Ember Censer...
You acquire an item: structural ember
Preference availableSeptEmbers changed from 7 to 3
Preference _concoctionDatabaseRefreshes changed from 113 to 114
Sept-Ember Censer successfully looted!
Returned: true
> get availableMrStore2002Credits
3
> ash buy($coinmaster[Mr. Store 2002], 1, $item[Meat Butler])
Visiting the Mr. Store 2002...
You acquire an item: Meat Butler
Preference availableMrStore2002Credits changed from 3 to 2
Preference _concoctionDatabaseRefreshes changed from 114 to 115
Mr. Store 2002 successfully looted!
Returned: true
I think I want to write some tests before committing.