diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-09 21:13:50 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-09 21:13:50 -0500 |
| commit | 4fa6d40b91d73dd283d0369d06f5c2320b835be4 (patch) | |
| tree | 6815a5303a8b82e3e0713a14b521280898a33b6c /dungeon/src | |
| parent | dungeon: always use seeded rand, other minor refactoring (diff) | |
| download | DungeonCrawl-4fa6d40b91d73dd283d0369d06f5c2320b835be4.tar.gz DungeonCrawl-4fa6d40b91d73dd283d0369d06f5c2320b835be4.tar.bz2 DungeonCrawl-4fa6d40b91d73dd283d0369d06f5c2320b835be4.zip | |
oops
Diffstat (limited to 'dungeon/src')
| -rw-r--r-- | dungeon/src/entity.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dungeon/src/entity.rs b/dungeon/src/entity.rs index 931947c..c84fc42 100644 --- a/dungeon/src/entity.rs +++ b/dungeon/src/entity.rs @@ -76,7 +76,7 @@ impl EnemyMoveState { let mut loop_index = 0; loop { let dir = Direction::random(floor.rand()); - let dist = floor.rand().random_range(MIN_ROAM_DIST..=MIN_ROAM_DIST); + let dist = floor.rand().random_range(MIN_ROAM_DIST..=MAX_ROAM_DIST); if let Some(p) = starting_pos.step_by(dir, dist) { if !floor.get(p).is_wall() { |