1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-09 22:59:43 +00:00

crystal:: added a conduct for doing Camelot without compasses

This commit is contained in:
Zeno Rogue
2018-12-25 23:54:34 +01:00
parent 8e4e627a37
commit 444bb762d7
4 changed files with 19 additions and 1 deletions

View File

@@ -668,8 +668,11 @@ bool drawItemType(eItem it, cell *c, const transmatrix& V, int icol, int pticks,
else if(it == itCompass) {
transmatrix V2;
if(geometry == gCrystal)
if(geometry == gCrystal) {
if(crystal::compass_probability <= 0) return true;
if(cwt.at->land == laCamelot && celldistAltRelative(cwt.at) < 0) crystal::used_compass_inside = true;
V2 = V * spin(crystal::compass_angle() + M_PI);
}
else {
cell *c1 = c ? findcompass(c) : NULL;
if(c1) {