Добавлен инвентарь, в сундуках могут содержаться предметы.

This commit is contained in:
DeLiss
2026-06-11 12:05:36 +05:00
parent cba2274630
commit 5d4940f754
12 changed files with 312 additions and 8 deletions

View File

@@ -64,7 +64,7 @@ bool Location::loadFromFile(const std::string& path) {
if (tile == 'C') {
Chest chest;
chest.pos = { x, y };
chest.gold = 25;
chest.itemIds = { 101, 102 };
chests.push_back(chest);
}
else if (tile == 'E') {