]> granicus.if.org Git - nethack/commitdiff
bees from trees
authornethack.allison <nethack.allison>
Fri, 30 Aug 2002 02:55:21 +0000 (02:55 +0000)
committernethack.allison <nethack.allison>
Fri, 30 Aug 2002 02:55:21 +0000 (02:55 +0000)
<email deleted> wrote in the newsgroup:
> "You've attracted the tree's former occupants!"
> (nothing happens)
>
> Yes, it's _zero_ to four bees, depending on your luck.  I think it's meant
> to be one to five, though.
>

doc/fixes34.1
src/dokick.c

index d48623fa26a53870fb13cef4753c4e8642dd5768..b2e552ae4ca11ca1cdf18816a7b9219ba10227e0 100644 (file)
@@ -226,6 +226,7 @@ contribution by Adam Wozniak adds several const & changes some char* to char[]
 fix impossible when hitting/jousting a monster causes it to be killed twice
 fix a GOLDOBJ crash/hang in take_gold() that could be triggered by reading a
        cursed spellbook, or by sitting on a throne
+kicking a tree could produce 0 to 4 killer bees but it should have been 1 to 5
 
 
 Platform- and/or Interface-Specific Fixes
index a37fe27e79b4a7497d1104d533d1ae6ed406e44f..327041fb589a988cb199f4ba29fea89ff7d4f8fa 100644 (file)
@@ -880,7 +880,7 @@ dokick()
                        maploc->looted |= TREE_LOOTED;
                        return(1);
                    } else if (!rn2(15) && !(maploc->looted & TREE_SWARM)){
-                       int cnt = rnl(5);
+                       int cnt = rnl(5) + 1;
                        coord mm;
                        mm.x = x; mm.y = y;
                        pline("You've attracted the tree's former occupants!");