14 Commits

Author SHA1 Message Date
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