mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 22:48:54 +01:00
feat: loot tables (#43)
self-explanatory Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/43
This commit is contained in:
1 parent
0449af2be6
commit
54528fac16
146 files changed
+6397
-1277
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user