Skip to content

Commit

Permalink
fix: the monster build
Browse files Browse the repository at this point in the history
It was broken in two places:
* there was a missing header file (008097b);
* a couple of variables were declared inside a `case` statement without
  a scope (abc8f7a).
  • Loading branch information
nlavsky committed Dec 17, 2024
1 parent 0919e08 commit 3074593
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crawl-ref/source/util/monster/monster-main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "fight.h" // spines_damage
#include "item-name.h"
#include "item-prop.h"
#include "items.h"
#include "los.h"
#include "mapdef.h" // item_list
#include "message.h"
Expand Down Expand Up @@ -1026,10 +1027,13 @@ int main(int argc, char* argv[])
colour(YELLOW, damage_flavour("acid", "4d3"));
break;
case AF_AIRSTRIKE:
{
short int min = pow(hd, 1.33) / 2;
short int max = pow(hd + 1, 1.33) * 11 / 6;
monsterattacks +=
colour(LIGHTBLUE, damage_flavour("airstrike", min, max));
break;
}
case AF_BLINK:
monsterattacks += colour(MAGENTA, "(blink self)");
break;
Expand Down

0 comments on commit 3074593

Please sign in to comment.