forked from github/server
remove enum constants for curses that are no longer referred to by them (deprecated style).
This commit is contained in:
parent
cc3c5580d4
commit
d7f4fbe05d
3 changed files with 1 additions and 22 deletions
|
@ -742,13 +742,7 @@ static const char *oldnames[MAXCURSE] = {
|
||||||
"speed",
|
"speed",
|
||||||
"orcish",
|
"orcish",
|
||||||
"magicboost",
|
"magicboost",
|
||||||
"insectfur",
|
"insectfur"
|
||||||
"strength",
|
|
||||||
"worse",
|
|
||||||
"magicresistance",
|
|
||||||
"itemcloak",
|
|
||||||
"sparkle",
|
|
||||||
"skillmod"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *oldcursename(int id)
|
const char *oldcursename(int id)
|
||||||
|
|
|
@ -98,7 +98,6 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
/* struct's vom typ curse: */
|
|
||||||
C_FOGTRAP,
|
C_FOGTRAP,
|
||||||
C_ANTIMAGICZONE,
|
C_ANTIMAGICZONE,
|
||||||
C_FARVISION,
|
C_FARVISION,
|
||||||
|
@ -128,18 +127,10 @@ extern "C" {
|
||||||
C_RIOT, /*region in Aufruhr */
|
C_RIOT, /*region in Aufruhr */
|
||||||
C_NOCOST,
|
C_NOCOST,
|
||||||
C_CURSED_BY_THE_GODS,
|
C_CURSED_BY_THE_GODS,
|
||||||
/* struct's vom untertyp curse_unit: */
|
|
||||||
C_SPEED, /* Beschleunigt */
|
C_SPEED, /* Beschleunigt */
|
||||||
C_ORC,
|
C_ORC,
|
||||||
C_MBOOST,
|
C_MBOOST,
|
||||||
C_KAELTESCHUTZ,
|
C_KAELTESCHUTZ,
|
||||||
C_STRENGTH,
|
|
||||||
C_ALLSKILLS,
|
|
||||||
C_MAGICRESISTANCE, /* 44 - verändert Magieresistenz */
|
|
||||||
C_ITEMCLOAK,
|
|
||||||
C_SPARKLE,
|
|
||||||
/* struct's vom untertyp curse_skill: */
|
|
||||||
C_SKILL,
|
|
||||||
MAXCURSE /* OBS: when removing curses, remember to update read_ccompat() */
|
MAXCURSE /* OBS: when removing curses, remember to update read_ccompat() */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5011,12 +5011,6 @@ int sp_resist_magic_bonus(castorder * co)
|
||||||
|
|
||||||
u = pa->param[n]->data.u;
|
u = pa->param[n]->data.u;
|
||||||
|
|
||||||
/* Ist die Einheit schon verzaubert, wirkt sich dies nur auf die
|
|
||||||
* Menge der Verzauberten Personen aus.
|
|
||||||
if (is_cursed(u->attribs, C_MAGICRESISTANCE, 0))
|
|
||||||
continue;
|
|
||||||
*/
|
|
||||||
|
|
||||||
m = _min(u->number, victims);
|
m = _min(u->number, victims);
|
||||||
victims -= m;
|
victims -= m;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue