STATIC_DCL void FDECL(cursetxt, (struct monst *, BOOLEAN_P));
STATIC_DCL int FDECL(choose_magic_spell, (int));
STATIC_DCL int FDECL(choose_clerical_spell, (int));
+STATIC_DCL int FDECL(m_cure_self, (struct monst *, int));
STATIC_DCL void FDECL(cast_wizard_spell, (struct monst *, int, int));
STATIC_DCL void FDECL(cast_cleric_spell, (struct monst *, int, int));
STATIC_DCL boolean FDECL(is_undirected_spell, (unsigned int, int));
return (ret);
}
+STATIC_OVL int
+m_cure_self(mtmp, dmg)
+struct monst *mtmp;
+int dmg;
+{
+ if (mtmp->mhp < mtmp->mhpmax) {
+ if (canseemon(mtmp))
+/*JP
+ pline("%s looks better.", Monnam(mtmp));
+*/
+ pline("%s\82Í\8bC\95ª\82ª\82æ\82\82È\82Á\82½\82æ\82¤\82¾\81D", Monnam(mtmp));
+ /* note: player healing does 6d4; this used to do 1d8 */
+ if ((mtmp->mhp += d(3, 6)) > mtmp->mhpmax)
+ mtmp->mhp = mtmp->mhpmax;
+ dmg = 0;
+ }
+ return dmg;
+}
+
/* monster wizard and cleric spellcasting functions */
/*
If dmg is zero, then the monster is not casting at you.
dmg = 0;
break;
case MGC_CURE_SELF:
- if (mtmp->mhp < mtmp->mhpmax) {
- if (canseemon(mtmp))
-/*JP
- pline("%s looks better.", Monnam(mtmp));
-*/
- pline("%s\82Í\8bC\95ª\82ª\82æ\82\82È\82Á\82½\82æ\82¤\82¾\81D", Monnam(mtmp));
- /* note: player healing does 6d4; this used to do 1d8 */
- if ((mtmp->mhp += d(3, 6)) > mtmp->mhpmax)
- mtmp->mhp = mtmp->mhpmax;
- dmg = 0;
- }
+ dmg = m_cure_self(mtmp, dmg);
break;
case MGC_PSI_BOLT:
/* prior to 3.4.0 Antimagic was setting the damage to 1--this
dmg = (dmg + 1) / 2;
make_confused(HConfusion + dmg, TRUE);
if (Hallucination)
-#if 0 /*JP*/
+/*JP
You_feel("%s!", oldprop ? "trippier" : "trippy");
-#else
+*/
You("%s\82Ö\82ë\82Ö\82ë\82É\82È\82Á\82½\81I", oldprop ? "\82à\82Á\82Æ" : "");
-#endif
else
-#if 0 /*JP*/
+/*JP
You_feel("%sconfused!", oldprop ? "more " : "");
-#else
+*/
You("%s\8d¬\97\90\82µ\82½\81I", oldprop ? "\82à\82Á\82Æ" : "");
-#endif
}
dmg = 0;
break;
case CLC_CURE_SELF:
- if (mtmp->mhp < mtmp->mhpmax) {
- if (canseemon(mtmp))
-#if 0 /*JP*/
- pline("%s looks better.", Monnam(mtmp));
-#else
- pline("%s\82Í\8bC\95ª\82ª\82æ\82\82È\82Á\82½\82æ\82¤\82¾\81D", Monnam(mtmp));
-#endif
- /* note: player healing does 6d4; this used to do 1d8 */
- if ((mtmp->mhp += d(3, 6)) > mtmp->mhpmax)
- mtmp->mhp = mtmp->mhpmax;
- dmg = 0;
- }
+ dmg = m_cure_self(mtmp, dmg);
break;
case CLC_OPEN_WOUNDS:
if (Antimagic) {