mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-25 20:55:55 -04:00
29 lines
975 B
Go
29 lines
975 B
Go
package d2records
|
|
|
|
// Runewords stores all of the RuneRecords
|
|
type Runewords map[string]*RuneRecord
|
|
|
|
// RuneRecord is a representation of a single row of runes.txt. It defines
|
|
// runewords available in the game.
|
|
type RuneRecord struct {
|
|
Name string
|
|
RuneName string // More of a note - the actual name should be read from the TBL files.
|
|
Complete bool // An enabled/disabled flag. Only "Complete" runewords work in game.
|
|
Server bool // Marks a runeword as only available on ladder, not single player or tcp/ip.
|
|
|
|
// The item types for includsion/exclusion for this runeword record
|
|
ItemTypes struct {
|
|
Include []string
|
|
Exclude []string
|
|
}
|
|
|
|
// Runes slice of ID pointers from Misc.txt, controls what runes are
|
|
// required to make the rune word and in what order they are to be socketed.
|
|
Runes []string
|
|
|
|
Properties []*RunewordProperty
|
|
}
|
|
|
|
// RunewordProperty is a representation of a stat possessed by this runeword
|
|
type RunewordProperty = PropertyDescriptor
|