… | |
… | |
131 | saves++; |
131 | saves++; |
132 | } |
132 | } |
133 | |
133 | |
134 | if (saves == attacks || attacks == 0) |
134 | if (saves == attacks || attacks == 0) |
135 | return TRUE; |
135 | return TRUE; |
|
|
136 | |
136 | if ((saves == 0) || (rndm (1, attacks) > saves)) |
137 | if (saves == 0 || (rndm (1, attacks) > saves)) |
137 | return FALSE; |
138 | return FALSE; |
|
|
139 | |
138 | return TRUE; |
140 | return TRUE; |
139 | } |
141 | } |
140 | |
142 | |
141 | /* This function calls did_make_save_item. It then performs the |
143 | /* This function calls did_make_save_item. It then performs the |
142 | * appropriate actions to the item (such as burning the item up, |
144 | * appropriate actions to the item (such as burning the item up, |