Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /**
* water - NetHack special level
* Converted from: water.lua
*/
import * as des from '../sp_lev.js';
export async function generate() {
// NetHack endgame water.lua $NHDT-Date: 1652196038 2022/5/10 15:20:38 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.1 $
// Copyright (c) 1989 by Jean-Christophe Collet
// Copyright (c) 1992,1993 by Izchak Miller, David Cohrs,
// and Timo Hakulinen
// NetHack may be freely redistributed. See license for details.
//
des.level_init({ style: "solidfill", fg: " " });
des.level_flags("mazelevel", "noteleport", "hardfloor", "shortsighted");
des.message("You find yourself suspended in an air bubble surrounded by water.");
// The player lands upon arrival to an air bubble
// within the leftmost third of the level. The
// portal to the next level is randomly located in an air
// bubble within the rightmost third of the level.
// Bubbles are generated by special code in mkmaze.c for now.
await des.map(`\
WWWWWWWWWWWWWWWWWWWW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WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
`);
des.teleport_region({ region: [0,0,25,19] });
des.levregion({ type: "portal", region: [51,0,75,19], name: "astral" });
// A fisherman's dream...
await des.monster("giant eel");
await des.monster("giant eel");
await des.monster("giant eel");
await des.monster("giant eel");
await des.monster("giant eel");
await des.monster("giant eel");
await des.monster("giant eel");
await des.monster("giant eel");
await des.monster("electric eel");
await des.monster("electric eel");
await des.monster("electric eel");
await des.monster("electric eel");
await des.monster("electric eel");
await des.monster("electric eel");
await des.monster("electric eel");
await des.monster("electric eel");
await des.monster("kraken");
await des.monster("kraken");
await des.monster("kraken");
await des.monster("kraken");
await des.monster("kraken");
await des.monster("kraken");
await des.monster("kraken");
await des.monster("kraken");
await des.monster("kraken");
await des.monster("shark");
await des.monster("shark");
await des.monster("shark");
await des.monster("shark");
await des.monster("piranha");
await des.monster("piranha");
await des.monster("piranha");
await des.monster("piranha");
await des.monster("jellyfish");
await des.monster("jellyfish");
await des.monster("jellyfish");
await des.monster("jellyfish");
await des.monster(";");
await des.monster(";");
await des.monster(";");
await des.monster(";");
// These guys feel like home here
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
await des.monster({ id: "water elemental", peaceful: 0 });
return des.finalize_level();
}
|