feat: loot tables (#43)

self-explanatory

Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/43
This commit is contained in:
Fireblade
2026-07-12 02:05:06 +01:00
parent 0449af2be6
commit 54528fac16
146 changed files with 6397 additions and 1277 deletions
+6 -5
View File
@@ -1,6 +1,8 @@
#pragma once
#include "Feature.h"
#include <string>
class Random;
class Level;
@@ -8,12 +10,11 @@ class BonusChestFeature : public Feature
{
private:
const WeighedTreasureArray treasureList;
const int numRolls;
const std::string lootTableName;
public:
BonusChestFeature(WeighedTreasureArray treasureList, int numRolls);
explicit BonusChestFeature(const std::string &lootTableName);
virtual bool place(Level *level, Random *random, int x, int y, int z);
bool place(Level *level, Random *random, int x, int y, int z, bool force); // 4J added this method with extra force parameter
virtual bool place(Level *level, Random *random, int x, int y, int z);
bool place(Level *level, Random *random, int x, int y, int z, bool force); // 4J added this method with extra force parameter
};