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
+2 -16
View File
@@ -188,29 +188,15 @@ void Skeleton::dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel)
{
if (getSkeletonType() == TYPE_WITHER)
{
// drop some coal
// wither skeletons use hardcoded coal drops
int count = random->nextInt(3 + playerBonusLevel) - 1;
for (int i = 0; i < count; i++)
{
spawnAtLocation(Item::coal_Id, 1);
}
}
else
{
// drop some arrows
int count = random->nextInt(3 + playerBonusLevel);
for (int i = 0; i < count; i++)
{
spawnAtLocation(Item::arrow_Id, 1);
}
}
// and some bones
int count = random->nextInt(3 + playerBonusLevel);
for (int i = 0; i < count; i++)
{
spawnAtLocation(Item::bone->id, 1);
}
Monster::dropDeathLoot(wasKilledByPlayer, playerBonusLevel);
}
void Skeleton::dropRareDeathLoot(int rareLootLevel)