diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:56 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-02-23 09:11:56 +0100 |
commit | cd7be5b3001b8251545af526ee6a3ee15562c930 (patch) | |
tree | 88e23b156380c6f738e3e40cc49017c91ffdb1be /src/wild.cc | |
parent | a07a80ac3cf4cd61a91f25092342142cc68894b1 (diff) |
Rework MONSTER_EXP into a function
Diffstat (limited to 'src/wild.cc')
-rw-r--r-- | src/wild.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wild.cc b/src/wild.cc index a44fa4d5..35d526d9 100644 --- a/src/wild.cc +++ b/src/wild.cc @@ -1030,7 +1030,7 @@ static void town_gen_hack(int t_idx, int qy, int qx) monster_type *m_ptr = &m_list[m_idx]; if (m_ptr->level < (dun_level / 2)) { - m_ptr->exp = MONSTER_EXP(m_ptr->level + (dun_level / 2) + randint(dun_level / 2)); + m_ptr->exp = monster_exp(m_ptr->level + (dun_level / 2) + randint(dun_level / 2)); monster_check_experience(m_idx, TRUE); } } @@ -1158,7 +1158,7 @@ static void town_gen_circle(int t_idx, int qy, int qx) monster_type *m_ptr = &m_list[m_idx]; if (m_ptr->level < (dun_level / 2)) { - m_ptr->exp = MONSTER_EXP(m_ptr->level + (dun_level / 2) + randint(dun_level / 2)); + m_ptr->exp = monster_exp(m_ptr->level + (dun_level / 2) + randint(dun_level / 2)); monster_check_experience(m_idx, TRUE); } } |