This class stores an array of LootEntry and calculates required loot on a newly dead mob.
More...
#include <spawnmanager.h>
This class stores an array of LootEntry and calculates required loot on a newly dead mob.
Definition at line 241 of file spawnmanager.h.
LootEntrySet::~LootEntrySet |
( |
| ) |
|
void LootEntrySet::AddLootEntry |
( |
LootEntry * |
entry | ) |
|
This adds another item to the entries array.
void LootEntrySet::CreateLoot |
( |
psCharacter * |
character, |
|
|
size_t |
numModifiers = 0 |
|
) |
| |
This calculates the loot for the killed character, given the current set of loot entries, and adds them to the character as lootable inventory.
- Parameters
-
character | the character who has been killed |
numModifiers | max number of modifiers to use |
void LootEntrySet::CreateMultipleLoot |
( |
psCharacter * |
chr, |
|
|
size_t |
numModifiers = 0 |
|
) |
| |
|
protected |
void LootEntrySet::CreateSingleLoot |
( |
psCharacter * |
chr | ) |
|
|
protected |
float LootEntrySet::total_prob |
|
protected |
The documentation for this class was generated from the following file: