C342-46: cleric cast lightning
Get rid of an old known buglist entry C342-46 > Cleric cast lightning doesn't blind as other lightning does
This commit is contained in:
@@ -29,6 +29,7 @@ calculate weight of corpses on special levels correctly
|
|||||||
Sting could trigger premature display of orcs during savegame restore
|
Sting could trigger premature display of orcs during savegame restore
|
||||||
Sting now glows light blue again
|
Sting now glows light blue again
|
||||||
prevent "offering" or other words with similar ending from matching ring quote
|
prevent "offering" or other words with similar ending from matching ring quote
|
||||||
|
make cleric cast lightning blind as other lightning does
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
@@ -2451,6 +2451,7 @@ E void FDECL(destroy_item, (int,int));
|
|||||||
E int FDECL(destroy_mitem, (struct monst *,int,int));
|
E int FDECL(destroy_mitem, (struct monst *,int,int));
|
||||||
E int FDECL(resist, (struct monst *,CHAR_P,int,int));
|
E int FDECL(resist, (struct monst *,CHAR_P,int,int));
|
||||||
E void NDECL(makewish);
|
E void NDECL(makewish);
|
||||||
|
E boolean FDECL(flashburn, (long));
|
||||||
|
|
||||||
#endif /* !MAKEDEFS_C && !LEV_LEX_C */
|
#endif /* !MAKEDEFS_C && !LEV_LEX_C */
|
||||||
|
|
||||||
|
|||||||
@@ -522,6 +522,7 @@ int spellnum;
|
|||||||
if (Half_spell_damage) dmg = (dmg + 1) / 2;
|
if (Half_spell_damage) dmg = (dmg + 1) / 2;
|
||||||
destroy_item(WAND_CLASS, AD_ELEC);
|
destroy_item(WAND_CLASS, AD_ELEC);
|
||||||
destroy_item(RING_CLASS, AD_ELEC);
|
destroy_item(RING_CLASS, AD_ELEC);
|
||||||
|
(void) flashburn((long)rnd(100));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CLC_CURSE_ITEMS:
|
case CLC_CURSE_ITEMS:
|
||||||
|
|||||||
32
src/zap.c
32
src/zap.c
@@ -1920,11 +1920,7 @@ boolean ordinary;
|
|||||||
}
|
}
|
||||||
destroy_item(WAND_CLASS, AD_ELEC);
|
destroy_item(WAND_CLASS, AD_ELEC);
|
||||||
destroy_item(RING_CLASS, AD_ELEC);
|
destroy_item(RING_CLASS, AD_ELEC);
|
||||||
if (!resists_blnd(&youmonst)) {
|
(void) flashburn((long)rnd(100));
|
||||||
You(are_blinded_by_the_flash);
|
|
||||||
make_blinded((long)rnd(100),FALSE);
|
|
||||||
if (!Blind) Your(vision_clears);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SPE_FIREBALL:
|
case SPE_FIREBALL:
|
||||||
@@ -2099,12 +2095,7 @@ boolean ordinary;
|
|||||||
case EXPENSIVE_CAMERA:
|
case EXPENSIVE_CAMERA:
|
||||||
#endif
|
#endif
|
||||||
damage += rnd(25);
|
damage += rnd(25);
|
||||||
if (!resists_blnd(&youmonst)) {
|
if (flashburn((long)damage)) makeknown(obj->otyp);
|
||||||
You(are_blinded_by_the_flash);
|
|
||||||
make_blinded((long)damage, FALSE);
|
|
||||||
makeknown(obj->otyp);
|
|
||||||
if (!Blind) Your(vision_clears);
|
|
||||||
}
|
|
||||||
damage = 0; /* reset */
|
damage = 0; /* reset */
|
||||||
break;
|
break;
|
||||||
case WAN_OPENING:
|
case WAN_OPENING:
|
||||||
@@ -2161,6 +2152,19 @@ boolean ordinary;
|
|||||||
return(damage);
|
return(damage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean
|
||||||
|
flashburn(duration)
|
||||||
|
long duration;
|
||||||
|
{
|
||||||
|
if (!resists_blnd(&youmonst)) {
|
||||||
|
You(are_blinded_by_the_flash);
|
||||||
|
make_blinded(duration, FALSE);
|
||||||
|
if (!Blind) Your(vision_clears);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef STEED
|
#ifdef STEED
|
||||||
/* you've zapped a wand downwards while riding
|
/* you've zapped a wand downwards while riding
|
||||||
* Return TRUE if the steed was hit by the wand.
|
* Return TRUE if the steed was hit by the wand.
|
||||||
@@ -3459,11 +3463,7 @@ register int dx,dy;
|
|||||||
} else {
|
} else {
|
||||||
pline("%s whizzes by you!", The(fltxt));
|
pline("%s whizzes by you!", The(fltxt));
|
||||||
}
|
}
|
||||||
if (abstype == ZT_LIGHTNING && !resists_blnd(&youmonst)) {
|
if (abstype == ZT_LIGHTNING) (void) flashburn((long)d(nd,50));
|
||||||
You(are_blinded_by_the_flash);
|
|
||||||
make_blinded((long)d(nd,50),FALSE);
|
|
||||||
if (!Blind) Your(vision_clears);
|
|
||||||
}
|
|
||||||
stop_occupation();
|
stop_occupation();
|
||||||
nomul(0);
|
nomul(0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user