Skip to content

feat(loot): generated chest first-open loot injection#5

Merged
ROOTCAUSED merged 1 commit into
mainfrom
feat/loot-chest-injection
Feb 18, 2026
Merged

feat(loot): generated chest first-open loot injection#5
ROOTCAUSED merged 1 commit into
mainfrom
feat/loot-chest-injection

Conversation

@JARVIS-AT-ROOTCAUSED

@JARVIS-AT-ROOTCAUSED JARVIS-AT-ROOTCAUSED commented Feb 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • implement LootManager as an event listener for chest first-open injection
  • implement LootChest helper backed by PersistentDataContainer marker to ensure one-time injection
  • inject random Tome/Artefact rewards into generated chest inventories based on configurable chances
  • wire loot module enable + listener registration in SupremeCore
  • add Loot/config.yml with chance and gating controls

Behavior

  • interception occurs on InventoryOpenEvent for chest inventories
  • only processes lootable chests and (by default) requires a loot table to target generated world chests
  • each eligible chest is marked as injected to avoid repeat rolls

Config

Loot/config.yml

  • injection.tome-chance
  • injection.artefact-chance
  • injection.max-rolls
  • injection.require-loot-table

@ROOTCAUSED ROOTCAUSED merged commit 1299118 into main Feb 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants