ddjerqq / ddjerqq/Astro

Feature: Item, ItemType, ItemRariy, ItemQuality classes

Open
#6 2 comments 0 reactions 1 assignee Claimed by @gogodze View on GitHub
importance - 1 layer - 0 - Domain size - 2L type - feature
Dominant language
C#
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We need an entity for items, item types, and a valueobject enum for the quality.

# Entity/Item
- ItemId Id
- ItemTypeId TypeId
- ItemType Type
- ItemQuality Quality
- UserId OwnerId
- User Owner

# Entity/ItemType
- ItemTypeId Id
- string Name
- string? Description
- float QualityMin // the minimum quality this item appears in
- float QualityMax // the maximum quality this item can have
- bool StatTrackAvailable // whether or not stat track is available
- string ImageUrl
## methods
// creates a new item, who belongs to the user specified.
// the rarity and the quality are randomly generated.
// only 25% of items are stat track
- Item NewItem(User owner);

# ValueObject/ItemQuality
- float Value
- bool IsStatTrack

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.