… | |
… | |
50 | } |
50 | } |
51 | |
51 | |
52 | /* ADJUSTMENTS */ |
52 | /* ADJUSTMENTS */ |
53 | |
53 | |
54 | /* It's harder to steal from hostile beings! */ |
54 | /* It's harder to steal from hostile beings! */ |
55 | if (!QUERY_FLAG (victim, FLAG_UNAGGRESSIVE)) |
55 | if (!victim->flag [FLAG_UNAGGRESSIVE]) |
56 | roll = roll / 2; |
56 | roll = roll / 2; |
57 | |
57 | |
58 | /* Easier to steal from sleeping beings, or if the thief is |
58 | /* Easier to steal from sleeping beings, or if the thief is |
59 | * unseen */ |
59 | * unseen */ |
60 | if (QUERY_FLAG (victim, FLAG_SLEEP)) |
60 | if (victim->flag [FLAG_SLEEP]) |
61 | roll = roll * 3; |
61 | roll = roll * 3; |
62 | else if (op->invisible) |
62 | else if (op->invisible) |
63 | roll = roll * 2; |
63 | roll = roll * 2; |
64 | |
64 | |
65 | /* check stealing 'encumberance'. Having this equipment applied makes |
65 | /* check stealing 'encumberance'. Having this equipment applied makes |