Planeshift
Public Member Functions | Public Attributes

RandomizedOverlay Class Reference

Stores the randomized stats from the loot randomizer, it could be used to apply any global special effect which is able to change various properties of the item: cost, mesh, name... More...

#include <psitem.h>

List of all members.

Public Member Functions

 RandomizedOverlay ()
 Constructor.
 ~RandomizedOverlay ()
 Destructor.

Public Attributes

bool active
 Notifies if this overlay is active and should be applied.
float damageStats [PSITEMSTATS_DAMAGETYPE_COUNT]
 Damage/protection stats changed by the loot modifiers rules.
ApplicativeScriptequip_script
 Equip script for this item overriding the main one from loot modifiers rules.
csString icon
 Overriden icon of this item from the basic one.
float latency
 Latency of the weapon changed by the loot modifiers rules.
csString mesh
 Overriden mesh of this item from the basic one.
csString name
 The name which should be replaced for this randomized item.
psMoney price
 Price calculated from the loot modifiers rules which overlays the basic one.
csArray< ItemRequirementreqs
 Array of all the stat prerequisites needed to equip this item.
float weight
 Weigth of the item changed by the loot modifier rules.

Detailed Description

Stores the randomized stats from the loot randomizer, it could be used to apply any global special effect which is able to change various properties of the item: cost, mesh, name...

This makes up a 3 levels modification of a single item in order of priority: The first level is the specific instance modifications: like name or descriptions The second level is the specific instance modifications coming from the loot modifiers table (probably should change the names when they will be used also to do changes to crafted items) The third level is the generic item stats. The active boolean variables is mostly an optimization to avoid checking if the overlay has data inside.

Definition at line 171 of file psitem.h.


Constructor & Destructor Documentation

RandomizedOverlay::RandomizedOverlay ( )

Constructor.

RandomizedOverlay::~RandomizedOverlay ( )

Destructor.


Member Data Documentation

Notifies if this overlay is active and should be applied.

Definition at line 176 of file psitem.h.

float RandomizedOverlay::damageStats[PSITEMSTATS_DAMAGETYPE_COUNT]

Damage/protection stats changed by the loot modifiers rules.

Definition at line 180 of file psitem.h.

Equip script for this item overriding the main one from loot modifiers rules.

Definition at line 181 of file psitem.h.

Overriden icon of this item from the basic one.

Definition at line 185 of file psitem.h.

Latency of the weapon changed by the loot modifiers rules.

Definition at line 179 of file psitem.h.

Overriden mesh of this item from the basic one.

Definition at line 184 of file psitem.h.

The name which should be replaced for this randomized item.

Definition at line 177 of file psitem.h.

Price calculated from the loot modifiers rules which overlays the basic one.

Definition at line 182 of file psitem.h.

Array of all the stat prerequisites needed to equip this item.

Definition at line 183 of file psitem.h.

Weigth of the item changed by the loot modifier rules.

Definition at line 178 of file psitem.h.


The documentation for this class was generated from the following file: