1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-24 06:22:20 +00:00

ru:: secret passages opened from below

This commit is contained in:
Zeno Rogue 2025-05-11 01:47:36 +02:00
parent 5bd984e508
commit b527183128
3 changed files with 13 additions and 3 deletions

View File

@ -55,7 +55,10 @@ struct ruwall {
string help;
};
enum eWall { wAir, wWall, wBouncy, wSpike, wWater, wFrozen, wDoor, wSmashedDoor, wLockedDoor, wFountain, wBluePortal, wOrangePortal, wPlatform, wStaircase, wColumn, wForge, wWoodWall, wShopDoor, wGUARD };
enum eWall {
wAir, wWall, wBouncy, wSpike, wWater, wFrozen, wDoor, wSmashedDoor,
wLockedDoor, wFountain, wBluePortal, wOrangePortal, wPlatform, wStaircase,
wColumn, wForge, wWoodWall, wShopDoor, wSecretPassage, wGUARD };
flagtype W_BLOCK = 1;
flagtype W_TRANS = 2;
@ -88,6 +91,7 @@ ruwall walls[qwall] = {
{"forge", "&", 0xB0202080, W_TRANS | W_PAIN, "Used by runesmiths."},
{"wooden wall", "#", 0xFF8000FF, W_BLOCK | W_STABLE, "These kinds of tough walls can be destroyed with fire."},
{"shop door", "#", 0xFFD500FF, W_TRANS, "A powerful door, to protect against shoplifters."},
{"secret passage", "#", 0xFFFF40FF, W_PLATFORM | W_BLOCKBIRD, "You have discovered a secret passage from the other side."},
};
int sel = 1;

View File

@ -1124,6 +1124,7 @@ ROOM Mazes of Menace
A staircase
W wooden wall
S shop door
P secret passage
MAP
################################################################################
################################################################################
@ -1136,8 +1137,8 @@ MAP
###..........#####...............#######.......###############...........#######
###..........+...+...............+.....+.......###############...........#######
###..........+...+...............+.....+.......###################--############
###..........#####...............########--#######################AA############
###..........#####...............########..............###########AA############
###..........#####...............#################################AA############
###..........#####...............########PP............###########AA############
###..........#####A.............A########..............###########AA############
.##..........#####A.............A####################..#######....AA........####
.##..........#####...............####################--#######....AA........####

View File

@ -149,6 +149,11 @@ void render_room_walls(room *r) {
int cc = c >> 3;
if(cc == wSecretPassage && r->at(x, y-1) == wWall) {
current_room->replace_block(x, y, wAir);
current_room->replace_block(x, y-1, wSecretPassage);
}
if((c & 7) == 0)
asciiletter(x*block_x, y*block_y, (x+1)*block_x, (y+1)*block_y, walls[cc].glyph, walls[cc].color);