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

@@ -689,7 +689,7 @@ really_kick_object(coordxy x, coordxy y)
if (!Deaf)
pline1("Thwwpingg!");
You("%s!", flyingcoinmsg[rn2(SIZE(flyingcoinmsg))]);
You("%s!", ROLL_FROM(flyingcoinmsg));
(void) scatter(x, y, rnd(3), VIS_EFFECTS | MAY_HIT,
gk.kickedobj);
newsym(x, y);