… | |
… | |
168 | } |
168 | } |
169 | |
169 | |
170 | object *fountain = get_archetype ("fountain"); |
170 | object *fountain = get_archetype ("fountain"); |
171 | object *potion = object::create (); |
171 | object *potion = object::create (); |
172 | |
172 | |
173 | pick_random_object (fountain_style)->copy_to (potion); |
173 | fountain_style->pick_random_object ()->copy_to (potion); |
174 | |
174 | |
175 | while (i < 0 && tries < 10) |
175 | while (i < 0 && tries < 10) |
176 | { |
176 | { |
177 | ix = rndm (map->width - 2) + 1; |
177 | ix = rndm (map->width - 2) + 1; |
178 | iy = rndm (map->height - 2) + 1; |
178 | iy = rndm (map->height - 2) + 1; |
… | |
… | |
219 | object *the_exit = object::create (); |
219 | object *the_exit = object::create (); |
220 | |
220 | |
221 | if (!exit_style) |
221 | if (!exit_style) |
222 | return; |
222 | return; |
223 | |
223 | |
224 | pick_random_object (exit_style)->copy_to (the_exit); |
224 | exit_style->pick_random_object ()->copy_to (the_exit); |
225 | |
225 | |
226 | while (i < 0) |
226 | while (i < 0) |
227 | { |
227 | { |
228 | ix = rndm (map->width - 2) + 1; |
228 | ix = rndm (map->width - 2) + 1; |
229 | iy = rndm (map->height - 2) + 1; |
229 | iy = rndm (map->height - 2) + 1; |