#include <PriceCalculator.h>
|
static int | baseItemIdentifyPrice (float priceMultiplier) |
|
static int | baseItemRepairPrice (int realValue, float priceMultiplier) |
|
static int | baseItemBuyingPrice (int realValue, float priceMultiplier) |
|
static int | baseItemSellingPrice (int realValue, float priceMultiplier) |
|
static int | itemRepairPriceForPlayer (const Character *player, int realValue, float priceMultiplier) |
|
static int | itemIdentificationPriceForPlayer (const Character *player, float priceMultiplier) |
|
static int | itemBuyingPriceForPlayer (const Character *player, int realValue, float priceMultiplier) |
|
static int | itemSellingPriceForPlayer (const Character *player, const ItemGen &item, float priceMultiplier) |
|
static int | templeHealingCostForPlayer (const Character *player, float priceMultiplier) |
|
static int | playerMerchant (const Character *player) |
|
static int | applyMerchantDiscount (const Character *player, int goldAmount) |
|
static int | applyMerchantDiscount (const Character *player, float goldAmount) |
|
static int | skillLearningCostForPlayer (const Character *player, const HouseData &house) |
|
static int | transportCostForPlayer (const Character *player, const HouseData &house) |
|
static int | tavernRoomCostForPlayer (const Character *player, const HouseData &house) |
|
static int | tavernFoodCostForPlayer (const Character *player, const HouseData &house) |
|
static int | trainingCostForPlayer (const Character *player, const HouseData &house) |
|
◆ applyMerchantDiscount() [1/2]
int PriceCalculator::applyMerchantDiscount |
( |
const Character * |
player, |
|
|
float |
goldAmount |
|
) |
| |
|
static |
- Parameters
-
player | Character to calculate discount for. |
goldAmount | Full price before applying the merchant skill. |
- Returns
- Price after applying the merchant skill.
◆ applyMerchantDiscount() [2/2]
int PriceCalculator::applyMerchantDiscount |
( |
const Character * |
player, |
|
|
int |
goldAmount |
|
) |
| |
|
static |
- Parameters
-
player | Character to calculate discount for. |
goldAmount | Full price before applying the merchant skill. |
- Returns
- Price after applying the merchant skill.
◆ baseItemBuyingPrice()
int PriceCalculator::baseItemBuyingPrice |
( |
int |
realValue, |
|
|
float |
priceMultiplier |
|
) |
| |
|
static |
Originally was a method of class Character
.
- Parameters
-
realValue | Item base value. |
priceMultiplier | General shop price multiplier. |
- Returns
- Base item buying price (before applying merchant skill).
- Original binary offset:
- 0x4B8233
◆ baseItemIdentifyPrice()
int PriceCalculator::baseItemIdentifyPrice |
( |
float |
priceMultiplier | ) |
|
|
static |
Originally was a method of class Character
.
- Parameters
-
priceMultiplier | General shop price multiplier. |
- Returns
- Base item identify price (before applying merchant skill).
- Original binary offset:
- 0x4B824B
◆ baseItemRepairPrice()
int PriceCalculator::baseItemRepairPrice |
( |
int |
realValue, |
|
|
float |
priceMultiplier |
|
) |
| |
|
static |
Originally was a method of class Character
.
- Parameters
-
realValue | Item base value. |
priceMultiplier | General shop price multiplier. |
- Returns
- Base item repair price (before applying merchant skill).
- Original binary offset:
- 0x4B8265
◆ baseItemSellingPrice()
int PriceCalculator::baseItemSellingPrice |
( |
int |
realValue, |
|
|
float |
priceMultiplier |
|
) |
| |
|
static |
Originally was a method of class Character
.
- Parameters
-
realValue | Item base value. |
priceMultiplier | General shop price multiplier. |
- Returns
- Base item selling price (before applying merchant skill).
- Original binary offset:
- 0x4B8213
◆ itemBuyingPriceForPlayer()
int PriceCalculator::itemBuyingPriceForPlayer |
( |
const Character * |
player, |
|
|
int |
realValue, |
|
|
float |
priceMultiplier |
|
) |
| |
|
static |
Originally was a method of class Character
.
- Parameters
-
player | Character buying the item. |
realValue | Real item value. |
priceMultiplier | General shop price multiplier. |
- Returns
- Price that player has to pay for buying an item.
- Original binary offset:
- 0x4B8142
◆ itemIdentificationPriceForPlayer()
int PriceCalculator::itemIdentificationPriceForPlayer |
( |
const Character * |
player, |
|
|
float |
priceMultiplier |
|
) |
| |
|
static |
Originally was a method of class Character
.
- Parameters
-
player | Character trying to identify the item. |
priceMultiplier | General shop price multiplier. |
- Returns
- Price that player has to pay for identifying an item.
- Original binary offset:
- 0x4B8179
◆ itemRepairPriceForPlayer()
int PriceCalculator::itemRepairPriceForPlayer |
( |
const Character * |
player, |
|
|
int |
realValue, |
|
|
float |
priceMultiplier |
|
) |
| |
|
static |
Originally was a method of class Character
.
- Parameters
-
player | Character trying to repair item. |
realValue | Item base value. |
priceMultiplier | General shop price multiplier. |
- Returns
- Price that player has to pay for repairing an item.
- Original binary offset:
- 0x4B81C3
◆ itemSellingPriceForPlayer()
int PriceCalculator::itemSellingPriceForPlayer |
( |
const Character * |
player, |
|
|
const ItemGen & |
item, |
|
|
float |
priceMultiplier |
|
) |
| |
|
static |
Originally was a method of class Character
.
- Parameters
-
player | Character selling the item. |
item | Item being sold. |
priceMultiplier | General shop price multiplier. |
- Returns
- Price that player will get for selling an item.
- Original binary offset:
- 0x4B8102
◆ playerMerchant()
int PriceCalculator::playerMerchant |
( |
const Character * |
player | ) |
|
|
static |
Originally was a method of class Character
.
- Parameters
-
- Returns
- Merchant modifier for the character, a number in range (-inf, 100].
- Original binary offset:
- 0x4911F3
◆ skillLearningCostForPlayer()
int PriceCalculator::skillLearningCostForPlayer |
( |
const Character * |
player, |
|
|
const HouseData & |
house |
|
) |
| |
|
static |
- Parameters
-
player | Character to calculate cost for. |
house | House in which player tries to learn skill. |
- Returns
- Skill learning cost for character.
◆ tavernFoodCostForPlayer()
int PriceCalculator::tavernFoodCostForPlayer |
( |
const Character * |
player, |
|
|
const HouseData & |
house |
|
) |
| |
|
static |
- Parameters
-
player | Character to calculate cost for. |
house | Tavern in which player tries to buy food. |
- Returns
- Tavern food cost for character.
◆ tavernRoomCostForPlayer()
int PriceCalculator::tavernRoomCostForPlayer |
( |
const Character * |
player, |
|
|
const HouseData & |
house |
|
) |
| |
|
static |
- Parameters
-
player | Character to calculate cost for. |
house | Tavern in which player tries to buy room. |
- Returns
- Tavern room cost for character.
◆ templeHealingCostForPlayer()
int PriceCalculator::templeHealingCostForPlayer |
( |
const Character * |
player, |
|
|
float |
priceMultiplier |
|
) |
| |
|
static |
Originally was a method of class Character
.
- Parameters
-
player | Character being healed. |
priceMultiplier | General shop price multiplier. |
- Returns
- Price that player has to pay for healing in a temple.
- Original binary offset:
- 0x4B807C
◆ trainingCostForPlayer()
int PriceCalculator::trainingCostForPlayer |
( |
const Character * |
player, |
|
|
const HouseData & |
house |
|
) |
| |
|
static |
- Parameters
-
player | Character to calculate cost for. |
house | Training hall in which player tries to train. |
- Returns
- Training cost for character.
◆ transportCostForPlayer()
int PriceCalculator::transportCostForPlayer |
( |
const Character * |
player, |
|
|
const HouseData & |
house |
|
) |
| |
|
static |
- Parameters
-
player | Character to calculate cost for. |
house | Stable/boat building in which player travels. |
- Returns
- Transport (stable/boat) cost for character.
The documentation for this class was generated from the following files: