2020-09-19 14:33:40 -04:00
|
|
|
package d2records
|
|
|
|
|
2020-12-18 01:40:54 -05:00
|
|
|
// Runewords stores all of the RuneRecords
|
|
|
|
type Runewords map[string]*RuneRecord
|
2020-09-19 14:33:40 -04:00
|
|
|
|
2020-12-18 01:40:54 -05:00
|
|
|
// RuneRecord is a representation of a single row of runes.txt. It defines
|
2020-09-19 14:33:40 -04:00
|
|
|
// runewords available in the game.
|
2020-12-18 01:40:54 -05:00
|
|
|
type RuneRecord struct {
|
2020-09-19 14:33:40 -04:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2020-10-22 02:41:21 -04:00
|
|
|
// RunewordProperty is a representation of a stat possessed by this runeword
|
2020-10-26 03:38:18 -04:00
|
|
|
type RunewordProperty = PropertyDescriptor
|