OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions | Variables
Items.cpp File Reference
#include "Engine/Objects/Items.h"
#include <map>
#include <string>
#include <unordered_map>
#include "Engine/Engine.h"
#include "Engine/Localization.h"
#include "Engine/Random/Random.h"
#include "Engine/Objects/ItemEnchantment.h"
#include "Engine/Objects/CharacterEnums.h"
#include "Engine/Tables/ItemTable.h"
#include "Engine/Tables/HouseTable.h"
#include "Engine/OurMath.h"
#include "Engine/Party.h"
#include "GUI/GUIButton.h"
#include "Utility/MapAccess.h"

Functions

template<class Key , class ActualKey >
static void AddToMap (std::map< Key, std::map< CharacterAttribute, CEnchantment > > &map, ActualKey key, CharacterAttribute subkey, int bonusValue=0, CharacterSkillType skill=CHARACTER_SKILL_INVALID)
 
std::string GetItemTextureFilename (ItemId item_id, int index, int shoulder)
 
Segment< ItemTreasureLevelRemapTreasureLevel (ItemTreasureLevel itemTreasureLevel, MapTreasureLevel mapTreasureLevel)
 

Variables

ItemGenptr_50C9A4_ItemToEnchant
 
ItemTablepItemTable
 
static std::map< int, std::map< CharacterAttribute, CEnchantment > > regularBonusMap
 
static std::map< ItemEnchantment, std::map< CharacterAttribute, CEnchantment > > specialBonusMap
 
static std::map< ItemId, std::map< CharacterAttribute, CEnchantment > > artifactBonusMap
 
static std::unordered_map< ItemId, ItemIditemTextureIdByItemId
 

Function Documentation

◆ AddToMap()

template<class Key , class ActualKey >
static void AddToMap ( std::map< Key, std::map< CharacterAttribute, CEnchantment > > &  map,
ActualKey  key,
CharacterAttribute  subkey,
int  bonusValue = 0,
CharacterSkillType  skill = CHARACTER_SKILL_INVALID 
)
static

◆ GetItemTextureFilename()

std::string GetItemTextureFilename ( ItemId  item_id,
int  index,
int  shoulder 
)

◆ RemapTreasureLevel()

Segment< ItemTreasureLevel > RemapTreasureLevel ( ItemTreasureLevel  itemTreasureLevel,
MapTreasureLevel  mapTreasureLevel 
)

Variable Documentation

◆ artifactBonusMap

std::map<ItemId, std::map<CharacterAttribute, CEnchantment> > artifactBonusMap
static

◆ itemTextureIdByItemId

std::unordered_map<ItemId, ItemId> itemTextureIdByItemId
static
Initial value:
= {
}
@ ITEM_POTION_HARDEN_ITEM
@ ITEM_RELIC_TWILIGHT
@ ITEM_ARTIFACT_YORUBA
@ ITEM_ARTIFACT_CLOAK_OF_THE_SHEEP
@ ITEM_SPECIAL_SUN_CLOAK
@ ITEM_MOGRED_HELM
@ ITEM_RELIC_PHYNAXIAN_CROWN
@ ITEM_ARTIFACT_GOVERNORS_ARMOR
@ ITEM_ARTIFACT_ELVEN_CHAINMAIL
@ ITEM_RELIC_TITANS_BELT
@ ITEM_RELIC_SCHOLARS_CAP
@ ITEM_FINE_CHAIN_MAIL
@ ITEM_SCROLL_ICE_BOLT
@ ITEM_POTION_STONESKIN
@ ITEM_POTION_WATER_BREATHING
@ ITEM_SPECIAL_VAMPIRES_CAPE
@ ITEM_POTION_MIGHT_BOOST
@ ITEM_SCROLL_DETECT_LIFE
@ ITEM_SCROLL_WATER_RESISTANCE
@ ITEM_SCROLL_TURN_UNDEAD
@ ITEM_ARTIFACT_SEVEN_LEAGUE_BOOTS
@ ITEM_SPECIAL_MOON_CLOAK
@ ITEM_ARTIFACT_MINDS_EYE
@ ITEM_SCROLL_HEROISM
@ ITEM_SPECIAL_SHADOWS_MASK
@ ITEM_POTION_INTELLECT_BOOST
@ ITEM_RELIC_TALEDONS_HELM
@ ITEM_POTION_CURE_INSANITY
@ ITEM_GILDED_BELT
@ ITEM_ARTIFACT_HEROS_BELT
@ ITEM_RELIC_HARECKS_LEATHER
@ ITEM_SCROLL_TOWN_PORTAL
@ ITEM_SCROLL_FEATHER_FALL
@ ITEM_SCROLL_REMOVE_CURSE

◆ pItemTable

ItemTable* pItemTable

◆ ptr_50C9A4_ItemToEnchant

ItemGen* ptr_50C9A4_ItemToEnchant

◆ regularBonusMap

std::map<int, std::map<CharacterAttribute, CEnchantment> > regularBonusMap
static

◆ specialBonusMap

std::map<ItemEnchantment, std::map<CharacterAttribute, CEnchantment> > specialBonusMap
static