scrawl
d05603c7fe
Directly apply On Target 'When Strikes' enchantments instead of launching a projectile ( Fixes #3212 )
9 years ago
scrawl
c4d38bb42d
Fix clang analyzer warnings
9 years ago
scrawl
832eaae27b
Do not apply effects with CasterLinked flag when there is no valid caster
9 years ago
scrawl
4e6a60672d
When a spell explodes on an actor do not apply it to that actor twice ( Fixes #3142 )
9 years ago
scrawl
689dea4cb3
Add instant spell effects to the actor's magic effect list
...
Via http://forum.openmw.org/viewtopic.php?f=2&t=3212&start=20#p36208
9 years ago
scrawl
34f48d63f3
Apply spell absorption once per effect ( Fixes #2942 )
9 years ago
scrawl
783594033a
Optimize MWMechanics::Spells
...
Use pointers as map keys instead of string IDs. Resolves a nasty performance bottleneck on functions like hasCommonDisease() that previously had to look up all contained spells from the ESM store on every call. hasCommonDisease() is called hundreds of times per frame by the AI target update since it's used to calculate target disposition.
The total cost of hasCommonDisease() was 2.7% of the frame loop, now it's negligible.
9 years ago
scrawl
7b6fe149f2
getSpellSuccessChance return 0 for used powers ( Fixes #2944 )
9 years ago
Marc Zinnschlag
a52b947efe
Merge remote-tracking branch 'dteviot/MagicEffectsRefactorDraft3'
10 years ago
dteviot
5dd0ad6841
Fixed rest of travis errors.
10 years ago
dteviot
77a1d947cc
extracted MWMechanics::getPlayer()
10 years ago
dteviot
85bc41dedb
replaced FLT_MAX with numeric_limits.
10 years ago
dteviot
0ee7407101
extracted common sub-expressions.
10 years ago
scrawl
d76fb2d266
Apply disintegrate only to weapons and armor ( Fixes #2853 )
10 years ago
scrawl
1e18a73b1c
Don't play magic effect sounds & visual effects for unsuitable targets ( Fixes #2811 )
10 years ago
scrawl
211deeb63e
Don't attempt to lock or unlock unsuitable objects ( Fixes #2826 )
10 years ago
scrawl
278a078e9d
Unify magic effect tick functions
...
- Removes duplicated code
- Handle some zero-duration instant effects that were not handled before (disintegrate, sun damage, elemental damage)
10 years ago
scrawl
974fda5bde
Merge branch 'master' of https://github.com/OpenMW/openmw into osg
...
Conflicts:
extern/sdl4ogre/sdlwindowhelper.cpp
10 years ago
scrawl
de8e5f0db1
Restore projectiles
10 years ago
scrawl
fd50be0fb8
Restore various gameplay
10 years ago
scrawl
d1b6289cad
Don't teleport followers when using teleportation spells
10 years ago
scrawl
8c810e3620
Move rng to components
10 years ago
scrawl
c92592493e
OpenMW: create a window and render the starting cell(s)
10 years ago
scrawl
4e69e7cc0f
OpenMW compiles and runs w/o render window
10 years ago
dteviot
3f28634d1f
consolidate random number logic
...
Note, I suspect Rng::rollClosedProbability() is not needed. The only difference between it and rollProbability() is that one time in 37k (on Windows), it will give an output of 1.0.
On some versions of Linux, the value of 1.0 will occur about 1 time in 4 billion.
10 years ago
scrawl
3879ce6ac1
Get rid of "player" string checks ( Fixes #2216 )
10 years ago
dteviot
ca8c8c6aa4
fixing MSVC 2013 warning C4244: & C4305
...
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
10 years ago
dteviot
45b6538820
fixed MSVC 2013 warning C4800
...
forcing value to bool 'true' or 'false'
10 years ago
scrawl
a653716e2c
Fix for damage/restore effects using the instant apply path when they have a duration
10 years ago
scrawl
f82751422d
Fix constant effect restore enchantments being applied incorrectly ( Fixes #2408 )
10 years ago
scrawl
77bb77b367
Fix for instant restore effects ( Fixes #2392 )
10 years ago
dteviot
8d7de7d1ec
Telekinesis allows safe opening of traps ( Fixes #1916 )
...
When trap activated at beyond normal activation distance, assume telekinesis used and detonate trap at trapped object's location.
Also some minor code refactoring of spellcasting.
1. Corrected parameter passed to explodeSpell().
2. For loop now correctly does an early exit.
3. Removed duplicated tests.
10 years ago
scrawl
378e91545d
Fix Tribunal/BM summon effects not working
10 years ago
Marc Zinnschlag
38a413a483
Merge remote-tracking branch 'scrawl/master'
10 years ago
scrawl
13c5bd5cc2
Enchanting: fix skill-based cast cost bonus being applied twice
10 years ago
scrawl
992b87ea44
Reset existing summons when the spell is re-casted ( Fixes #2135 )
10 years ago
scrawl
f267497c03
Allow separate summoned creature instances for each spell ID ( Fixes #2194 )
10 years ago
Marc Zinnschlag
31f6ccdf4d
Merge remote-tracking branch 'internecine/bug2031'
10 years ago
Internecine
e1fdcb608e
Fixed incorrect index
10 years ago
Internecine
a7a3ab0c78
Fixed instant negative dynamic stat changes being applied as positive
10 years ago
scrawl
363d1f9207
Merge remote-tracking branch 'upstream/master'
10 years ago
scrawl
de9d347018
Fix on touch area effect spells ( Fixes #2233 )
10 years ago
Internecine
5f9540318a
Fixed incorrect indexes
10 years ago
Internecine
a87fe71ddf
Added a helper function to handle dynamic stat changes
10 years ago
scrawl
f931ba2efc
Fix some static analysis issues (coverity)
10 years ago
Alexander "Ace" Olofsson
462b41a3a8
Missing files, aka; Why you shouldn't stresscommit
10 years ago
Internecine
edc51ab768
Removed debug output
10 years ago
Internecine
6741fbe7a9
Fixes bug #2031
10 years ago
scrawl
8cb09e89ed
Make spells cast by scripts always succeed ( Fixes #1993 )
10 years ago
Marc Zinnschlag
744c56943a
Merge remote-tracking branch 'jordan-ayers/topic/misc-cleanup'
10 years ago