summaryrefslogtreecommitdiff
path: root/src/powers.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
committerBardur Arantsson <bardur@scientician.net>2016-10-05 18:49:38 +0200
commitb9fca0267b1d6a32d57e1fb4387f52c19d1c3fa6 (patch)
treed8c7c6c1df4b2ead1ca4cf200b771245bcd7d3ca /src/powers.cc
parent0c2f30b56c221a826ba64f0ec864c29d0f717644 (diff)
Move f_info into GameEditData
Diffstat (limited to 'src/powers.cc')
-rw-r--r--src/powers.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/powers.cc b/src/powers.cc
index 0c01a0e6..88292e21 100644
--- a/src/powers.cc
+++ b/src/powers.cc
@@ -17,6 +17,7 @@
#include "feature_flag.hpp"
#include "feature_type.hpp"
#include "files.hpp"
+#include "game.hpp"
#include "hooks.hpp"
#include "mimic.hpp"
#include "monster2.hpp"
@@ -129,6 +130,8 @@ static bool_ power_chance(power_type *x_ptr)
static void power_activate(int power)
{
+ auto const &f_info = game->edit_data.f_info;
+
s16b plev = p_ptr->lev;
char ch = 0;
int amber_power = 0;