njdaniel / dnd

Tool for generating content for dnd
Apache License 2.0
2 stars 0 forks source link

Feature: Create Store #4

Closed njdaniel closed 3 years ago

njdaniel commented 5 years ago

Feature: create store from command line. A store of a certain type will create an inventory(item, price, quantity)

Based on type of store create inventory from data, add random supply depending on type of item.

ex. dnd create store --type

ex3. dnd create store --type=blacksmith Greatsword 2gp 2 longsword 1gp 4 chainmail 6gp 3

ex4. dnd create store --type=fletcher iron arrows 1cp 100 steel arrows 5cp 50 longbow 6gp 3 shortbow 3gp 6 heavy crossbow 4gp 2 bolts 1cp 200

Optional/future: -save store. Be able to come back with same items from same store. -update store, using current items, update supply to simulate a day -edit store supply eg dnd edit store --name=Bob's Bakes --item=bread -1

njdaniel commented 4 years ago

6 WIP PR

Issues:

njdaniel commented 3 years ago

use "generate" or "create"?

njdaniel commented 3 years ago

Updating new example:

 $ dnd store --help
    Available commands:
    - create
    - store-types

$ dnd store create --help

   Flags: 
   --name
   --store-type

$ dnd store store-types 
  Armorer
  Fletcher
  Weaponsmith
  Bowyer
njdaniel commented 3 years ago

This issue can be split into smaller issues: [ ] dnd store store-types [ ] dnd store create --store-type fletcher [ ] dnd store create --store-type armorer [ ] dnd store create --store-type weaponsmith