From 8cd8759e045de2ba30048648c6eb67402f300bb8 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 7 Mar 2024 19:29:09 +0200 Subject: [PATCH] Walking on ice can make you slide in a random direction --- doc/fixes3-7-0.txt | 1 + src/timeout.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index b4120a80b..46cfffe9a 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -1370,6 +1370,7 @@ monsters weren't randomly generating if exactly one square was outside LOS, when a spellbook was polymorphed into a novel and then incrementing spestudied field turned it into a blank spellbook, the novel's title would stick: "{spellbook of blank paper|plain spellbook} named " +walking on ice can make you slide in a random direction Fixes to 3.7.0-x General Problems Exposed Via git Repository diff --git a/src/timeout.c b/src/timeout.c index 15d7a4771..b0fa7fc06 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -1235,6 +1235,10 @@ slip_or_trip(void) && (!ice_only || !rn2(3))) { You("lose your balance."); dismount_steed(DISMOUNT_FELL); + } else if (!rn2(10 + ACURR(A_DEX))) { + int dir = rn2(N_DIRS); + + hurtle(xdir[dir], ydir[dir], 1, FALSE); } } else { if (on_foot) {