Half_physical_damage 08
missed a spot
This commit is contained in:
+5
-1
@@ -1597,6 +1597,7 @@ gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */
|
|||||||
int tim_tmp;
|
int tim_tmp;
|
||||||
register struct obj *otmp2;
|
register struct obj *otmp2;
|
||||||
int i;
|
int i;
|
||||||
|
boolean physical_damage = FALSE;
|
||||||
|
|
||||||
if (!u.uswallow) { /* swallows you */
|
if (!u.uswallow) { /* swallows you */
|
||||||
if (youmonst.data->msize >= MZ_HUGE) return(0);
|
if (youmonst.data->msize >= MZ_HUGE) return(0);
|
||||||
@@ -1666,6 +1667,7 @@ gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */
|
|||||||
switch(mattk->adtyp) {
|
switch(mattk->adtyp) {
|
||||||
|
|
||||||
case AD_DGST:
|
case AD_DGST:
|
||||||
|
physical_damage = TRUE;
|
||||||
if (Slow_digestion) {
|
if (Slow_digestion) {
|
||||||
/* Messages are handled below */
|
/* Messages are handled below */
|
||||||
u.uswldtim = 0;
|
u.uswldtim = 0;
|
||||||
@@ -1682,6 +1684,7 @@ gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case AD_PHYS:
|
case AD_PHYS:
|
||||||
|
physical_damage = TRUE;
|
||||||
if (mtmp->data == &mons[PM_FOG_CLOUD]) {
|
if (mtmp->data == &mons[PM_FOG_CLOUD]) {
|
||||||
You("are laden with moisture and %s",
|
You("are laden with moisture and %s",
|
||||||
flaming(youmonst.data) ? "are smoldering out!" :
|
flaming(youmonst.data) ? "are smoldering out!" :
|
||||||
@@ -1754,11 +1757,12 @@ gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */
|
|||||||
if (!diseasemu(mtmp->data)) tmp = 0;
|
if (!diseasemu(mtmp->data)) tmp = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
physical_damage = TRUE;
|
||||||
tmp = 0;
|
tmp = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Half_physical_damage) tmp = (tmp+1) / 2;
|
if (physical_damage) tmp = Maybe_Half_Phys(tmp);
|
||||||
|
|
||||||
mdamageu(mtmp, tmp);
|
mdamageu(mtmp, tmp);
|
||||||
if (tmp) stop_occupation();
|
if (tmp) stop_occupation();
|
||||||
|
|||||||
Reference in New Issue
Block a user