fetch static data from txt files and properly get all the item stats... maybe?

This commit is contained in:
Héctor Giménez
2024-05-08 21:31:40 +09:00
parent c03c40d385
commit aa2a1aaeb3
34 changed files with 3539 additions and 96663 deletions

View File

@@ -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]
}