Files
Code_of_Conquest/api/app/data/loot_tables.yaml
2025-11-24 23:10:55 -06:00

282 lines
3.6 KiB
YAML

# Loot Tables
# Defines what items can be found when searching in different locations.
# Items are referenced by their template key from generic_items.yaml.
#
# Rarity tiers determine selection based on check margin:
# - common: margin < 5 (just barely passed)
# - uncommon: margin 5-9 (solid success)
# - rare: margin >= 10 (excellent roll)
#
# Gold ranges are also determined by margin.
# Default loot for unspecified locations
default:
common:
- torch
- flint
- rope
- rations
uncommon:
- lantern
- crowbar
- bandage
- herbs
rare:
- compass
- map
- antidote
gold:
min: 1
max: 10
bonus_per_margin: 1 # Extra gold per margin point
# Forest/wilderness locations
forest:
common:
- herbs
- apple
- flint
- rope
uncommon:
- rations
- antidote
- bandage
- water
rare:
- map
- compass
- grappling_hook
gold:
min: 0
max: 5
bonus_per_margin: 0
# Cave/dungeon locations
cave:
common:
- torch
- flint
- rope
- pitons
uncommon:
- lantern
- crowbar
- grappling_hook
- bandage
rare:
- map
- compass
- key
gold:
min: 5
max: 25
bonus_per_margin: 2
dungeon:
common:
- torch
- key
- rope
- bandage
uncommon:
- lantern
- crowbar
- antidote
- map
rare:
- compass
- grappling_hook
- mirror
gold:
min: 10
max: 50
bonus_per_margin: 3
# Town/city locations
town:
common:
- bread
- apple
- ale
- candle
uncommon:
- cheese
- wine
- rations
- parchment
rare:
- map
- ink
- quill
gold:
min: 2
max: 15
bonus_per_margin: 1
tavern:
common:
- bread
- cheese
- ale
- candle
uncommon:
- wine
- rations
- water
- key
rare:
- map
- pouch
- mirror
gold:
min: 3
max: 20
bonus_per_margin: 2
# Ruins/ancient locations
ruins:
common:
- torch
- parchment
- vial
- rope
uncommon:
- ink
- quill
- mirror
- key
rare:
- map
- compass
- antidote
gold:
min: 10
max: 40
bonus_per_margin: 3
# Camp/outdoor locations
camp:
common:
- rations
- water
- bedroll
- flint
uncommon:
- rope
- torch
- bandage
- sack
rare:
- lantern
- backpack
- map
gold:
min: 1
max: 10
bonus_per_margin: 1
# Merchant/shop locations
shop:
common:
- pouch
- sack
- candle
- parchment
uncommon:
- ink
- quill
- vial
- key
rare:
- map
- mirror
- compass
gold:
min: 5
max: 30
bonus_per_margin: 2
# Road/path locations
road:
common:
- rope
- flint
- water
- bread
uncommon:
- bandage
- rations
- torch
- boots
rare:
- map
- compass
- cloak
gold:
min: 1
max: 15
bonus_per_margin: 1
# Castle/fortress locations
castle:
common:
- torch
- candle
- key
- parchment
uncommon:
- lantern
- ink
- quill
- mirror
rare:
- map
- compass
- crowbar
gold:
min: 15
max: 60
bonus_per_margin: 4
# Dock/port locations
dock:
common:
- rope
- water
- rations
- sack
uncommon:
- grappling_hook
- lantern
- map
- flint
rare:
- compass
- backpack
- cloak
gold:
min: 5
max: 25
bonus_per_margin: 2
# Mine locations
mine:
common:
- torch
- pitons
- rope
- hammer
uncommon:
- lantern
- crowbar
- flint
- bandage
rare:
- grappling_hook
- map
- key
gold:
min: 15
max: 50
bonus_per_margin: 3