1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

creating Mimics in the map editor now works correctly

This commit is contained in:
Zeno Rogue 2018-06-17 12:03:39 +02:00
parent 06de0989cd
commit 69429ba4d4

View File

@ -547,6 +547,12 @@ namespace mapeditor {
if((isWorm(c) || isIvy(c) || isMutantIvy(c)) && c->mov[cdir] &&
!isWorm(c->mov[cdir]) && !isIvy(c->mov[cdir]))
c->mondir = NODIR;
if(c->monst == moMimic) {
c->monst = moNone;
mirror::createMirror(cellwalker(c, cdir, true), 0);
c->monst = moMimic;
}
break;
case 1:
c->item = eItem(paintwhat);