Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.37 KB

shop_conventions.md

File metadata and controls

29 lines (26 loc) · 1.37 KB

Shops

  • stored in a json-file, containing one json-object with key "shops" and array as value
  • every key is stored as a String
  • values may be array ("offers"), else String
  • following structure:
  • "shops"
    • "background"
    • "shop_name"
    • "offers"
      • "item_name"
      • "price"
      • "required_level"
      • "equippable"
      • "tooltip"

Variables

variable value-type description
shops JSONArray contains all shop-JSONObjects
background String image-identifier from images
shop_name String identifier for map object property
offers JSONArray contains all offer-JSONObjects
item_name String item-identifier from items
price Integer amount of coins needed to buy this item
required_level Integer level needed to buy this item
equippable Boolean determines whether item cannot be obtained multiple times
tooltip String info-text that is shown in the shop dialog