diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:49:38 +0200 |
commit | 1bbed63b66c0f69809e698576a51501150f06bba (patch) | |
tree | f458361c0c2e7dac2502b1aace63d83d5dbd15b4 /src/spells1.cc | |
parent | b9fca0267b1d6a32d57e1fb4387f52c19d1c3fa6 (diff) |
Move k_info into GameEditData
Diffstat (limited to 'src/spells1.cc')
-rw-r--r-- | src/spells1.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/spells1.cc b/src/spells1.cc index c11be30b..3eaf0303 100644 --- a/src/spells1.cc +++ b/src/spells1.cc @@ -1781,6 +1781,8 @@ typedef int (*inven_func)(object_type *); */ static int inven_damage(inven_func typ, int perc) { + auto const &k_info = game->edit_data.k_info; + int i, j, k, amt; object_type *o_ptr; @@ -1827,7 +1829,7 @@ static int inven_damage(inven_func typ, int perc) /* Potions smash open */ if (k_info[o_ptr->k_idx].tval == TV_POTION) - { + { (void)potion_smash_effect(0, p_ptr->py, p_ptr->px, o_ptr->sval); } @@ -3816,6 +3818,7 @@ static int raise_ego[MAX_RAISE] = static bool_ project_o(int who, int r, int y, int x, int dam, int typ) { auto const &r_info = game->edit_data.r_info; + auto const &k_info = game->edit_data.k_info; cave_type *c_ptr = &cave[y][x]; |