From d3ae28730ea83251e130a6540c015abb2a83e2a8 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 24 Dec 2020 23:01:49 +0100 Subject: [PATCH] improved the piece set for HDUAL --- rogueviz/bringris.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rogueviz/bringris.cpp b/rogueviz/bringris.cpp index 926572ae..2f96fa7d 100644 --- a/rogueviz/bringris.cpp +++ b/rogueviz/bringris.cpp @@ -513,6 +513,12 @@ int penalty(const vector& shape, const code_t& code) { for(auto s: shape) if(get_z(s.at) > get_z(shape[0].at)) p += 10000; + if(bflags() & HDUAL) { + if(!dists.count(shape[0].at->move(2))) + p += 40000; + if(!dists.count(shape[0].at->move(3))) + p += 20000; + } return p; }