diff options
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/ghost.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/mon-util.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc index 01bcadc639..970306a5b6 100644 --- a/crawl-ref/source/ghost.cc +++ b/crawl-ref/source/ghost.cc @@ -160,7 +160,7 @@ void ghost_demon::init_random_demon() resists.fire = random_range(1, 2); else { - resists.fire = 0; // res_fire + resists.fire = 0; // res_fire if (one_chance_in(10)) resists.fire = -1; @@ -181,7 +181,7 @@ void ghost_demon::init_random_demon() resists.elec = one_chance_in(3); // HTH damage: - damage = 20 + roll_dice( 2, 20 ); + damage = 20 + roll_dice(2, 20); // special attack type (uses weapon brand code): brand = SPWPN_NORMAL; diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 758032ff1b..91eed7b027 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1607,7 +1607,7 @@ int hit_points(int hit_dice, int min_hp, int rand_hp) { int hrolled = 0; - for (int hroll = 0; hroll < hit_dice; hroll++) + for (int hroll = 0; hroll < hit_dice; ++hroll) { hrolled += random2(1 + rand_hp); hrolled += min_hp; |