mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-05 14:58:27 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
31
dGame/dUtilities/Loot.h
Normal file
31
dGame/dUtilities/Loot.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
#include "dCommonVars.h"
|
||||
#include <vector>
|
||||
#include "CDClientManager.h"
|
||||
class Entity;
|
||||
|
||||
namespace Loot {
|
||||
struct Info {
|
||||
LWOOBJID id;
|
||||
LOT lot;
|
||||
uint32_t count;
|
||||
};
|
||||
|
||||
std::vector<CDLootTable> GetLootOfRarity(const std::vector<CDLootTable> &lootTable, uint32_t rarity);
|
||||
|
||||
void DropActivityLoot(Entity* user, Entity* source, uint32_t activityID, int32_t rating = 0);
|
||||
|
||||
void GiveActivityLoot(Entity* user, Entity* source, uint32_t activityID, int32_t rating = 0);
|
||||
|
||||
void CalculateLootMatrix(uint32_t lootMatrixID, Entity* user, std::unordered_map<LOT, int32_t>& result);
|
||||
|
||||
void GiveLoot(Entity* user, uint32_t lootMatrixID);
|
||||
|
||||
void DropLoot(Entity* user, Entity* killedObject, uint32_t lootMatrixID, uint32_t minCoins, uint32_t maxCoins);
|
||||
|
||||
void GiveLoot(Entity* user, std::unordered_map<LOT, int32_t>& result);
|
||||
|
||||
void DropLoot(Entity* user, Entity* killedObject, std::unordered_map<LOT, int32_t>& result, uint32_t minCoins, uint32_t maxCoins);
|
||||
|
||||
void DropItem(Entity* user, Entity* sourceObject, LOT item, int32_t currency, int32_t count, bool useTeam = false, bool freeForAll = false);
|
||||
};
|
Reference in New Issue
Block a user