summaryrefslogtreecommitdiff
path: root/data/sample-grammars/diablo-ii/diabloiiitems.gram
blob: 699752172f0f91646f9b9d367557ab868fae67bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
[d2-item-type] [armor]
	[headgear]
	[accoutrements]
	[shields]
	[knives]
	[swords]
	[clubs]
	[spears]
	[polearms]
	[axes]
	[bows]
	[crossbows]
	[wands]
	[staves]
	[accessories]
	[gems]
	[inscriptions]
	[perishables]
	[ds-items]
	[ds-items]
	[ds-items]

<<<<<<< HEAD
=======
[ds-items] [ds-gem]
	[ds-rune]
	[ds-armor]

>>>>>>> 66f5a43dee94657a56141c093488eccbf64c7ae1
pragma export-rule [d2-item-type]

[armor] [light-armor]
	[medium-armor]
	[heavy-armor]

pragma prefix-with [armor] [armor-prefix]

[light-armor] cape
	rags
	cloak
	robe

[medium-armor] quilted armor
	leather armor
	studded leather armor
	ringmail
	scalemail
	chainmail

[heavy-armor] breastplate
	plate
	splint mail
	platemail
	field plate

[armor-prefix] light
	heavy
	hard
	reinforced
	full
	Gothic
	ancient

[headgear] cap
	[helm]
	[mask]
	crown

pragma prefix-with [headgear] [headgear-kind]

[helm] helm
	helmet

[mask] mask
	masque

[headgear-kind] full
	great
	bone

[accoutrements] gloves
	sash
	boots
	bracers
	belt
	gauntlets
	girdle

pragma prefix-with [accoutrements] [acc-kind]

[acc-kind] leather
	chain
	plate

[shields] buckler
	shield

pragma prefix-with [shields] [shield-type]
pragma prefix-with [shields] [shield-size]

[shield-size] small
	large
	huge

[shield-type] kite
	spiked
	bone
	tower
	Gothic

[knives] dagger
	knife
	kris

pragma prefix-with [knives] throwing

[swords] sword
	sabre
	blade
	scimitar
	falchion
	claymore

pragma prefix-with [swords] [sword-kind]

[sword-kind] long
	broad
	short
	bastard
	two-handed

[clubs] club
	mace
	morning star
	flail
	maul

pragma prefix-with [clubs] [club-prefix]

[club-prefix] spiked
	war

[spears] javelin
	spear
	pilum
	glaive
	trident
	pike
	brandistock

[polearms] bardiche
	scythe
	poleaxe
	halberd

[axes] axe
	hatchet

pragma prefix-with [axes] [axe-type]
pragma prefix-with [axes] [axe-size]

[axe-size] small
	large
	giant

[axe-type] throwing
	broad
	battle
	great
	hand

[bows]  [act-arrow] [quote-count]
	[act-bow]
	[act-bow]
	[act-bow]
	[act-bow]

[act-arrow] arrow
	[gem-type] -tipped arrow

[act-bow] bow

pragma prefix-with [act-bow] [bow-type]
pragma prefix-with [act-bow] [bow-size]

[bow-size] short
	long

[bow-type] hunter’s
	composite
	battle
	war

[crossbows] [act-bolt] [quote-count]
	[act-crossbow]
	[act-crossbow]
	[act-crossbow]
	[act-crossbow]

[act-bolt] bolt
	[gem-type] -tipped bolt

[act-crossbow] crossbow

pragma prefix-with [act-crossbow] [crossbow-type]
pragma prefix-with [act-crossbow] [crossbow-weight]

[crossbow-type] repeating
	double

[crossbow-weight] light
	heavy
	hand

[wands] wand
	torch
	scepter

pragma prefix-with [wands] [wand-type]

[wand-type] bone
	[tree]

[staves] staff

pragma prefix-with [staves] [staff-type]
pragma prefix-with [staves] [tree]
pragma prefix-with [staves] [staff-length]

[staff-type] gnarled
	composite
	battle
	war

[staff-length] short
	long

[accessories] charm
	ring
	flag
	orb
	amulet

[gems] [gem-type]

pragma prefix-with [gems] [gem-size]
pragma prefix-with [gems] [gem-quality]

[gem-quality] chipped
	      flawed
	      flawless
	      perfect

[gem-size] tiny
	small
	large
	huge

[gem-type] amethyst
	   diamond
	   emerald
	   ruby
	   sapphire
	   topaz

[inscriptions] scroll
	       rune
	       book

[quote-count] ( [diablo-amount] count )

pragma despace-rule [quote-count]