mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
improved the piece set for HDUAL
This commit is contained in:
parent
146e911eef
commit
d3ae28730e
@ -513,6 +513,12 @@ int penalty(const vector<cellwalker>& shape, const code_t& code) {
|
|||||||
for(auto s: shape)
|
for(auto s: shape)
|
||||||
if(get_z(s.at) > get_z(shape[0].at))
|
if(get_z(s.at) > get_z(shape[0].at))
|
||||||
p += 10000;
|
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;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user