1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-01 11:11:31 +00:00
openmw/apps
Léo Peltier 5c4e1252e9 Handle AutoCalc flag when getting spell cost
Fixes #5483

This only applies to "base game" spells.
When adding an AutoCalc spell with TES:CS its cost is computed and
stored inside game files. This stored cost was being used by OpenMW and
the actual cost was never recomputed at runtime whereas Morrowind.exe
discards the stored cost.
While this worked fine in vanilla, mods can update AutoCalc spell
effects without ever updating the stored cost.

The formula was mostly there already but there was a few differences,
namely a 1 second offset in duration.
2021-06-20 13:42:28 +02:00
..
benchmarks Support benchmarks for windows 2021-05-11 13:16:59 +02:00
bsatool Add file to BSA 2021-04-08 18:08:28 +02:00
esmtool Remove some useless variables from esmtool 2021-06-02 19:04:46 +02:00
essimporter Fix various warnings found by clang 2021-04-17 19:06:33 +02:00
launcher Preventing type conversion of double to float for objectPagingMinSize 2021-05-29 16:27:23 -05:00
mwiniimporter Fix MSVC's C4267 warnings 2021-05-12 10:34:39 +04:00
niftest Fixing performance-faster-string-find issues 2021-05-10 22:44:07 -05:00
opencs Update IRC links to libera 2021-05-31 21:15:26 +01:00
openmw Handle AutoCalc flag when getting spell cost 2021-06-20 13:42:28 +02:00
openmw_test_suite Add more tests for TileCachedRecastMeshManager 2021-05-27 20:18:52 +02:00
wizard Remove some useless includes from the wizzard 2021-04-21 19:08:06 +02:00
doc.hpp