mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 05:10:26 +00:00
Merge branch 'master' into quickkeys
This commit is contained in:
commit
31cc1e0f66
6 changed files with 14 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
||||||
------
|
------
|
||||||
|
|
||||||
Bug #5367: Selecting a spell on an enchanted item per hotkey always plays the equip sound
|
Bug #5367: Selecting a spell on an enchanted item per hotkey always plays the equip sound
|
||||||
|
Bug #5369: Spawnpoint in the Grazelands doesn't produce oversized creatures
|
||||||
|
|
||||||
0.46.0
|
0.46.0
|
||||||
------
|
------
|
||||||
|
|
|
@ -125,6 +125,7 @@ namespace MWClass
|
||||||
const MWWorld::ESMStore& store = MWBase::Environment::get().getWorld()->getStore();
|
const MWWorld::ESMStore& store = MWBase::Environment::get().getWorld()->getStore();
|
||||||
MWWorld::ManualRef manualRef(store, id);
|
MWWorld::ManualRef manualRef(store, id);
|
||||||
manualRef.getPtr().getCellRef().setPosition(ptr.getCellRef().getPosition());
|
manualRef.getPtr().getCellRef().setPosition(ptr.getCellRef().getPosition());
|
||||||
|
manualRef.getPtr().getCellRef().setScale(ptr.getCellRef().getScale());
|
||||||
MWWorld::Ptr placed = MWBase::Environment::get().getWorld()->placeObject(manualRef.getPtr(), ptr.getCell() , ptr.getCellRef().getPosition());
|
MWWorld::Ptr placed = MWBase::Environment::get().getWorld()->placeObject(manualRef.getPtr(), ptr.getCell() , ptr.getCellRef().getPosition());
|
||||||
customData.mSpawnActorId = placed.getClass().getCreatureStats(placed).getActorId();
|
customData.mSpawnActorId = placed.getClass().getCreatureStats(placed).getActorId();
|
||||||
customData.mSpawn = false;
|
customData.mSpawn = false;
|
||||||
|
|
|
@ -43,6 +43,8 @@ namespace MWMechanics
|
||||||
x *= pickQuality * mFatigueTerm;
|
x *= pickQuality * mFatigueTerm;
|
||||||
x += fPickLockMult * lockStrength;
|
x += fPickLockMult * lockStrength;
|
||||||
|
|
||||||
|
MWBase::Environment::get().getMechanicsManager()->unlockAttempted(mActor, lock);
|
||||||
|
|
||||||
resultSound = "Open Lock Fail";
|
resultSound = "Open Lock Fail";
|
||||||
if (x <= 0)
|
if (x <= 0)
|
||||||
resultMessage = "#{sLockImpossible}";
|
resultMessage = "#{sLockImpossible}";
|
||||||
|
@ -59,7 +61,6 @@ namespace MWMechanics
|
||||||
resultMessage = "#{sLockFail}";
|
resultMessage = "#{sLockFail}";
|
||||||
}
|
}
|
||||||
|
|
||||||
MWBase::Environment::get().getMechanicsManager()->unlockAttempted(mActor, lock);
|
|
||||||
int uses = lockpick.getClass().getItemHealth(lockpick);
|
int uses = lockpick.getClass().getItemHealth(lockpick);
|
||||||
--uses;
|
--uses;
|
||||||
lockpick.getCellRef().setCharge(uses);
|
lockpick.getCellRef().setCharge(uses);
|
||||||
|
@ -84,6 +85,8 @@ namespace MWMechanics
|
||||||
x += fTrapCostMult * trapSpellPoints;
|
x += fTrapCostMult * trapSpellPoints;
|
||||||
x *= probeQuality * mFatigueTerm;
|
x *= probeQuality * mFatigueTerm;
|
||||||
|
|
||||||
|
MWBase::Environment::get().getMechanicsManager()->unlockAttempted(mActor, trap);
|
||||||
|
|
||||||
resultSound = "Disarm Trap Fail";
|
resultSound = "Disarm Trap Fail";
|
||||||
if (x <= 0)
|
if (x <= 0)
|
||||||
resultMessage = "#{sTrapImpossible}";
|
resultMessage = "#{sTrapImpossible}";
|
||||||
|
@ -101,7 +104,6 @@ namespace MWMechanics
|
||||||
resultMessage = "#{sTrapFail}";
|
resultMessage = "#{sTrapFail}";
|
||||||
}
|
}
|
||||||
|
|
||||||
MWBase::Environment::get().getMechanicsManager()->unlockAttempted(mActor, trap);
|
|
||||||
int uses = probe.getClass().getItemHealth(probe);
|
int uses = probe.getClass().getItemHealth(probe);
|
||||||
--uses;
|
--uses;
|
||||||
probe.getCellRef().setCharge(uses);
|
probe.getCellRef().setCharge(uses);
|
||||||
|
|
|
@ -709,6 +709,11 @@ namespace MWMechanics
|
||||||
}
|
}
|
||||||
else if (effectId == ESM::MagicEffect::Open)
|
else if (effectId == ESM::MagicEffect::Open)
|
||||||
{
|
{
|
||||||
|
if (!caster.isEmpty())
|
||||||
|
{
|
||||||
|
MWBase::Environment::get().getMechanicsManager()->unlockAttempted(getPlayer(), target);
|
||||||
|
// Use the player instead of the caster for vanilla crime compatibility
|
||||||
|
}
|
||||||
const MWWorld::ESMStore& store = MWBase::Environment::get().getWorld()->getStore();
|
const MWWorld::ESMStore& store = MWBase::Environment::get().getWorld()->getStore();
|
||||||
const ESM::MagicEffect *magiceffect = store.get<ESM::MagicEffect>().find(effectId);
|
const ESM::MagicEffect *magiceffect = store.get<ESM::MagicEffect>().find(effectId);
|
||||||
MWRender::Animation* animation = MWBase::Environment::get().getWorld()->getAnimation(target);
|
MWRender::Animation* animation = MWBase::Environment::get().getWorld()->getAnimation(target);
|
||||||
|
@ -726,11 +731,10 @@ namespace MWMechanics
|
||||||
target.getCellRef().unlock();
|
target.getCellRef().unlock();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
MWBase::Environment::get().getSoundManager()->playSound3D(target, "Open Lock Fail", 1.f, 1.f);
|
MWBase::Environment::get().getSoundManager()->playSound3D(target, "Open Lock Fail", 1.f, 1.f);
|
||||||
|
}
|
||||||
|
|
||||||
if (!caster.isEmpty())
|
|
||||||
MWBase::Environment::get().getMechanicsManager()->unlockAttempted(getPlayer(), target);
|
|
||||||
// Use the player instead of the caster for vanilla crime compatibility
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -215,7 +215,6 @@ private:
|
||||||
float mMinSize;
|
float mMinSize;
|
||||||
|
|
||||||
osg::ref_ptr<RootNode> mRootNode;
|
osg::ref_ptr<RootNode> mRootNode;
|
||||||
osg::ref_ptr<LodCallback> mLodCallback;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
QuadTreeWorld::QuadTreeWorld(osg::Group *parent, osg::Group *compileRoot, Resource::ResourceSystem *resourceSystem, Storage *storage, int compMapResolution, float compMapLevel, float lodFactor, int vertexLodMod, float maxCompGeometrySize)
|
QuadTreeWorld::QuadTreeWorld(osg::Group *parent, osg::Group *compileRoot, Resource::ResourceSystem *resourceSystem, Storage *storage, int compMapResolution, float compMapLevel, float lodFactor, int vertexLodMod, float maxCompGeometrySize)
|
||||||
|
|
|
@ -53,7 +53,7 @@ master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'OpenMW'
|
project = u'OpenMW'
|
||||||
copyright = u'2017, OpenMW Team'
|
copyright = u'2020, OpenMW Team'
|
||||||
|
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
|
|
Loading…
Reference in a new issue