- more stat constants

This commit is contained in:
Christoph Oelckers 2020-09-23 19:24:01 +02:00
parent 67985b7819
commit daabb31bff
3 changed files with 11 additions and 11 deletions

View file

@ -1723,7 +1723,7 @@ void checkhitsprite_r(int i, int sn)
case RRTILE8166:
case RRTILE8167:
case RRTILE8168:
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
sprite[i].picnum = RRTILE5063;
S_PlayActorSound(GLASS_HEAVYBREAK, i);
break;
@ -1734,7 +1734,7 @@ void checkhitsprite_r(int i, int sn)
case RRTILE8593:
case RRTILE8594:
case RRTILE8595:
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
sprite[i].picnum = RRTILE8588;
S_PlayActorSound(GLASS_HEAVYBREAK, i);
break;

View file

@ -575,7 +575,7 @@ int initreactor(int j, int i, bool isrecon)
if (sp->lotag > ud.player_skill)
{
sp->xrepeat = sp->yrepeat = 0;
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
return true;
}
if (!isRR() || actorflag(i, SFLAG_KILLCOUNT)) // Duke is just like Doom - Bad guys always count as kill.
@ -584,7 +584,7 @@ int initreactor(int j, int i, bool isrecon)
if (ud.monsters_off == 1)
{
sp->xrepeat = sp->yrepeat = 0;
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
return false;
}
sp->extra = 130;
@ -597,7 +597,7 @@ int initreactor(int j, int i, bool isrecon)
if (ud.multimode < 2 && sp->pal != 0)
{
sp->xrepeat = sp->yrepeat = 0;
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
return false;
}
sp->pal = 0;

View file

@ -92,7 +92,7 @@ int spawn_d(int j, int pn)
if ((sp->lotag > ud.player_skill) || ud.monsters_off)
{
sp->xrepeat = sp->yrepeat = 0;
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
break;
}
else
@ -112,7 +112,7 @@ int spawn_d(int j, int pn)
return i;
case FIREFLYFLYINGEFFECT:
sp->owner = j;
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
sp->xrepeat = 16;
sp->yrepeat = 16;
return i;
@ -120,14 +120,14 @@ int spawn_d(int j, int pn)
if (sprite[j].xrepeat < 30)
return i;
sp->owner = j;
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
sp->x += krand() % 512 - 256;
sp->y += krand() % 512 - 256;
sp->xrepeat = 16;
sp->yrepeat = 16;
return i;
case WHISPYSMOKE:
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
sp->x += krand() % 256 - 128;
sp->y += krand() % 256 - 128;
sp->xrepeat = 20;
@ -714,7 +714,7 @@ int spawn_d(int j, int pn)
if (sp->pal && ud.multimode > 1)
{
sp->xrepeat = sp->yrepeat = 0;
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
break;
}
}
@ -724,7 +724,7 @@ int spawn_d(int j, int pn)
|| (sp->pal == 3 && (ud.multimode == 1 || (ud.multimode > 1 && ud.coop == 1)))) // Dukematch Only
{
sp->xrepeat = sp->yrepeat = 0;
changespritestat(i, 5);
changespritestat(i, STAT_MISC);
break;
}
}