Skip to content

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
Add missing word in slay.txt.  Use the Javadoc/doxygen lead-in for the comments describing the square_apparent_*() calls.
  • Loading branch information
backwardsEric authored and NickMcConnell committed Sep 24, 2024
1 parent df465aa commit 9e8b45a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/gamedata/slay.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File: slay.txt

# This file the slays that can appear on objects.
# This file encodes the slays that can appear on objects.

# The name and verbs can generally be edited without bad effects though slays
# for the same type of creature should all use the same name. Changes to the
Expand Down
6 changes: 3 additions & 3 deletions src/cave-square.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ int square_digging(struct chunk *c, struct loc grid) {
return 0;
}

/*
/**
* Return the name for the terrain in a grid. Accounts for the fact that
* some terrain mimics another terrain.
*
Expand All @@ -1823,7 +1823,7 @@ const char *square_apparent_name(struct chunk *c, struct loc grid) {
return f_info[f].name;
}

/*
/**
* Return the prefix, appropriate for describing looking at the grid in
* question, for the name returned by square_name().
*
Expand All @@ -1841,7 +1841,7 @@ const char *square_apparent_look_prefix(struct chunk *c, struct loc grid) {
(is_a_vowel(f_info[f].name[0]) ? "an " : "a ");
}

/*
/**
* Return a preposition, appropriate for describing the grid the viewer is on,
* for the name returned by square_name(). May return an empty string when
* the name doesn't require a preposition.
Expand Down

0 comments on commit 9e8b45a

Please sign in to comment.