Commit Graph

5 Commits

Author SHA1 Message Date
Linus Probert cc375bba4e Implements control over lua random numbers 2019-02-22 00:09:31 +01:00
Linus Probert 35d2e2ee12 Fixes infinite loop issue in trapgen
Vertical coridoors before level 4 wouldn't leave enough space to place
4 traps since there is only 10 rows of tiles eligible for a trap and
every trap ocupies 3 rows and requires at least 2 spare rows. This could
cause an infinite loop situation.

* Also fixes linux build warnings and other stuff.
2018-09-02 06:04:24 +02:00
Linus Probert c390c024f6 Fixes #40, Prevent adjecant traps before lvl 4
Made the simplest solution possible here. An A* start algo to check that
we didn't block paths seemed overkill.
2018-08-21 12:56:02 +02:00
Linus Probert 62d1bbd49d Completes #31 Adds chests to game 2018-08-10 20:09:56 +02:00
Linus Probert ffde0793e5 Fixes: #4 Room stuff: Traps
- Adds traps
- Adds lua hooks for traps
- Fixes level exit in pit bug
2018-08-06 00:28:23 +02:00