It seems the change will not be neccessary due to the ever suprising structure of dol:
spell.cs, ctor(DBSpell)
- Code: Select all
m_frequency = dbspell.Frequency * 100;
It seems your frequency in the db should just be the percentage chance, and that the division by 100 is to remove this suprising act from the spell constructor.
- Code: Select all
333 m_duration = dbspell.Duration * 1000;
334 m_frequency = dbspell.Frequency * 100;
335 m_pulse = dbspell.Pulse;
336 m_pulse_power = dbspell.PulsePower;
337 m_power = dbspell.Power;
338 m_casttime = (int)(dbspell.CastTime * 1000);
339 m_recastdelay = dbspell.RecastDelay * 1000;
Can't say I like that, maybe we need to annotate the spell.cs properties to more openly reflect that they are not the values of the database entries equivalent records.
The Marvelous Contraption begins to stir...