20 Commits

Author SHA1 Message Date
Aaron Suen
34907db496 Fix deleted wrong file 2021-12-16 23:05:03 -05:00
Aaron Suen
65dc1fe58f Start working on some hint reform
Got through a bunch of mods, up next is optics.

- Try to use crafting recipes rather than resources as
  the criteria for completing a hint.
- It's okay to use simple item observation for specific
  cases of transient things like pliant concrete.
- It's also okay to still use simple observations for the
  eligibility checks.
- Simple observation is also okay for naturally occuring
  e.g. decay processes, like wilting flowers, as opposed
  to crafts that need to be completed.
2021-12-16 22:31:50 -05:00
Aaron Suen
47d0b68dba Unify dungeon API RNG
Avoid having to have each dungeon generation method manage its
own RNG, which should save a lot of time on RNG seeding.
2021-09-27 08:04:09 -04:00
Aaron Suen
b5eb58d2bb Dungeon stonework API, restrict a few more loot items
Add a generic method to get stonework materials for dungeon
brick generation so we can extend dungeon bricking while keeping
the same pattern of mixed cobble/bricks/bonded.
2021-09-27 06:59:14 -04:00
Aaron Suen
f3f60ff507 Depth-restrict dungeon loot
Some loot does not appear above certain depths, to restrict
late-game content to players who are more likely to have actually
achieved that level, and not spoil very-late-game content very
early in surface-accessible dungeons.
2021-09-27 06:51:31 -04:00
Aaron Suen
02e0dcc8ea Ensure standard dungeon gen priorities 2021-09-06 21:07:05 -04:00
Aaron Suen
32e33b78e3 Nerf loot table, buff loot rate
- Some loot items were OP, some were out
  of proportion for the target tech level.
- Add more loot to compensate and to make
  dungeons not so boring.
2021-07-01 21:58:45 -04:00
Aaron Suen
1f8f151e76 loot is a core mod too 2021-03-08 21:43:47 -05:00
Aaron Suen
a24cce594b Fix totes in loot table 2021-03-05 20:35:36 -05:00
Aaron Suen
759bca9377 Prevent loot placement on stairs
This interferes with dungeon mobility, and
especially when shelves are placed on
stairs this makes it less believable that
someone could have once lived here and
left it this way.
2021-03-04 23:36:56 -05:00
Aaron Suen
4c39a6b51f Remove debugging chatter 2021-03-04 23:13:15 -05:00
Aaron Suen
ad6b19a7cc Deeper dungeons have denser loot 2021-03-04 23:05:39 -05:00
Aaron Suen
f18e665ca7 Support loot in high ceiling deep dungeons 2021-03-04 22:56:52 -05:00
Aaron Suen
54a1175e3e Dungeon loot shelf towers 2021-03-04 22:46:28 -05:00
Aaron Suen
d2f7e3761a Dungeon loot variation
Set quantities and tool wears for treasures
2021-03-04 22:26:30 -05:00
Aaron Suen
498aace27b Initial proof-of-concept dungeon loot
Using the new dungeon API, picking loot fairly from
the loot table list and just leaving one lying on the
ground.
2021-03-04 22:14:27 -05:00
Aaron Suen
b7bc1ced5c Filter mod content out of loot tables
We can only depend on items that are part of the
core game; mods will need to register loot
themselves.
2021-03-04 20:43:53 -05:00
Aaron Suen
d1d43178a3 Generate loot table data 2021-03-04 20:27:53 -05:00
Aaron Suen
04afbe2c8d Fix unlabeled globalstep 2020-06-28 21:07:07 -04:00
Aaron Suen
4006f17aa8 Proof-of-concept dungeon loot.
- Identify candidate spots to place loot.
- Store loot placement spots for later handling.
  This will involve manipulating metadata and other
  things that are not necessarily safe to do while
  other mapgen_shared may run after us.
- Process the loot queue on tick.

Things left to do:
- Define loot tables and rarity values.
- Identify storeboxes and other storage mechanisms.
- Generate random stacks.
2020-06-28 21:06:00 -04:00