When an attack spins someone around:
- break their grabs - actually spin them around when the play can't see it
This commit is contained in:
parent
9456fba0f7
commit
8aef3bf1eb
5
attack.c
5
attack.c
|
@ -2395,16 +2395,17 @@ void criticalhit(lifeform_t *lf, lifeform_t *victim, enum BODYPART hitpos, objec
|
||||||
if (cansee(player, lf) || cansee(player, victim)) {
|
if (cansee(player, lf) || cansee(player, victim)) {
|
||||||
getlfname(lf, lfname);
|
getlfname(lf, lfname);
|
||||||
getlfname(victim, victimname);
|
getlfname(victim, victimname);
|
||||||
setfacing(victim, getrandomdirexcept(DT_COMPASS, victim->facing));
|
|
||||||
msg("%s%s blow spins %s around!", lfname, getpossessive(lfname),victimname);
|
msg("%s%s blow spins %s around!", lfname, getpossessive(lfname),victimname);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (isplayer(victim) || cansee(player, victim)) {
|
if (isplayer(victim) || cansee(player, victim)) {
|
||||||
getlfname(victim, victimname);
|
getlfname(victim, victimname);
|
||||||
setfacing(victim, getrandomdirexcept(DT_COMPASS, victim->facing));
|
|
||||||
msg("%s is spun around!", victimname);
|
msg("%s is spun around!", victimname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// actually spin them
|
||||||
|
setfacing(victim, getrandomdirexcept(DT_COMPASS, victim->facing));
|
||||||
|
breakgrabs(victim, B_TRUE, B_TRUE, B_TRUE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
data.c
2
data.c
|
@ -5272,7 +5272,7 @@ void initobjects(void) {
|
||||||
addflag(lastot->flags, F_MAXPOWER, 3, NA, NA, NULL);
|
addflag(lastot->flags, F_MAXPOWER, 3, NA, NA, NULL);
|
||||||
addflag(lastot->flags, F_TARGETTEDSPELL, TT_NONE, NA, NA, NULL);
|
addflag(lastot->flags, F_TARGETTEDSPELL, TT_NONE, NA, NA, NULL);
|
||||||
addflag(lastot->flags, F_LOSLOF, B_TRUE, LOF_DONTNEED, NA, NULL);
|
addflag(lastot->flags, F_LOSLOF, B_TRUE, LOF_DONTNEED, NA, NULL);
|
||||||
addot(OT_S_LETHARGY, "lethargy", "Reduces the target's stamina by ^bpower^n*2.", MT_NOTHING, 0, OC_SPELL, SZ_TINY);
|
addot(OT_S_LETHARGY, "lethargy", "Reduces the target's stamina by ^bpower^n.", MT_NOTHING, 0, OC_SPELL, SZ_TINY);
|
||||||
addflag(lastot->flags, F_SPELLSCHOOL, SS_MENTAL, NA, NA, NULL);
|
addflag(lastot->flags, F_SPELLSCHOOL, SS_MENTAL, NA, NA, NULL);
|
||||||
addflag(lastot->flags, F_SPELLSCHOOL, SS_DEATH, NA, NA, NULL);
|
addflag(lastot->flags, F_SPELLSCHOOL, SS_DEATH, NA, NA, NULL);
|
||||||
addflag(lastot->flags, F_SPELLLEVEL, 1, NA, NA, NULL);
|
addflag(lastot->flags, F_SPELLLEVEL, 1, NA, NA, NULL);
|
||||||
|
|
Loading…
Reference in New Issue