This commit is contained in:
Bastian Wagner
2026-08-22 16:41:47 +02:00
parent dfa62fd152
commit 081c9f83f9
137 changed files with 11594 additions and 1302 deletions

View File

@@ -9,6 +9,7 @@ import {
import { EquipmentSlot } from '../equipment-slot.enum';
import { ItemRarity } from '../item-rarity.enum';
import { ItemType } from '../item-type.enum';
import { LootCategory } from '../loot-category.enum';
@Entity({ name: 'item_definitions' })
@Index('IDX_item_definitions_key', ['key'], { unique: true })
@@ -50,6 +51,18 @@ export class ItemDefinition {
})
rarity!: ItemRarity;
// Which carrying bucket this counts against (Playable Slice 0.7.5 §4).
// Null for everything that is not a trade good -- equipment and consumables
// are deliberately unaffected by bag capacity (spec §8).
@Column({
name: 'loot_category',
type: 'enum',
enum: LootCategory,
enumName: 'loot_category_enum',
nullable: true,
})
lootCategory!: LootCategory | null;
@Column({ name: 'tier', type: 'integer' })
tier!: number;