mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
Fixed some bugs with Alchemist's land copying
This commit is contained in:
parent
e77dfa7b56
commit
3b154d5038
7
game.cpp
7
game.cpp
@ -6754,7 +6754,12 @@ bool movepcto(int d, int subdir, bool checkonly) {
|
|||||||
boatjump:
|
boatjump:
|
||||||
statuejump:
|
statuejump:
|
||||||
flipplayer = true; if(multi::players > 1) multi::flipped[multi::cpid] = true;
|
flipplayer = true; if(multi::players > 1) multi::flipped[multi::cpid] = true;
|
||||||
if(c2->item && c2->land == laAlchemist) c2->wall = cwt.c->wall;
|
if(c2->item && isAlch(c2)) {
|
||||||
|
if(cwt.c->wall == waBoat)
|
||||||
|
c2->wall = waNone;
|
||||||
|
else
|
||||||
|
c2->wall = cwt.c->wall;
|
||||||
|
}
|
||||||
if(c2->wall == waRoundTable) {
|
if(c2->wall == waRoundTable) {
|
||||||
addMessage(XLAT("You jump over the table!"));
|
addMessage(XLAT("You jump over the table!"));
|
||||||
}
|
}
|
||||||
|
11
graph.cpp
11
graph.cpp
@ -2325,8 +2325,6 @@ void setcolors(cell *c, int& wcol, int &fcol) {
|
|||||||
|
|
||||||
case laAlchemist:
|
case laAlchemist:
|
||||||
fcol = 0x202020;
|
fcol = 0x202020;
|
||||||
if(c->item && !(conformal::includeHistory && eq(c->aitmp, sval)))
|
|
||||||
fcol = wcol = iinf[c->item].color;
|
|
||||||
break;
|
break;
|
||||||
case laReptile:
|
case laReptile:
|
||||||
fcol = reptilecolor(c);
|
fcol = reptilecolor(c);
|
||||||
@ -2549,9 +2547,16 @@ void setcolors(cell *c, int& wcol, int &fcol) {
|
|||||||
fcol = wcol = winf[c->wall].color; */
|
fcol = wcol = winf[c->wall].color; */
|
||||||
|
|
||||||
// floors become fcol
|
// floors become fcol
|
||||||
if(c->wall == waSulphur || c->wall == waSulphurC || isAlch(c) || c->wall == waPlatform)
|
if(c->wall == waSulphur || c->wall == waSulphurC || c->wall == waPlatform)
|
||||||
fcol = wcol;
|
fcol = wcol;
|
||||||
|
|
||||||
|
if(isAlch(c)) {
|
||||||
|
if(c->item && !(conformal::includeHistory && eq(c->aitmp, sval)))
|
||||||
|
fcol = wcol = iinf[c->item].color;
|
||||||
|
else
|
||||||
|
fcol = wcol;
|
||||||
|
}
|
||||||
|
|
||||||
if(c->wall == waDeadTroll2 || c->wall == waPetrified) {
|
if(c->wall == waDeadTroll2 || c->wall == waPetrified) {
|
||||||
eMonster m = eMonster(c->wparam);
|
eMonster m = eMonster(c->wparam);
|
||||||
if(c->wall == waPetrified)
|
if(c->wall == waPetrified)
|
||||||
|
Loading…
Reference in New Issue
Block a user