and secondary spell type. Move definite articles in spell type synonyms in front of the adjective when one is used.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7862 c06c8d41-db1a-0410-9941-cceddc491573
2I5XEYRJKLUS7MO42MCR6KT2URGFQ3YDKTNTIBNKVKLX5LMG6CEQC CVHCJOX3EXLCTTCPJG3ZYHOOHTSEIGZ2UCBY7PQMJ7XPKONSO24QC PR2XIEELO6UJWT3EXDHWCJZGIZCCF3D6KF6LC67R6RWWAVNWEHWAC DDU4A3JGN5IUIPP5IASOODKPR2WBHSDSV4FITZ6HNXNSXXQACWAQC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC VCG3BRIYRTNNWYC3LOXD6KFGXOX37HAFW2HNV7WXVG2V7EUHLDZQC CEZMQA2KOTLG7IO5QBVAM2OALIZJ45CFLNLCG3OQA6IX6URDCCYAC UC6V7JDZ6CKQNL5AARWFJ4ZPX4ZYCO5J3FW52I52I3PBJO6T6VEAC QO5ZJWQ3JK3PEGBPTQSAYIPEJEHG2M2KTD74227G5VG7DVXUL3BQC NAC6PRRR6SLQHJ7JBBBAJNKSWZVZ4NFKVHCZEN7M5HASDLT4IPOAC EJKHYV2Z6UPRVYUAL4WRW33GBNHYBFPMPA57HMBX2LQKXHIUO5VQC 72C653RXKYKXTBUJ772X27CLECPV5GZIISRLA5PX4LFLJKA3SXYQC ULVHWK4LIJ6J37APMHJLHUS7GXUPOX65TXZW7PIQ4EGIXN4XN7TAC DTEJ6CGE3ZGHXIEG6TWX7ZG3R4BD6BFZMRDSKAV5CJALTLN7HGCQC // If a spell matches the second type but not the first,// we need the second in the title.if (!spell_typematch( chosen_spells[i], d1 )&& spell_typematch( chosen_spells[i], d2))
// If a spell matches neither the first nor the second type// (that may be the same) remove it.if (!spell_typematch(chosen_spells[i], d1)&& !spell_typematch(chosen_spells[i], d2)){chosen_spells[i] = SPELL_NO_SPELL;if (replace == -1)replace = i;}else if (replace != -1)
else if (max2 == max1 || count[k] > count[max2])max2 = k;
else{if (count[k] == count[max1])num1++;if (max2 == max1 || count[k] > count[max2]){max2 = k;if (count[k] == count[max1])num2 = num1;elsenum2 = 1;}else if (count[k] == count[max2])num2++;}
// If there are several "secondary" disciplines with the same count// ignore all of them. Same, if the secondary discipline appears only once.if (num2 > 1 && num1 > num2 || count[max2] < 2)max2 = max1;// Remove spells that don't fit either discipline._remove_nondiscipline_spells(chosen_spells, 1 << max1, 1 << max2);// Finally fill the spell vector.for (int i = 0; i < SPELLBOOK_SIZE; i++)spell_vec[i] = (long) chosen_spells[i];