Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chris-plus-alphanumericgibberish/864b8ef76f016ca1523064a38e26dd40 to your computer and use it in GitHub Desktop.
Save Chris-plus-alphanumericgibberish/864b8ef76f016ca1523064a38e26dd40 to your computer and use it in GitHub Desktop.
/* level-draining effect doesn't actually need blood, it drains life force */
if ((uncancelled || (attk->adtyp == AD_VAMP && notmcan))
&& !Drain_res(mdef)
&& !(pa == &mons[PM_VAMPIRE_BAT] && !(youdef ? u.usleep : mdef->msleeping)) /* vampire bats need sleeping victims */
&& !rn2(3)
) {
if(attk->aatyp == AT_VINE && youdef && !HSterile){
You_feel("old.");
HSterile |= FROMOUTSIDE;
return MM_HIT;
}
/* blood bloaters split (but not the player) */
if (!youagr && pa == &mons[PM_BLOOD_BLOATER]){
(void)split_mon(magr, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment