Loot tables

This commit is contained in:
2026-10-08 00:54:45 -03:00
parent 757ee74bc7
commit ec2b53c02a
45 changed files with 1733 additions and 150 deletions
+2
View File
@@ -84,6 +84,8 @@ export interface EntityLevel {
entity_event(entity: Entity, event: EntityEvent): void;
// it died, after dropping its things
on_death(entity: Entity, source: DamageSource): void;
// what it drops when it dies, from its type's loot table
entity_loot(entity: Entity, source: DamageSource): ItemStack[];
}
// an entity as level.json keeps it, see Entity.save. each kind adds its own fields