projects
/
victrix-abyssi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edf7e45
)
Moved level-gain notification to produce better message flow
author
Martin Read
<martin@blackswordsonics.com>
Tue, 21 Jan 2014 18:18:07 +0000
(18:18 +0000)
committer
Martin Read
<martin@blackswordsonics.com>
Tue, 21 Jan 2014 18:18:07 +0000
(18:18 +0000)
u.cc
patch
|
blob
|
history
diff --git
a/u.cc
b/u.cc
index
ea8f2a5
..
4e2f609
100644
(file)
--- a/
u.cc
+++ b/
u.cc
@@
-514,6
+514,7
@@
void gain_experience(int amount)
if (u.experience > lev_threshold(u.level))
{
u.level++;
+ notify_level_gain();
if (!zero_die(2))
{
bodygain = gain_body(2);
@@
-524,7
+525,6
@@
void gain_experience(int amount)
bodygain = gain_body(1);
agilgain = gain_agility(2);
}
- notify_level_gain();
hpgain = u.body / 10 + 10;
if (u.hpmax + hpgain > 999)
{