Refactor out the junk randomizer and put it in rituals where it belongs.

This commit is contained in:
Zed A. Shaw 2025-08-10 11:20:22 -04:00
parent 05d54ff661
commit 521180b086
3 changed files with 25 additions and 14 deletions

View file

@ -2,6 +2,7 @@
#include "goap.hpp"
#include "ai.hpp"
#include "config.hpp"
#include "components.hpp"
namespace ritual {
using JunkItem = std::string;
@ -96,4 +97,6 @@ namespace ritual {
bool no_selections();
void consume_crafting();
};
JunkPile random_junk(components::GameConfig& config, int count);
}