still more brides of Dracula

Another tweak to PR #1240.  Vampires start out vampshifted to
bat/fog/wolf form.  Marking them as 'waiting' forces them back to
vampire form.  Testing that revealed one of the brides as a vampire
lord rather than a vampire lady.  That could probably be construed
as being politically correct but doesn't match the source material.

The reversion from vampshifted to vampire entailed a 10% chance of
toggling gender, comparable to hero self-polymorph.  Don't do that
for vampires.  From the player's perspective they change randomly but
from their own perspective, the change is controlled.
This commit is contained in:
PatR
2024-06-01 02:08:06 -07:00
parent 30f5f0055d
commit d8aa4c0b1f
2 changed files with 10 additions and 6 deletions

View File

@@ -5027,8 +5027,11 @@ mgender_from_permonst(
} else if (is_female(mdat)) {
mtmp->female = TRUE;
} else if (!is_neuter(mdat)) {
/* usually leave as-is; same chance to change as polymorphing hero */
if (!rn2(10))
/* usually leave as-is; same chance to change as polymorphing hero;
vampires use controlled shapechange (from their perspective, even
if it is random from the player's perspective) and don't undergo
gender change */
if (!rn2(10) && !(is_vampire(mdat) || is_vampshifter(mtmp)))
mtmp->female = !mtmp->female;
}
}