… | |
… | |
1868 | if (!QUERY_FLAG (tmp, FLAG_IDENTIFIED)) |
1868 | if (!QUERY_FLAG (tmp, FLAG_IDENTIFIED)) |
1869 | identify (tmp); |
1869 | identify (tmp); |
1870 | |
1870 | |
1871 | new_draw_info_format (NDI_BLACK, 0, op, "The scroll of %s turns to dust.", &tmp->inv->name); |
1871 | new_draw_info_format (NDI_BLACK, 0, op, "The scroll of %s turns to dust.", &tmp->inv->name); |
1872 | |
1872 | |
1873 | |
|
|
1874 | cast_spell (op, tmp, dir, tmp->inv, NULL); |
1873 | cast_spell (op, tmp, dir, tmp->inv, NULL); |
1875 | decrease_ob (tmp); |
1874 | decrease_ob (tmp); |
1876 | } |
1875 | } |
1877 | |
1876 | |
1878 | /** |
1877 | /** |
… | |
… | |
1882 | */ |
1881 | */ |
1883 | static void |
1882 | static void |
1884 | apply_treasure (object *op, object *tmp) |
1883 | apply_treasure (object *op, object *tmp) |
1885 | { |
1884 | { |
1886 | object *treas; |
1885 | object *treas; |
1887 | |
|
|
1888 | |
1886 | |
1889 | /* Nice side effect of new treasure creation method is that the treasure |
1887 | /* Nice side effect of new treasure creation method is that the treasure |
1890 | * for the chest is done when the chest is created, and put into the chest |
1888 | * for the chest is done when the chest is created, and put into the chest |
1891 | * inventory. So that when the chest burns up, the items still exist. Also |
1889 | * inventory. So that when the chest burns up, the items still exist. Also |
1892 | * prevents people fromt moving chests to more difficult maps to get better |
1890 | * prevents people fromt moving chests to more difficult maps to get better |