struct Item {
#[key]
id: u64,
creator_id: u64,
name: felt252,
description: ByteArray,
category: Category,
tier: Tier,
elemental: Elemental,
modifier: Modifier,
onchain_art: ByteArray,
offchain_art: ByteArray,
image_prompt: ByteArray,
}
enum Category {
Weapon,
Armor,
Special,
}
enum Tier {
Poor,
Common,
Uncommon,
Rare,
Epic,
Legendary,
Mythical,
Divine,
}
enum Elemental {
None,
Earth,
Fire,
Water,
}
struct Modifier {
modifier_type: ModifierType,
amount: u8,
stat: Stat,
is_percentage: bool,
}
enum ModifierType {
Attack: u8,
Defense: u8,
Slot0: u8,
Slot1: u8,
Slot2: u8,
Slot3: u8,
Slot4: u8,
Slot5: u8,
Slot6: u8,
Slot7: u8,
Stat: (Stat, u8),
}
enum Stat {
Strength,
Dexterity,
Vitality,
Intelligence,
Wisdom,
Charisma,
Luck,
}
depends on Creator Component
depends on Creator Component