forked from mirror/openmw-tes3mp
Merge pull request #1671
This commit is contained in:
commit
35300c04cd
2 changed files with 9 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
||||||
#include <MyGUI_ScrollView.h>
|
#include <MyGUI_ScrollView.h>
|
||||||
#include <MyGUI_Gui.h>
|
#include <MyGUI_Gui.h>
|
||||||
|
|
||||||
|
#include <components/settings/settings.hpp>
|
||||||
|
|
||||||
#include "../mwbase/environment.hpp"
|
#include "../mwbase/environment.hpp"
|
||||||
#include "../mwbase/world.hpp"
|
#include "../mwbase/world.hpp"
|
||||||
#include "../mwbase/windowmanager.hpp"
|
#include "../mwbase/windowmanager.hpp"
|
||||||
|
@ -72,7 +74,10 @@ namespace MWGui
|
||||||
MWWorld::ActionTeleport::getFollowersToTeleport(player, followers);
|
MWWorld::ActionTeleport::getFollowersToTeleport(player, followers);
|
||||||
|
|
||||||
// Apply followers cost, in vanilla one follower travels for free
|
// Apply followers cost, in vanilla one follower travels for free
|
||||||
price *= std::max(1, static_cast<int>(followers.size()));
|
if (Settings::Manager::getBool("charge for every follower travelling", "Game"))
|
||||||
|
price *= 1 + static_cast<int>(followers.size());
|
||||||
|
else
|
||||||
|
price *= std::max(1, static_cast<int>(followers.size()));
|
||||||
|
|
||||||
MyGUI::Button* toAdd = mDestinationsView->createWidget<MyGUI::Button>("SandTextButton", 0, mCurrentY, 200, sLineHeight, MyGUI::Align::Default);
|
MyGUI::Button* toAdd = mDestinationsView->createWidget<MyGUI::Button>("SandTextButton", 0, mCurrentY, 200, sLineHeight, MyGUI::Align::Default);
|
||||||
toAdd->setEnabled(price <= playerGold);
|
toAdd->setEnabled(price <= playerGold);
|
||||||
|
|
|
@ -182,6 +182,9 @@ classic reflect absorb attribute behavior = true
|
||||||
# Show duration of magic effect and lights in the spells window.
|
# Show duration of magic effect and lights in the spells window.
|
||||||
show effect duration = false
|
show effect duration = false
|
||||||
|
|
||||||
|
# Account for the first follower in fast travel cost calculations.
|
||||||
|
charge for every follower travelling = false
|
||||||
|
|
||||||
# Prevents merchants from equipping items that are sold to them.
|
# Prevents merchants from equipping items that are sold to them.
|
||||||
prevent merchant equipping = false
|
prevent merchant equipping = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue