git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2783 c06c8d41-db1a-0410-9941-cceddc491573
TAO4PCDXAERCT263MBOSMCT44EBU7OOECHKGYNJMUH6UBMDAFAXQC
6RJTF6NFXGD7TVUFYCPLY7N2AJ43SNDAECUTPVMGX54XJ6XZ6C4QC
UOUDDVHCP2526KI2KRMYS5NDRG5AL3FLPSAHKTVAQOXYVI5XHSVAC
IZ5YT2GANAFYBACERZYTFQE2H66NM4Y3K5ADYNYF2IUADY23HJ4QC
SVY2PTCLXR3KNPQAWXVXTTGCC5DR334HOAKHYO3VDDRWM2BWMALAC
if (escape == 0) // middle-sized creatures are at a disadvantage { escape += coinflip(); damage += coinflip(); }
if (escape == 0) // middle-sized creatures are at a disadvantage
{
escape += coinflip();
damage += coinflip();
}
// damaged nets are easier to slip out of if (hold < 0) { escape += random2(-hold/2) + 1; damage += random2(-hold/3) + 1; // ... and easier to destroy }
// damaged nets are easier to slip out of
if (hold < 0)
escape += random2(-hold/2) + 1;
damage += random2(-hold/3) + 1; // ... and easier to destroy
// damaged nets are easier to destroy if (hold < 0) { damage += random2(-hold/3 + 1); // ... and easier to slip out of (but only if escape looks feasible) if (you.attribute[ATTR_HELD] < 5 || escape >= damage) escape += random2(-hold/2) + 1; }
// damaged nets are easier to destroy
damage += random2(-hold/3 + 1);
// ... and easier to slip out of (but only if escape looks feasible)
if (you.attribute[ATTR_HELD] < 5 || escape >= damage)
// medium sized characters are at disadvantage and sometimes get a bonus if (you.body_size(PSIZE_BODY) == SIZE_MEDIUM) damage += coinflip();
// medium sized characters are at disadvantage and sometimes get a bonus
if (you.body_size(PSIZE_BODY) == SIZE_MEDIUM)
if (escape < 1) escape = 1; else if (escape > 4)
if (escape < 1)
escape = 1;
else if (escape > 4)
// medium sized characters are at disadvantage and sometimes get a bonus if (you.body_size(PSIZE_BODY) == SIZE_MEDIUM) escape += coinflip(); if (escape > 4)
if (escape > 4)