diff options
Diffstat (limited to 'data/sample-grammars/diablo-ii')
| -rwxr-xr-x | data/sample-grammars/diablo-ii/diabloii.gram | 73 | ||||
| -rwxr-xr-x | data/sample-grammars/diablo-ii/diabloiiitems.gram | 272 | ||||
| -rwxr-xr-x | data/sample-grammars/diablo-ii/diabloiiperish.gram | 135 | ||||
| -rwxr-xr-x | data/sample-grammars/diablo-ii/diabloiiprefixes.gram | 185 | ||||
| -rwxr-xr-x | data/sample-grammars/diablo-ii/diabloiisuffixes.gram | 230 |
5 files changed, 895 insertions, 0 deletions
diff --git a/data/sample-grammars/diablo-ii/diabloii.gram b/data/sample-grammars/diablo-ii/diabloii.gram new file mode 100755 index 0000000..edfe3b4 --- /dev/null +++ b/data/sample-grammars/diablo-ii/diabloii.gram @@ -0,0 +1,73 @@ +[base-treasures] [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 [item] + a [item] + a [item] + [non-item] + +[non-item] [money] + [money] + [money] + [money] + nothing + +[money] [diablo-amount] [money-type] + +[diablo-amount] 1 + 5 + 10 + 20 + 50 + 100 + 200 + 500 + 1000 + +pragma export-rule [diablo-amount] + +[money-type] coins + +pragma prefix-with [money-type] [metal-type] + +[metal-type] copper + silver + gold + platinum + +<<<<<<< HEAD +[item] [item-types] + [item-types] + [item-types] + [item-types] + [item-types] [d2-suffix] + [item-types] [d2-suffix] + [d2-prefix] [item-types] + [d2-prefix] [item-types] + [d2-prefix] [item-types] [d2-suffix] + +[item-types] [d2-item-type] + [d2-item-type] + [ds-items] + [^item] + +[ds-items] [ds-gem] + [ds-rune] + [ds-armor] +======= +[item] [d2-item-type] + [d2-item-type] of [suffix] + [d2-item-type] of [suffix] and [suffix] + +pragma prefix-with [item] [prefix] +pragma prefix-with [item] [prefix] +>>>>>>> 66f5a43dee94657a56141c093488eccbf64c7ae1 diff --git a/data/sample-grammars/diablo-ii/diabloiiitems.gram b/data/sample-grammars/diablo-ii/diabloiiitems.gram new file mode 100755 index 0000000..6997521 --- /dev/null +++ b/data/sample-grammars/diablo-ii/diabloiiitems.gram @@ -0,0 +1,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] diff --git a/data/sample-grammars/diablo-ii/diabloiiperish.gram b/data/sample-grammars/diablo-ii/diabloiiperish.gram new file mode 100755 index 0000000..f090292 --- /dev/null +++ b/data/sample-grammars/diablo-ii/diabloiiperish.gram @@ -0,0 +1,135 @@ +[perishables] [perishable-type] of [perishable-effect] + [perishable-effect] [perishable-type] + [bodypart] of [perishable-effect] + +pragma export-rule [perishables] + +[bodypart] heart + brain + jawbone + eye + ear + horn + tail + fang + quill + scalp + spleen + soul + bone + skull + blood + ribcage +<<<<<<< HEAD + viscera + flesh + claw +======= +>>>>>>> 66f5a43dee94657a56141c093488eccbf64c7ae1 + +[perishable-type] potion + oil + herb + elixir + resin + flask + spice + salve + +pragma prefix-with [perishable-type] [bodypart] + +[perishable-degree] light + medium + full + +[perishable-effect] [perishable-effect-1] + [perishable-effect-1] + [perishable-effect-1] + [perishable-effect-1] + [perishable-degree] [perishable-effect-1] + +[perishable-effect-1] [restore-effect] + detox + restoration + flaming + explosive + fulminating + [gas-type] gas + acidity + energizing + strengthening + empowering + artful + skillful + adroit + sturdiness + hardy + robust + sage + shrewd + vivid + indigo + cerulean + russet + vermilion + crackling + forked + swart + atramentous + vital + enduring + urgent + fleet + brisk + swift + dazzling + fascinating + bright + solar + omniscience + mystical + arcane + strength + dexterity + vitality + intelligence + chi + spectralness + fire + ice + lightning + magic + psionic + poison + energy + accuracy + damage + defense + life + power + accuracy + precision + mastery + sharpness + pain + savagery + death + hardening + imperviousness + immunity + skill + fortitude + blacksmith’s + blacksmithing + permanence + enchantment + enchanting + +[restore-effect] healing + mana + rejuvenation + chi + +[gas-type] rancid + choking + strangling diff --git a/data/sample-grammars/diablo-ii/diabloiiprefixes.gram b/data/sample-grammars/diablo-ii/diabloiiprefixes.gram new file mode 100755 index 0000000..c8ffd83 --- /dev/null +++ b/data/sample-grammars/diablo-ii/diabloiiprefixes.gram @@ -0,0 +1,185 @@ +[d2-prefix] [d2-prefix-part] + [d2-prefix-part] + [d2-prefix-chain] + +pragma export-rule [d2-prefix] + +<<<<<<< HEAD +[d2-prefix-chain] [d2-prefix-part] [d2-prefix-part] + [d2-prefix-part] [d2-prefix-part] + [d2-prefix-part] and [d2-prefix-part] + [d2-prefix-part] and [d2-prefix-part] + [d2-prefix-part] [d2-prefix-part] [d2-prefix-part] + +======= +>>>>>>> 66f5a43dee94657a56141c093488eccbf64c7ae1 +[d2-prefix-part] [armor-class] + [saving-throw] + [foe-reaction] + [skill-improve] + [cursed] + [visibility] + [castability] + [magical-effect] + [personal-stat] + [to-hit] + [extra-damage] + [to-hit-damage] + [item-charges] + +[armor-class] sturdy + fine + strong + grand + valiant + glorious + blessed + awesome + saintly + holy + godly + +[saving-throw] tawny + azure + crimson + ocher + pearl + beryl + coal + jasmine + lapis + burgundy + tangerine + ivory + jade + jet + pyrite + cobalt + garnet + coral + crystal + viridian + ebony + crysolite + sapphire + ruby + amber + diamond + emerald + obsidian + topaz + prismatic + bond + +[foe-reaction] subduing + wearying + phasing + depleting + howling + chaotic + subjugating + fatiguing + exhausting + overwhelming + +[skill-improve] fletcher’s + slayer’s + summoner’s + monk’s + angel’s + archer’s + berserker’s + necromancer’s + priest’s + arch-angel’s + +[cursed] rusted + vulnerable + glass + hyena’s + frog’s + pitch + brass + tin + crystalline + weak + bent + useless + dull + clumsy + +[visibility] glowing + oracular + unseen + hidden + veiled + stalking + +[castability] lizard’s + spider’s + raven’s + snake’s + serpent’s + drake’s + dragon’s + worm’s + hydra’s + devious + fortified + vulpine + +[magical-effect] extending + chrono + augmenting + catalyzing + +[personal-stat] blue + red + orange + white + black + tough + swift + brilliant + mighty + vibrant + forceful + resilient + silver + muscular + healthy + +[to-hit] bronze + iron + silver + steel + gold + platinum + mithril + meteoric + weird + +[extra-damage] jagged + deadly + vicious + heavy + brutal + massive + savage + ruthless + merciless + +[to-hit-damage] sharp + fine + warrior’s + soldier’s + knight’s + master’s + doppelganger’s + lord’s + champion’s + king’s + +[item-charges] plentiful + jester’s + bountiful diff --git a/data/sample-grammars/diablo-ii/diabloiisuffixes.gram b/data/sample-grammars/diablo-ii/diabloiisuffixes.gram new file mode 100755 index 0000000..f6deea0 --- /dev/null +++ b/data/sample-grammars/diablo-ii/diabloiisuffixes.gram @@ -0,0 +1,230 @@ +[d2-suffix] of [suffix-part] + of [suffix-part] + of [suffix-chain] + +[suffix-chain] [suffix-part] and [suffix-part] + [suffix-part] and [suffix-part] + [suffix-part] and of [suffix-part] + [suffix-part] and of [suffix-part] + [suffix-part] , [suffix-part] and [suffix-part] + +pragma export-rule [d2-suffix] + +[suffix-part] [damage-reduction] + [defense-effect] + [durability] + [hitpoints] + [ability-scores] + [cursed] + [recovery] + [memorization] + [combat-action] + [treasure-finder] + [light-source] + [hazard-reduction] + [damage-increase] + [min-damage] + [attack-speed] + [attack-effect] + [attack-restore] + [item-damage] + [weapon-proficency] + [weapon-use] + [spell-casting] + +pragma prefix-with [suffix-part] the + +[damage-reduction] health + protection + absorption + life + deflection + +[defense-effect] thorns + spikes + blocking + +[durability] sturdiness + structure + ages + bonding + unity + +[hitpoints] [hitpoints-act] + +[hitpoints-act] jackal + fox + jaguar + wolf + eagle + tiger + lion + mammoth + whale + colossus + +[ability-scores] vitality + dexterity + magic + strength + lynx + zest + skill + mind + might + leopard + vim + accuracy + brilliance + power + jaguar + vigor + precision + sorcery + giant + tiger + life + perfection + wizardry + titan + lion + sky + moon + stars + heavens + zodiac + +[cursed] tears + pain + brittleness + decay + fragility + vulture + disease + atrophy + dyslexia + weakness + cat + pit + illness + paralysis + draining + frailty + rat + trouble + pox + corruption + infection + ruin + exposed + discord + night + dark + void + passivity + snail + fool + +[recovery] regeneration + regrowth + +[memorization] warding + sentinel + guarding + negation + osmosis + +[combat-action] apprentice + magus + balance + stability + harmony + +[treasure-finder] greed + chance + wealth + fortune + +[light-source] light + radiance + sun + +[hazard-reduction] thief + warmth + remedy + amelioration + defiance + purging + +[damage-increase] craftsmanship + quality + maiming + slaying + gore + devastation + jester + carnage + slaughter + +[min-damage] measure + worth + excellence + performance + +[attack-speed] readiness + alacrity + swiftness + quickness + speed + haste + +[attack-effect] frost + flame + shock + blight + ice + fire + lightning + venom + glacier + burning + thunder + pestilence + vileness + crusaders + destruction + peril + bear + grizzly + +[attack-restore] leech + claw + bat + blood + talon + vampire + lamprey + +[item-damage] piercing + breaking + puncturing + smashing + bashing + +[weapon-proficency] ease + simplicity + +[weapon-use] many + plenty + +[spell-casting] [spell-number] level magic + +[spell-number] 1st + 2nd + 3rd + 4th + 5th + 6th + 7th + 8th + 9th |
