OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ItemGen Struct Reference

#include <Items.h>

Public Member Functions

void GetItemBonusArtifact (const Character *owner, CharacterAttribute attrToGet, int *bonusSum) const
 
void GetItemBonusSpecialEnchantment (const Character *owner, CharacterAttribute attrToGet, int *additiveBonus, int *halfSkillBonus) const
 
void ResetEnchantAnimation ()
 
bool ItemEnchanted () const
 
bool AuraEffectRed () const
 
bool AuraEffectBlue () const
 
bool AuraEffectGreen () const
 
bool AuraEffectPurple () const
 
bool IsRegularEnchanmentForAttribute (CharacterAttribute attrToGet)
 
bool IsBroken () const
 
void SetBroken ()
 
bool IsIdentified () const
 
void SetIdentified ()
 
bool IsStolen () const
 
void SetStolen ()
 
bool GenerateArtifact ()
 
void generateGold (ItemTreasureLevel treasureLevel)
 
int GetValue () const
 
std::string GetDisplayName ()
 
std::string GetIdentifiedName ()
 
void UpdateTempBonus (Time time)
 
void Reset ()
 
int _439DF3_get_additional_damage (DamageType *a2, bool *vampiyr)
 
ItemType GetItemEquipType () const
 
CharacterSkillType GetPlayerSkillType () const
 
const std::string & GetIconName () const
 
uint8_t GetDamageDice () const
 
uint8_t GetDamageRoll () const
 
uint8_t GetDamageMod () const
 
bool canSellRepairIdentifyAt (HouseId houseId)
 
bool isGold () const
 
bool isShield () const
 
bool isWand () const
 
bool isPotion () const
 
bool isBook () const
 
bool isReagent () const
 
bool isSpellScroll () const
 
bool isMessageScroll () const
 
bool isMeleeWeapon () const
 
bool isWeapon () const
 
bool isArmor () const
 
bool isPassiveEquipment () const
 

Static Public Member Functions

static void PopulateSpecialBonusMap ()
 
static void PopulateRegularBonusMap ()
 
static void PopulateArtifactBonusMap ()
 
static void ClearItemBonusMaps ()
 

Public Attributes

ItemId uItemID = ITEM_NULL
 
int potionPower = 0
 
int goldAmount = 0
 
std::optional< CharacterAttributeattributeEnchantment
 
int32_t m_enchantmentStrength = 0
 
ItemEnchantment special_enchantment = ITEM_ENCHANTMENT_NULL
 
int32_t uNumCharges = 0
 
ItemFlags uAttributes = 0
 
ItemSlot uBodyAnchor = ITEM_SLOT_INVALID
 
uint8_t uMaxCharges = 0
 
int8_t uHolderPlayer = -1
 
bool placedInChest = false
 
Time uExpireTime
 

Member Function Documentation

◆ _439DF3_get_additional_damage()

int ItemGen::_439DF3_get_additional_damage ( DamageType a2,
bool *  vampiyr 
)

◆ AuraEffectBlue()

bool ItemGen::AuraEffectBlue ( ) const
inline

◆ AuraEffectGreen()

bool ItemGen::AuraEffectGreen ( ) const
inline

◆ AuraEffectPurple()

bool ItemGen::AuraEffectPurple ( ) const
inline

◆ AuraEffectRed()

bool ItemGen::AuraEffectRed ( ) const
inline

◆ canSellRepairIdentifyAt()

bool ItemGen::canSellRepairIdentifyAt ( HouseId  houseId)

◆ ClearItemBonusMaps()

static void ItemGen::ClearItemBonusMaps ( )
static

◆ GenerateArtifact()

bool ItemGen::GenerateArtifact ( )

◆ generateGold()

void ItemGen::generateGold ( ItemTreasureLevel  treasureLevel)

◆ GetDamageDice()

uint8_t ItemGen::GetDamageDice ( ) const

◆ GetDamageMod()

uint8_t ItemGen::GetDamageMod ( ) const

◆ GetDamageRoll()

uint8_t ItemGen::GetDamageRoll ( ) const

◆ GetDisplayName()

std::string ItemGen::GetDisplayName ( )

◆ GetIconName()

const std::string & ItemGen::GetIconName ( ) const

◆ GetIdentifiedName()

std::string ItemGen::GetIdentifiedName ( )

◆ GetItemBonusArtifact()

void ItemGen::GetItemBonusArtifact ( const Character owner,
CharacterAttribute  attrToGet,
int *  bonusSum 
) const

◆ GetItemBonusSpecialEnchantment()

void ItemGen::GetItemBonusSpecialEnchantment ( const Character owner,
CharacterAttribute  attrToGet,
int *  additiveBonus,
int *  halfSkillBonus 
) const

◆ GetItemEquipType()

ItemType ItemGen::GetItemEquipType ( ) const

◆ GetPlayerSkillType()

CharacterSkillType ItemGen::GetPlayerSkillType ( ) const

◆ GetValue()

int ItemGen::GetValue ( ) const

◆ isArmor()

bool ItemGen::isArmor ( ) const
inline

◆ isBook()

bool ItemGen::isBook ( ) const
inline

◆ IsBroken()

bool ItemGen::IsBroken ( ) const
inline

◆ isGold()

bool ItemGen::isGold ( ) const
inline

◆ IsIdentified()

bool ItemGen::IsIdentified ( ) const
inline

◆ isMeleeWeapon()

bool ItemGen::isMeleeWeapon ( ) const
inline

◆ isMessageScroll()

bool ItemGen::isMessageScroll ( ) const
inline

◆ isPassiveEquipment()

bool ItemGen::isPassiveEquipment ( ) const
inline

◆ isPotion()

bool ItemGen::isPotion ( ) const
inline

◆ isReagent()

bool ItemGen::isReagent ( ) const
inline

◆ IsRegularEnchanmentForAttribute()

bool ItemGen::IsRegularEnchanmentForAttribute ( CharacterAttribute  attrToGet)

◆ isShield()

bool ItemGen::isShield ( ) const
inline

◆ isSpellScroll()

bool ItemGen::isSpellScroll ( ) const
inline

◆ IsStolen()

bool ItemGen::IsStolen ( ) const
inline

◆ isWand()

bool ItemGen::isWand ( ) const
inline

◆ isWeapon()

bool ItemGen::isWeapon ( ) const
inline

◆ ItemEnchanted()

bool ItemGen::ItemEnchanted ( ) const
inline

◆ PopulateArtifactBonusMap()

void ItemGen::PopulateArtifactBonusMap ( )
static

◆ PopulateRegularBonusMap()

void ItemGen::PopulateRegularBonusMap ( )
static

◆ PopulateSpecialBonusMap()

void ItemGen::PopulateSpecialBonusMap ( )
static

◆ Reset()

void ItemGen::Reset ( )

◆ ResetEnchantAnimation()

void ItemGen::ResetEnchantAnimation ( )
inline

◆ SetBroken()

void ItemGen::SetBroken ( )
inline

◆ SetIdentified()

void ItemGen::SetIdentified ( )
inline

◆ SetStolen()

void ItemGen::SetStolen ( )
inline

◆ UpdateTempBonus()

void ItemGen::UpdateTempBonus ( Time  time)

Member Data Documentation

◆ attributeEnchantment

std::optional<CharacterAttribute> ItemGen::attributeEnchantment

◆ goldAmount

int ItemGen::goldAmount = 0

◆ m_enchantmentStrength

int32_t ItemGen::m_enchantmentStrength = 0

◆ placedInChest

bool ItemGen::placedInChest = false

◆ potionPower

int ItemGen::potionPower = 0

◆ special_enchantment

ItemEnchantment ItemGen::special_enchantment = ITEM_ENCHANTMENT_NULL

◆ uAttributes

ItemFlags ItemGen::uAttributes = 0

◆ uBodyAnchor

ItemSlot ItemGen::uBodyAnchor = ITEM_SLOT_INVALID

◆ uExpireTime

Time ItemGen::uExpireTime

◆ uHolderPlayer

int8_t ItemGen::uHolderPlayer = -1

Only for full lich jars. 0-based index of the character whose earthly remains are stored in it. Or whatever it is that's in the lich jar.

◆ uItemID

ItemId ItemGen::uItemID = ITEM_NULL

◆ uMaxCharges

uint8_t ItemGen::uMaxCharges = 0

◆ uNumCharges

int32_t ItemGen::uNumCharges = 0

The documentation for this struct was generated from the following files: