… | |
… | |
161 | int ix, iy, i = -1, tries = 0; |
161 | int ix, iy, i = -1, tries = 0; |
162 | maptile *fountain_style = find_style ("/styles/misc", "fountains", -1); |
162 | maptile *fountain_style = find_style ("/styles/misc", "fountains", -1); |
163 | |
163 | |
164 | if (!fountain_style) |
164 | if (!fountain_style) |
165 | { |
165 | { |
166 | LOG (llevError, "unabel to load stylemap /styles/misc fountains\n"); |
166 | LOG (llevError, "unable to load stylemap /styles/misc fountains\n"); |
167 | return; |
167 | return; |
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 (); |
… | |
… | |
193 | SET_FLAG (potion, FLAG_NO_PICK); |
193 | SET_FLAG (potion, FLAG_NO_PICK); |
194 | SET_FLAG (potion, FLAG_IDENTIFIED); |
194 | SET_FLAG (potion, FLAG_IDENTIFIED); |
195 | potion->name = potion->name_pl = "fountain"; |
195 | potion->name = potion->name_pl = "fountain"; |
196 | potion->x = ix; |
196 | potion->x = ix; |
197 | potion->y = iy; |
197 | potion->y = iy; |
198 | potion->material = M_ADAMANT; |
198 | potion->materialname = "adamantium"; |
199 | fountain->x = ix; |
199 | fountain->x = ix; |
200 | fountain->y = iy; |
200 | fountain->y = iy; |
201 | insert_ob_in_map (fountain, map, NULL, 0); |
201 | insert_ob_in_map (fountain, map, NULL, 0); |
202 | insert_ob_in_map (potion, map, NULL, 0); |
202 | insert_ob_in_map (potion, map, NULL, 0); |
203 | } |
203 | } |