docs
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user