… | |
… | |
157 | { |
157 | { |
158 | walk->level = disease->level; |
158 | walk->level = disease->level; |
159 | return 1; /* just update the existing immunity. */ |
159 | return 1; /* just update the existing immunity. */ |
160 | } |
160 | } |
161 | |
161 | |
162 | immunity = get_archetype (shstr_immunity); |
162 | immunity = archetype::get (shstr_immunity); |
163 | |
163 | |
164 | immunity->name = disease->name; |
164 | immunity->name = disease->name; |
165 | immunity->level = disease->level; |
165 | immunity->level = disease->level; |
166 | immunity->move_block = 0; |
166 | immunity->move_block = 0; |
167 | |
167 | |
… | |
… | |
293 | for (tmp = victim->head_ ()->inv; tmp; tmp = tmp->below) |
293 | for (tmp = victim->head_ ()->inv; tmp; tmp = tmp->below) |
294 | if (tmp->name == disease->name && tmp->is_immunity ()) /* possibly an immunity, or diseased */ |
294 | if (tmp->name == disease->name && tmp->is_immunity ()) /* possibly an immunity, or diseased */ |
295 | if (tmp->level >= disease->level) |
295 | if (tmp->level >= disease->level) |
296 | return 0; /* Immune! */ |
296 | return 0; /* Immune! */ |
297 | |
297 | |
298 | object *new_symptom = get_archetype (shstr_symptom); |
298 | object *new_symptom = archetype::get (shstr_symptom); |
299 | |
299 | |
300 | /* Something special done with dam. We want diseases to be more |
300 | /* Something special done with dam. We want diseases to be more |
301 | * random in what they'll kill, so we'll make the damage they |
301 | * random in what they'll kill, so we'll make the damage they |
302 | * do random, note, this has a weird effect with progressive diseases. |
302 | * do random, note, this has a weird effect with progressive diseases. |
303 | */ |
303 | */ |