Skip to content

H7BlackMarket

Class in MMH7Game · MMH7Game.H7BlackMarket · native, perobjectconfig

Object › H7TownBuilding › H7BlackMarket

Using it from Lua
h7.find_all("H7BlackMarket")            -- live instances
h7.find_class("MMH7Game.H7BlackMarket")   -- the class
h7.hook("MMH7Game.H7BlackMarket.BuyItemByID", fn)

Properties

NameTypeNotes
mBuyPriceMultiplicatorfloatprotected
mCurrentItemsarray<H7HeroItem>protected
mEnableForbiddenItemTypeListboolprotected
mForbiddenItemTypearray<H7StructsAndEnumsNative.EItemType>protected
mItemPoolarray<H7HeroItem>protected
mItemPoolOverridearray<H7HeroItem>protected
mItemRandValuesarrayprotected
mRefreshOffersH7StructsAndEnumsNative.ETriggerprotected
mSellPriceMultiplicatorfloatprotected
mUseItemPoolOverrideboolprotected

Functions

NameDeclaration
BuyItemByIDfunction H7HeroItem BuyItemByID(int Id)
GetAddBoniOnStatByIDfunction float GetAddBoniOnStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetBaseStatByIDfunction float GetBaseStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetBuyPriceMultiplicatorfunction float GetBuyPriceMultiplicator()
GetCurrentlyAvailableItemsfunction array<H7HeroItem> GetCurrentlyAvailableItems()
GetEntityTypenative function H7StructsAndEnumsNative.EUnitType GetEntityType()
GetItemByIDfunction H7HeroItem GetItemByID(int Id)
GetModifiedStatByIDfunction float GetModifiedStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetModifiersByIDnative function GetModifiersByID(out array<H7MeModifiesStat> outStats, H7StructsAndEnumsNative.EStat desiredStat, optional H7StructsAndEnumsNative.EOperationType checkForOperation1 = 255, optional H7StructsAndEnumsNative.EOperationType checkForOperation2 = 255, optional bool nextRound)
GetMultiBoniOnStatByIDfunction float GetMultiBoniOnStatByID(H7StructsAndEnumsNative.EStat desiredStat)
GetSellPriceMultiplicatorfunction float GetSellPriceMultiplicator()
InitTownBuildingfunction InitTownBuilding(H7Town Town)
SetBuyPriceMultiplicatorfunction SetBuyPriceMultiplicator(float val)
SetCurrentItemsevent SetCurrentItems()
SetSellPriceMultiplicatorfunction SetSellPriceMultiplicator(float val)
TriggerEventsnative function TriggerEvents(H7StructsAndEnumsNative.ETrigger triggerEvent, bool forecast, optional H7EventContainerStruct container)

Default values

mBuyPriceMultiplicator=1.0000000
mSellPriceMultiplicator=1.0000000

Inherited

FromMembers
H7TownBuildingProperties: mAbility, mAbilityManager, mAiBaseUtility, mAlternate, mCosts, mCostsSkirmish, mDesc, mEventManager, mIcon, mIsUnique, mName, mNameInst, mPopup, mPrerequisites, mProduction, mProductionSkirmish, mRequiredLevel, mTown, mTownAsset, mTownAssets, mUpgrade
Functions: ApplyDamage, CostResourceCompareGUI, DataChanged, DelIcon, DelTownAsset, DelTownAssets, Deserialize, GetAbility, GetAbilityManager, GetAlternate, GetAlternateBothways, GetArchetypeDescription, GetBuffManager, GetBuildingBaseUtility, GetCost, GetDesc, GetEffectManager, GetEntityType, GetEventManager, GetFlashIconPath, GetFlashInfoIconPath, GetGridPosition, GetHitPoints, GetID, GetIDString, GetIncome, GetIncomeForResource, GetName, GetPlayer, GetPopup, GetPrerequisiteLevel, GetPrerequisites, GetResistanceModifierFor, GetStackSize, GetTown, GetTownAsset, GetTownAssets, GetUpgrade, HasTownAssetLoaded, HasTownAssetsLoaded, InitTownBuilding, IsArchetype, IsUnique, LocalizeName, OnBeginDay, PostSerialize, Serialize, SetPrerequisiteLevel, SetTown, ShouldDisplayIncome, TriggerEvents
Object13 properties, 308 functions