Macro for picking random entry from array

This commit is contained in:
Pasi Kallinen
2023-12-05 10:06:27 +02:00
parent b98a70e3ec
commit 5dc94f3d83
24 changed files with 45 additions and 42 deletions

View File

@@ -1468,9 +1468,9 @@ const char *
bottlename(void)
{
if (Hallucination)
return hbottlenames[rn2(SIZE(hbottlenames))];
return ROLL_FROM(hbottlenames);
else
return bottlenames[rn2(SIZE(bottlenames))];
return ROLL_FROM(bottlenames);
}
/* handle item dipped into water potion or steed saddle splashed by same */