diff options
Diffstat (limited to 'RGens/src/main/java/bjc/rgens/ZadronsPouch.java')
| -rw-r--r-- | RGens/src/main/java/bjc/rgens/ZadronsPouch.java | 150 |
1 files changed, 75 insertions, 75 deletions
diff --git a/RGens/src/main/java/bjc/rgens/ZadronsPouch.java b/RGens/src/main/java/bjc/rgens/ZadronsPouch.java index 7160bdd..5634385 100644 --- a/RGens/src/main/java/bjc/rgens/ZadronsPouch.java +++ b/RGens/src/main/java/bjc/rgens/ZadronsPouch.java @@ -7,14 +7,14 @@ import bjc.utils.gen.RandomGrammar; /** * Example showing code manipulate of random grammars - * + * * @author ben * */ public class ZadronsPouch { /** * Main method for running application - * + * * @param args * Unused CLI args */ @@ -41,9 +41,9 @@ public class ZadronsPouch { grammar = new RandomGrammar<>(); addRule("[item]", - "[egg]", "[glove]", "[crys-sphere]", "[rock]", - "[figurine]", "[vial]", "[mini-weapon]", "[bag]", - "[card]", "[rope]", "[box]", "[wand]"); + "[egg]", "[glove]", "[crys-sphere]", "[rock]", + "[figurine]", "[vial]", "[mini-weapon]", "[bag]", + "[card]", "[rope]", "[box]", "[wand]"); addEggRules(); addGloveRules(); @@ -63,118 +63,118 @@ public class ZadronsPouch { private void addBagRules() { addRule("[bag]", - "bag of [bag-type]", "[sack-type] sack", "[purse-type] purse"); + "bag of [bag-type]", "[sack-type] sack", "[purse-type] purse"); addRule("[bag-type]", - "holding", "tricks", "useful items", - "devouring", "dwarf-kind", "invisible cloth", - "monster summoning"); + "holding", "tricks", "useful items", + "devouring", "dwarf-kind", "invisible cloth", + "monster summoning"); addRule("[sack-type]", - "lunch", "recursive"); + "lunch", "recursive"); addRule("[purse-type]", - "everfull"); + "everfull"); } private void addBoxRules() { addRule("[box]", - "[box-type] box", "cube of [box-type]"); + "[box-type] box", "cube of [box-type]"); addRule("[box-type]", - "limited-force", "frost-resisting", "morphing", - "self-destructing", "pandora", "panicking"); + "limited-force", "frost-resisting", "morphing", + "self-destructing", "pandora", "panicking"); } private void addCardRules() { addRule("[card]", - "card of [card-type]", "[card-type] card"); + "card of [card-type]", "[card-type] card"); addRule("[card-type]", - "fate", "teleporting", "elusive treasure", "spell-storing", - "many-things", "imprisoning", "messaging", "bounty"); + "fate", "teleporting", "elusive treasure", "spell-storing", + "many-things", "imprisoning", "messaging", "bounty"); } private void addCrysSphereRules() { addRule("[crys-sphere]", - "[sphere-type] spheres", "[sphere-type] sphere", - "lens of [lens-type]", "[crystal-type] crystal", - "crystal of [crystal-type]", "crystal ball", - "crystal ball of [crys-suffix]"); + "[sphere-type] spheres", "[sphere-type] sphere", + "lens of [lens-type]", "[crystal-type] crystal", + "crystal of [crystal-type]", "crystal ball", + "crystal ball of [crys-suffix]"); addRule("[sphere-type]", - "microphonic", "seeing-eye"); + "microphonic", "seeing-eye"); addRule("[lens-type]", - "detection"); + "detection"); addRule("[crystal-type]", - "prison", "radar"); + "prison", "radar"); addRule("[crys-suffix]", - "jumping"); + "jumping"); } private void addEggRules() { addRule("[egg]", - "[egg-type] egg"); + "[egg-type] egg"); addRule("[egg-type]", - "copper", "stone", "golden", - "white", "white/pink", "glass"); + "copper", "stone", "golden", + "white", "white/pink", "glass"); } private void addFigurineRules() { addRule("[figurine]", - "[fig-material] [fig-animal]"); + "[fig-material] [fig-animal]"); addRule("[fig-material]", - "golden", "onyx", "serpentine", "ivory", - "marble", "bronze", "jade", "limestone"); + "golden", "onyx", "serpentine", "ivory", + "marble", "bronze", "jade", "limestone"); addRule("[fig-animal]", - "lion", "dog", "owl", "goat", - "elephant", "warrior", "palace", "leprechaun"); + "lion", "dog", "owl", "goat", + "elephant", "warrior", "palace", "leprechaun"); } private void addGloveRules() { - addRule("[glove]", - "gauntlets of [gauntlet-type]", - "gloves of [glove-type]", - "[glove-type] gloves"); + addRule("[glove]", + "gauntlets of [gauntlet-type]", + "gloves of [glove-type]", + "[glove-type] gloves"); addRule("[gauntlet-type]", - "dexterity", "power"); + "dexterity", "power"); addRule("[glove-type]", - "pushing", "choking", "bigby", "stunning"); + "pushing", "choking", "bigby", "stunning"); } private void addMiniWeaponRules() { addRule("[mini-weapon]", - "minature [weapon-type]", "small [weapon-type]", - "tiny [weapon-type]", "[sling-type] sling", - "[weapon-type]"); + "minature [weapon-type]", "small [weapon-type]", + "tiny [weapon-type]", "[sling-type] sling", + "[weapon-type]"); addRule("[weapon-type]", - "boomerang", "arrow", "net", - "catapult", "hammer", "sword", "club"); + "boomerang", "arrow", "net", + "catapult", "hammer", "sword", "club"); addRule("[sling-type]", - "seeking"); + "seeking"); } private void addRockRules() { addRule("[rock]", - "[pebble-type] pebble", "stone of [stone-type]", - "[stone-type] stone", "brick of [brick-type]", - "[geode-type] geode"); + "[pebble-type] pebble", "stone of [stone-type]", + "[stone-type] stone", "brick of [brick-type]", + "[geode-type] geode"); addRule("[pebble-type]", - "inscribed", "elemental control"); + "inscribed", "elemental control"); addRule("[stone-type]", - "good-luck", "weight", - "blind-defense", "metal-clinging"); + "good-luck", "weight", + "blind-defense", "metal-clinging"); addRule("[brick-type]", - "flying"); + "flying"); addRule("[geode-type]", - "ioun"); + "ioun"); } private void addRopeRules() { addRule("[rope]", - "[rope-type] rope", "rope of [rope-type]", - "ball of [string-type] [string-kind]"); + "[rope-type] rope", "rope of [rope-type]", + "ball of [string-type] [string-kind]"); addRule("[rope-type]", - "trick", "entangling", "climbing", "dancing", - "tripping", "snaring", "levitating", "self-entangling"); - addRule("[string-type]", - "endless"); + "trick", "entangling", "climbing", "dancing", + "tripping", "snaring", "levitating", "self-entangling"); + addRule("[string-type]", + "endless"); addRule("[string-kind]", - "string", "yarn"); + "string", "yarn"); } private void addRule(String rule, String... cases) { @@ -189,31 +189,31 @@ public class ZadronsPouch { private void addVialRules() { addRule("[vial]", - "vial of [vial-type]", "[vial-type] vial", - "[bottle-type] bottle", "[flask-type] flask"); + "vial of [vial-type]", "[vial-type] vial", + "[bottle-type] bottle", "[flask-type] flask"); addRule("[vial-type]", - "holding", "trapping", - "experience", "unnatural regeneration"); + "holding", "trapping", + "experience", "unnatural regeneration"); addRule("[bottle-type]", - "ever-smoking", "wheezing", - "blank potion"); + "ever-smoking", "wheezing", + "blank potion"); addRule("[flask-type]", - "iron"); + "iron"); } private void addWandRules() { addRule("[wand]", - "[wand-type] wand", "wand of [wand-type]", - "canceling [wand-type] wand"); + "[wand-type] wand", "wand of [wand-type]", + "canceling [wand-type] wand"); addRule("[wand-type]", - "magic missile", "[spell-1]", "[spell-2]", - "gusting", "life-detecting", "zadron"); + "magic missile", "[spell-1]", "[spell-2]", + "gusting", "life-detecting", "zadron"); addRule("[spell-1]", - "frost", "fire", "lightning", "fear", - "illumination", "polymorphing", "conjuration", "paralyzing"); + "frost", "fire", "lightning", "fear", + "illumination", "polymorphing", "conjuration", "paralyzing"); addRule("[spell-2]", - "[spell2-type] detecting"); + "[spell2-type] detecting"); addRule("[spell2-type]", - "magic", "enemy", "secret door/trap"); + "magic", "enemy", "secret door/trap"); } } |
