mr:sewers_level
Differences
This shows you the differences between two versions of the page.
| mr:sewers_level [2026/07/09 13:42] – wiki: Add missing mr: namespace pages for mob system, pet mechanic, rotten food, and sewers level Qwen Assistant | mr:sewers_level [2026/07/09 13:43] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Sewers Level - Code References ====== | ||
| + | **Sewers** is the first level of Remixed Dungeon (depths 1-5). It serves as the tutorial area and introduces basic game mechanics. | ||
| + | |||
| + | ===== Entity Type ===== | ||
| + | Level/ | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | **Level Generation**: | ||
| + | * Package: `com.watabou.pixeldungeon.levels` | ||
| + | * Extends: `Level` | ||
| + | * Features: Water pools, grass, rat/snail spawns, hidden doors | ||
| + | |||
| + | **Level Transition**: | ||
| + | * Line 308: `switchLevel()` - Level transitions | ||
| + | * Depths 1-5: Sewers | ||
| + | * Depth 5: Boss level (Goo) | ||
| + | |||
| + | **Level Generator**: | ||
| + | * Sewer-specific room templates | ||
| + | * Water placement algorithm | ||
| + | * Secret door generation | ||
| + | |||
| + | **Boss Level**: [[https:// | ||
| + | * Depth 5 | ||
| + | * Goo boss arena | ||
| + | * Special layout | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | **Bestiary Spawns**: [[https:// | ||
| + | <code json> | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | **Level Objects**: `assets/ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English (values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | Russian (values-ru/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | * **Sewer Level Events**: `scripts/ | ||
| + | * **Rat King Quest**: `scripts/ | ||
| + | * **Hidden Rooms**: `scripts/ | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | ===== Game Mechanics ===== | ||
| + | * **Depth Range**: 1-5 (5 is boss level) | ||
| + | * **Theme**: Damp stone, water pools, grass patches | ||
| + | * **Hazards**: | ||
| + | * **Special Features**: | ||
| + | * Rat King quest (depth 3-4) | ||
| + | * Hidden rooms behind secret doors | ||
| + | * Pedestal puzzles for rewards | ||
| + | * Wells for health restoration | ||
| + | * **Progression**: | ||
| + | * Depths 1-2: Rats, Snails (easy) | ||
| + | * Depths 3-4: Crabs, Deep Snails, Gnolls (medium) | ||
| + | * Depth 5: Goo Boss (required to proceed) | ||
| + | * **Shortcuts**: | ||
| + | * Sewer shortcut to Prison (unlocked after Goo) | ||
| + | * Backtracking for missed items | ||
| + | |||
| + | ===== Mob Spawn Weights (from Bestiary.json) ===== | ||
| + | | Depth | Rat | Snail | Deep Snail | Crab | Gnoll | Goo | | ||
| + | |-------|-----|-------|------------|------|-------|-----| | ||
| + | | 1 | 1.0 | 1.0 | - | - | - | - | | ||
| + | | 2 | 1.0 | 1.0 | 0.03 | - | - | - | | ||
| + | | 3 | 1.0 | 0.5 | 0.1 | 0.3 | - | - | | ||
| + | | 4 | 0.8 | - | 0.2 | 0.5 | 0.05 | - | | ||
| + | | 5 | - | - | - | - | - | 1.0 | | ||
| + | |||
| + | ===== Level Objects ===== | ||
| + | * **Water Pools** - Terrain feature, slows movement | ||
| + | * **Grass Patches** - Tall grass, concealment | ||
| + | * **Pedestals** - Item placement triggers | ||
| + | * **Statues** - Decoration, sometimes interactive | ||
| + | * **Wells** - Health restoration | ||
| + | * **Barricades** - Destructible cover | ||
| + | * **Secret Doors** - Hidden passages | ||
| + | |||
| + | ===== Code Fragments ===== | ||
| + | SewerLevel generation: | ||
| + | <code java> | ||
| + | // SewerLevel.java | ||
| + | public class SewerLevel extends Level { | ||
| + | @Override | ||
| + | protected void createMap() { | ||
| + | // Water pool generation | ||
| + | // Grass patch placement | ||
| + | // Standard room/ | ||
| + | } | ||
| + | | ||
| + | @Override | ||
| + | public String tilesTex() { | ||
| + | return " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Boss level check: | ||
| + | <code java> | ||
| + | // Dungeon.java | ||
| + | public static boolean isBossLevel() { | ||
| + | return Dungeon.depth % 5 == 0; // 5, 10, 15, 20, 25 | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | {{tag> rpd levels sewers tutorial depth1-5}} | ||
mr/sewers_level.txt · Last modified: by 127.0.0.1
