package thb.jeanluc.adventure.model;

import java.util.List;

/** A multi-stage quest. Stage completion is condition-driven; rewards are effects. */
public record Quest(String id, String title, boolean autoStart,
                    List<QuestStage> stages, List<Effect> onComplete) {
    public Quest {
        stages = stages == null ? List.of() : List.copyOf(stages);
        onComplete = onComplete == null ? List.of() : List.copyOf(onComplete);
    }
}
