Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/badges/lipsum/PhabricatorBadgesLootContextFreeGrammar.php
12256 views
1
<?php
2
3
final class PhabricatorBadgesLootContextFreeGrammar
4
extends PhutilContextFreeGrammar {
5
6
protected function getRules() {
7
return array(
8
'start' => array(
9
'[jewelry]',
10
),
11
'jewelry' => array(
12
'Ring [jewelry-suffix]',
13
'Ring [jewelry-suffix]',
14
'[jewelry-prefix] Ring',
15
'[jewelry-prefix] Ring',
16
'Amulet [jewelry-suffix]',
17
'Amulet [jewelry-suffix]',
18
'[jewelry-prefix] Amulet',
19
'[jewelry-prefix] Amulet',
20
'[jewelry-prefix] Ring [jewelry-suffix]',
21
'[jewelry-prefix] Amulet [jewelry-suffix]',
22
'[unique-jewelry]',
23
),
24
'jewelry-prefix' => array(
25
'[mana-prefix]',
26
),
27
28
'jewelry-suffix' => array(
29
'[dexterity-suffix]',
30
'[dexterity-suffix-jewelry]',
31
),
32
'mana-prefix' => array(
33
'Hyena\'s (-<11-25> Mana)',
34
'Frog\'s (-<1-10> Mana)',
35
'Spider\'s (+<10-15> Mana)',
36
'Raven\'s (+<15-20> Mana)',
37
'Snake\'s (+<21-30> Mana)',
38
'Serpent\'s (+<31-40> Mana)',
39
'Drake\'s (+<41-50> Mana)',
40
'Dragon\'s (+<51-60> Mana)',
41
),
42
'dexterity-suffix' => array(
43
'of Paralysis (-<6-10> Dexterity)',
44
'of Atrophy (-<1-5> Dexterity)',
45
'of Dexterity (+<1-5> Dexterity)',
46
'of Skill (+<6-10> Dexterity)',
47
'of Accuracy (+<11-15> Dexterity)',
48
'of Precision (+<16-20> Dexterity)',
49
),
50
'dexterity-suffix-jewelry' => array(
51
'[dexterity-suffix]',
52
'[dexterity-suffix]',
53
'[dexterity-suffix]',
54
'[dexterity-suffix]',
55
'[dexterity-suffix]',
56
'[dexterity-suffix]',
57
'[dexterity-suffix]',
58
'[dexterity-suffix]',
59
'[dexterity-suffix]',
60
'of Perfection (+<21-30> Dexterity)',
61
),
62
'unique-jewelry' => array(
63
'[jewelry]',
64
'[jewelry]',
65
'[jewelry]',
66
'[jewelry]',
67
'[jewelry]',
68
'[jewelry]',
69
'[jewelry]',
70
'[jewelry]',
71
'[unique-ring]',
72
'[unique-amulet]',
73
),
74
'unique-ring' => array(
75
'The Bleeder',
76
'The Bramble',
77
'Constricting Ring',
78
'Empyrean Band',
79
'Ring of Engagement',
80
'Ring of Regha',
81
),
82
'unique-amulet' => array(
83
'Optic Amulet',
84
),
85
);
86
}
87
88
}
89
90