[Spells] Major update to cast restriction code and new spell field 'caster_requirement_id' (field220) implemented (#1508)

* Implemented spells_new table 'field220' as 'caster_requirement_id'

Implemented spells_new table 'field220' as 'caster_requirement_id'

* Update spell_effects.cpp

* updates to CastRestriction

enum using live description
updated entire function
missing and new types added
many fixes

* updates

* code fixes

* updates

* updates

* Update spdat.h

* typo fix
This commit is contained in:
KayenEQ
2021-08-31 01:41:20 -04:00
committed by GitHub
parent 5f3c054044
commit cb3f8daedd
7 changed files with 1242 additions and 292 deletions
+1
View File
@@ -1883,6 +1883,7 @@ void SharedDatabase::LoadSpells(void *data, int max_spells) {
sp[tempid].override_crit_chance = atoi(row[217]);
sp[tempid].aemaxtargets = atoi(row[218]);
sp[tempid].no_heal_damage_item_mod = atoi(row[219]);
sp[tempid].caster_requirement_id = atoi(row[220]);
sp[tempid].spell_class = atoi(row[221]);
sp[tempid].spell_subclass = atoi(row[222]);
sp[tempid].persistdeath = atoi(row[224]) != 0;