dewral
Veteran OT User
- Joined
- Dec 4, 2019
- Messages
- 345
- Solutions
- 10
- Reaction score
- 371
Hello i wanted to change the price that is showing on house doors.
This part from house.cpp it's responsible for showing the price.
I'm wondering how to make it to read the correct value of scarab coins
1 scarab coin = 100000 Gold coins
This part from house.cpp it's responsible for showing the price.
I'm wondering how to make it to read the correct value of scarab coins
1 scarab coin = 100000 Gold coins
C++:
void House::updateDoorDescription() const
{
const int32_t housePrice = g_config.getNumber(ConfigManager::HOUSE_PRICE);
for (const auto& it : doorSet) {
it->setSpecialDescription(fmt::format("It belongs to house '{:s}'. {:s} owns this house.{:s}", houseName, (owner != 0) ? ownerName : "Nobody", g_config.getBoolean(ConfigManager::HOUSE_DOOR_SHOW_PRICE) && (housePrice != -1) && (owner == 0) ? fmt::format(" It costs {:d} gold coins.", (houseTiles.size() * housePrice)) : ""));
}
}