1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 03:35:27 +00:00
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
..
2020-11-29 11:14:07 +04:00
2019-09-02 16:49:29 +02:00
2021-06-06 12:45:42 +02:00
2017-09-24 19:08:13 +02:00
2018-10-09 10:21:12 +04:00
2021-01-09 14:41:10 +04:00
2021-04-30 19:39:26 +02:00
2018-10-09 10:21:12 +04:00
2021-01-09 13:52:01 +04:00
2020-12-25 13:05:41 +01:00
2020-10-18 10:27:35 +04:00
2021-04-11 14:46:51 +02:00
2021-04-11 14:46:51 +02:00
2021-04-16 11:55:40 -07:00
2021-04-16 11:55:40 -07:00
2021-04-11 14:46:51 +02:00
2021-04-11 14:46:51 +02:00