Junk items are now transfered to your blanket so you can use them in crafting. No UI for that though.

This commit is contained in:
Zed A. Shaw 2025-04-27 13:35:05 -04:00
parent bc557652ba
commit 1a9e068d02
10 changed files with 86 additions and 53 deletions

View file

@ -12,7 +12,6 @@
#include "json_mods.hpp"
#include "goap.hpp"
namespace components {
using namespace nlohmann;
@ -31,10 +30,6 @@ namespace components {
bool random=false;
};
struct Loot {
int amount;
};
struct Tile {
wchar_t display;
std::array<uint8_t, 3> foreground;
@ -152,7 +147,6 @@ namespace components {
ENROLL_COMPONENT(Curative, hp);
ENROLL_COMPONENT(LightSource, strength, radius);
ENROLL_COMPONENT(Weapon, damage);
ENROLL_COMPONENT(Loot, amount);
ENROLL_COMPONENT(Position, location.x, location.y);
ENROLL_COMPONENT(EnemyConfig, ai_script, ai_start_name, ai_goal_name);
ENROLL_COMPONENT(Personality, hearing_distance, tough);