(incomplete) some preparation for the Lovasz Conjecture achievement

This commit is contained in:
Zeno Rogue 2021-03-21 11:30:42 +01:00
parent ee1837e3d8
commit e57fc630b4
4 changed files with 17 additions and 2 deletions

View File

@ -2256,6 +2256,14 @@ void celldrawer::draw_item_full() {
color_t icol = 0;
if(specialland == laMotion && items[itOrbInvis] && c->wall == waChasm) {
if(c->mondir < c->type) {
vid.linewidth *= 3;
queueline(V*C0, V*currentmap->adj(c, c->mondir) * C0, 0xFFD500FF, 4);
vid.linewidth /= 3;
}
}
if(it) {
asciichar = iinf[it].glyph, asciicol = icol = iinf[it].color;
if(doHighlight()) asciiborder = kind_outline(it) >> 8;

View File

@ -377,7 +377,7 @@ EX void wandering() {
if(smallbounded_generation && !c->item && hrand(5) == 0 && c->land != laHalloween) {
if(passable(c, NULL, 0) || specialland == laKraken) {
if(c->land != laGraveyard && !haveOrbPower() && specialland != laHell) for(int it=0; it<1000 && !c->item; it++)
if(c->land != laGraveyard && (c->land != laMotion || chaosmode || daily::on) && !haveOrbPower() && specialland != laHell) for(int it=0; it<1000 && !c->item; it++)
placeLocalOrbs(c);
if(!c->item) c->item = wanderingTreasure(c);
if(c->item == itShard) {

View File

@ -1304,7 +1304,10 @@ EX void playerMoveEffects(movei mi) {
drainOrb(itOrbAether, 2);
}
if(cellUnstable(c2) && !markOrb(itOrbAether)) doesFallSound(c2);
if(cellUnstable(c2) && !markOrb(itOrbAether)) {
doesFallSound(c2);
if(c2->land == laMotion && c2->wall == waChasm) c2->mondir = mi.rev_dir_or(NODIR);
}
if(c2->wall == waStrandedBoat && markOrb(itOrbWater))
c2->wall = waBoat;

View File

@ -338,6 +338,10 @@ EX void initgame() {
generate_mines();
}
if(specialland == laMotion && bounded && !chaosmode && !daily::on) {
cwt.at->item = itOrbInvis;
}
princess::squeaked = false;
clearing::current_root = NULL;