|
|
@ -102,10 +102,7 @@ namespace MWMechanics
|
|
|
|
void Enchanting::nextCastStyle()
|
|
|
|
void Enchanting::nextCastStyle()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (itemEmpty())
|
|
|
|
if (itemEmpty())
|
|
|
|
{
|
|
|
|
|
|
|
|
mCastStyle = ESM::Enchantment::WhenUsed;
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const bool powerfulSoul = getGemCharge() >= \
|
|
|
|
const bool powerfulSoul = getGemCharge() >= \
|
|
|
|
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find ("iSoulAmountForConstantEffect")->mValue.getInteger();
|
|
|
|
MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find ("iSoulAmountForConstantEffect")->mValue.getInteger();
|
|
|
@ -267,6 +264,8 @@ namespace MWMechanics
|
|
|
|
void Enchanting::setEnchanter(const MWWorld::Ptr& enchanter)
|
|
|
|
void Enchanting::setEnchanter(const MWWorld::Ptr& enchanter)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mEnchanter = enchanter;
|
|
|
|
mEnchanter = enchanter;
|
|
|
|
|
|
|
|
// Reset cast style
|
|
|
|
|
|
|
|
mCastStyle = ESM::Enchantment::CastOnce;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int Enchanting::getEnchantChance() const
|
|
|
|
int Enchanting::getEnchantChance() const
|
|
|
|