// Stonks for Fabric: Configuration file
// Source code:    https://github.com/nahkd123/stonks
// Issues tracker: https://github.com/nahkd123/stonks/issues
// Documentations: https://github.com/nahkd123/stonks/wiki

// Platform configurations
// These configurations are defaults. You can omit them if you want.
platformConfig
    // Number of currency decimal points. Used for parsing player's input.
    // Set this to 0 if you are using economy system with integer value for currency
    // It should be equals to configured decimal points in ScoreboardEconomyAdapter
    // or CommonEconomyAdapter
    decimals 2

    // Tax rate. A value of 1 means it will takes 100% of incomes.
    tax 0.00

    // Price delta for top offer. Used for "Top offer +/- $0.1" button
    // in offer price setup menu.
    topOfferPriceDelta 0.1

    // Category icons
    // If you don't specify icons here, it will defaults to minecraft:paper
    categoryIcon foods minecraft:carrot
    categoryIcon specials minecraft:diamond

// Service
// You can only have 1 active service for each server
useService stonks.fabric.service.IntegratedStonksService
    // Because this is integrated service, you have to specify all products
    // If you are using remote service, you don't have to specify products here
    category foods
        name Foods
        product apple
            name Apple
            construction item minecraft:apple
        product carrot
            name Carrot
            construction item minecraft:carrot
        product potato
            name Potato
            construction item minecraft:potato
        product baked_potato
            name Baked Potato
            construction item minecraft:baked_potato
        product steak
            name Steak
            construction item minecraft:cooked_beef
        product cooked_porkchop
            name Cooked Porkchop
            construction item minecraft:cooked_porkchop
    category specials
        name Special Items
        product special_paper
            name Special Paper
            construction item minecraft:paper{ \
                display: { \
                    Name: '{"text": "Special Paper", "color": "red", "italic": false}', \
                    Lore: [ \
                        '{"text": "Edit this in /config/stonks/config!", "color": "aqua", "italic": false}' \
                    ] \
                } \
            }

// Adapters
useAdapter stonks.fabric.adapter.provided.ItemsAdapter

// You need to include economy adapter by yourself.
// See wiki for more info.
//
// If the adapter have options, you can specify options like this:
// useAdapter com.example.StonksAdapter
//     optionName optionValue
