/*
 * Copyright (c) 2026 盐灯水母
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

package com.remains_cave.dungeon.config;

import java.util.List;

public class VaultRewardConfig {
    private List<Pool> pools;

    public List<Pool> getPools() {
        return pools;
    }

    public void setPools(List<Pool> pools) {
        this.pools = pools;
    }

    public static class Pool {
        private int rolls;               // 固定次数，也可支持随机区间，为简化用整数
        private List<Entry> entries;

        public int getRolls() {
            return rolls;
        }

        public void setRolls(int rolls) {
            this.rolls = rolls;
        }

        public List<Entry> getEntries() {
            return entries;
        }

        public void setEntries(List<Entry> entries) {
            this.entries = entries;
        }
    }

    public static class Entry {
        private String item;      // 物品 ID，如 "remains_cave:crimson_bond"
        private int weight = 1;   // 权重，默认 1

        public String getItem() {
            return item;
        }

        public void setItem(String item) {
            this.item = item;
        }

        public int getWeight() {
            return weight;
        }

        public void setWeight(int weight) {
            this.weight = weight;
        }
    }
}