fetch static data from txt files and properly get all the item stats... maybe?
This commit is contained in:
@@ -11,6 +11,7 @@ type Description struct {
|
||||
InventoryHeight int
|
||||
MinDefense int
|
||||
MaxDefense int
|
||||
Type string
|
||||
}
|
||||
|
||||
func (d Description) Tier() Tier {
|
||||
@@ -24,3 +25,7 @@ func (d Description) Tier() Tier {
|
||||
|
||||
return TierNormal
|
||||
}
|
||||
|
||||
func (d Description) GetType() Type {
|
||||
return ItemTypes[d.Type]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user