24 ::ll::TypedStorage<8, 128, ::ItemInstance> mBuyA;
25 ::ll::TypedStorage<8, 128, ::ItemInstance> mBuyB;
26 ::ll::TypedStorage<8, 128, ::ItemInstance> mSell;
27 ::ll::TypedStorage<4, 4, int> mTier;
28 ::ll::TypedStorage<4, 4, int> mUses;
29 ::ll::TypedStorage<4, 4, int> mMaxUses;
30 ::ll::TypedStorage<4, 4, uint> mTraderExp;
31 ::ll::TypedStorage<1, 1, bool> mRewardExp;
32 ::ll::TypedStorage<4, 4, int> mDemand;
33 ::ll::TypedStorage<4, 4, int> mBuyCountA;
34 ::ll::TypedStorage<4, 4, int> mBuyCountB;
35 ::ll::TypedStorage<4, 4, float> mPriceMultiplierA;
36 ::ll::TypedStorage<4, 4, float> mPriceMultiplierB;
37 ::ll::TypedStorage<4, 4, ::RecipeNetId> mRecipeNetId;
51 MCAPI MerchantRecipe();
60 MCAPI
void calculateDemandPrices(
61 int minorPositiveGossip,
62 int majorPositiveGossip,
63 int nearbyCuredDiscount,
64 int heroEffectAmplifier,
65 bool hasHeroOfTheVillage,
69 MCAPI
void calculateDemandPricesDefaults();
71 MCAPI ::std::unique_ptr<::CompoundTag> createTag(
bool includeNetInfo,
::SaveContext const& saveContext)
const;
73 MCFOLD
int getBaseCountA()
const;
75 MCAPI
int getBaseCountB()
const;
77 MCFOLD ::ItemInstance
const& getBuyAItem()
const;
79 MCFOLD ::ItemInstance
const& getBuyBItem()
const;
81 MCAPI
int getDemand()
const;
83 MCFOLD
int getMaxUses()
const;
86 MCFOLD ::RecipeNetId
const& getNetId()
const;
89 MCFOLD ::ItemInstance
const& getSellItem()
const;
91 MCFOLD
int getTier()
const;
93 MCFOLD uint getTraderExp()
const;
95 MCFOLD
int getUses()
const;
97 MCAPI
bool hasSecondaryBuyItem()
const;
99 MCAPI
void increaseMaxUses(
int amount);
101 MCAPI
void increaseUses(
int count);
105 MCAPI
bool isOutOfUses()
const;
107 MCAPI
bool isSame(::MerchantRecipe
const& lhs)
const;
109 MCAPI
void legacyCalculateDemandPrices(
int lowTierDiscount,
int highTierDiscount);
113 MCAPI
void setDemand(
int demand);
115 MCAPI
void setMaxUses(
int maxUses);
117 MCAPI
void setPriceMultiplierA(
float priceMultiplier);
119 MCAPI
void setPriceMultiplierB(
float priceMultiplier);
121 MCAPI
void setRewardExp(
bool rewardExp);
123 MCFOLD
void setTier(
int tier);
125 MCAPI
void setTraderExp(uint traderExp);
127 MCAPI
void setUses(
int uses);
129 MCFOLD
bool shouldRewardExp()
const;
131 MCAPI ~MerchantRecipe();
Definition SaveContext.h:5