Skip to content

Commit

Permalink
Use more nouns when a boulder pushes something into the unknown.
Browse files Browse the repository at this point in the history
Brom's Barrelling Boulder can push monsters into terrain you haven't
seen. This created a message such as " Your boulder crushes the orc
against and falls apart!" as feature_description_at() returns an empty
string for unknown terrain.

Replace the empty string with "something" for that message.
  • Loading branch information
Aliscans committed Nov 10, 2024
1 parent 75134b2 commit c5bbddf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crawl-ref/source/mon-act.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,8 @@ static void _handle_boulder_movement(monster& boulder)
blocker_name = blocker->name(DESC_THE);
else
blocker_name = feature_description_at(targ + dir);
if (blocker_name.empty())
blocker_name = "something";

if (blocker || cell_is_solid(targ + dir))
{
Expand Down

0 comments on commit c5bbddf

Please sign in to comment.