diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2017-10-31 12:54:34 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2017-10-31 12:54:53 -0300 |
| commit | c5cda1252f8b3636a5813f3c20a306438d81e112 (patch) | |
| tree | e409250d9b34f342b0fd023a63cafac8c39911d6 /RGens/data/sample-grammars/diablo-ii | |
| parent | 2aa0fa1d83411855d2d3388809f1a0485513128f (diff) | |
Update sample grammars
Diffstat (limited to 'RGens/data/sample-grammars/diablo-ii')
| -rwxr-xr-x | RGens/data/sample-grammars/diablo-ii/diabloii.gram | 14 | ||||
| -rwxr-xr-x | RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram | 46 |
2 files changed, 36 insertions, 24 deletions
diff --git a/RGens/data/sample-grammars/diablo-ii/diabloii.gram b/RGens/data/sample-grammars/diablo-ii/diabloii.gram index ef92817..f3ffbd7 100755 --- a/RGens/data/sample-grammars/diablo-ii/diabloii.gram +++ b/RGens/data/sample-grammars/diablo-ii/diabloii.gram @@ -1,13 +1,17 @@ [base-treasures] [base-treasure] - [base-treasure] as well as [base-treasure] - [base-treasure] or [base-treasure] - [base-treasure] , and [base-treasure] as well as [base-treasure] - [base-treasure] , [base-treasure] or [base-treasure] + [quote-treasure] as well as [quote-treasure] + [quote-treasure] or [quote-treasure] + [quote-treasure] , and [quote-treasure] as well as [quote-treasure] + [quote-treasure] , [quote-treasure] or [quote-treasure] pragma initial-rule [base-treasures] +[quote-treasure] ( [base-treasure] ) + +pragma despace-rule [quote-treasure] + [base-treasure] a(n) [item] - [non-item] + [non-item] [non-item] [money] [money] diff --git a/RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram b/RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram index ce84d5d..a2eb86a 100755 --- a/RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram +++ b/RGens/data/sample-grammars/diablo-ii/diabloiiitems.gram @@ -66,9 +66,9 @@ pragma prefix-with [accoutrements] [acc-kind] [shields] buckler shield - [shield-size] shield - [shield-type] shield - [shield-size] [shield-type] shield + +pragma prefix-with [shields] [shield-type] +pragma prefix-with [shields] [shield-size] [shield-size] small large @@ -91,14 +91,14 @@ pragma prefix-with [accoutrements] [acc-kind] falchion claymore +pragma prefix-with [swords] [sword-kind] + [sword-kind] long broad short bastard two-handed -pragma prefix-with [swords] [sword-kind] - [clubs] club spiked club mace @@ -121,25 +121,29 @@ pragma prefix-with [swords] [sword-kind] halberd [axes] axe - [axe-size] axe - [axe-type] axe - [axe-size] [axe-type] axe + +pragma prefix-with [axes] [axe-type] +pragma prefix-with [axes] [axe-size] [axe-size] small large giant [axe-type] throwing - broad - battle - great + broad + battle + great + hand -[bows] arrow ( [diablo-amount] count) +[bows] arrow [quote-count] bow [bow-size] bow [bow-type] bow [bow-size] [bow-type] bow +pragma prefix-with [bows] [bow-type] +pragma prefix-with [bows] [bow-size] + [bow-size] short long @@ -148,7 +152,7 @@ pragma prefix-with [swords] [sword-kind] battle war -[crossbows] bolt ( [diablo-amount] count) +[crossbows] bolt [quote-count] crossbow [crossbow-type] crossbow @@ -157,16 +161,18 @@ pragma prefix-with [swords] [sword-kind] heavy [wands] wand - [wand-type] wand torch scepter - [wand-type] scepter + +pragma prefix-with [wands] [wand-type] [wand-type] bone yew [staves] staff +pragma prefix-with [staves] [staff-type] + [staff-type] short long gnarled @@ -174,8 +180,6 @@ pragma prefix-with [swords] [sword-kind] battle war -pragma prefix-with [staves] [staff-type] - [accessories] charm ring flag @@ -184,6 +188,8 @@ pragma prefix-with [staves] [staff-type] [gems] [gem-type] +pragma prefix-with [gems] [gem-quality] + [gem-quality] chipped flawed flawless @@ -196,8 +202,10 @@ pragma prefix-with [staves] [staff-type] sapphire topaz -pragma prefix-with [gems] [gem-quality] - [inscriptions] scroll rune book + +[quote-count] ( [diablo-amount] count ) + +pragma despace-rule [quote-count] |
