From 1d2adc3a0a7ae47dec042658b2f8725391fda405 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 3 Nov 2017 21:50:31 +0100 Subject: [PATCH] ambushes on the sphere --- game.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/game.cpp b/game.cpp index 96bd77ea..53ad180e 100644 --- a/game.cpp +++ b/game.cpp @@ -6192,6 +6192,12 @@ void ambush(cell *c, eItem what) { cx->monst = moHunterDog; if(dh > d) c0 = cx, d = dh; } + if(sphere) { + int dogs = ambushSize(c, what); + for(int i = cl.lst.size()-1; i>0 && dogs; i--) + if(!isPlayerOn(cl.lst[i]) && !cl.lst[i]->monst) + cl.lst[i]->monst = moHunterDog, dogs--; + } vector around; cell *clast = NULL; cell *ccur = c0;