hlockey 5 → 7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/data/election.json +23 -0
  3. data/data/infinileague.json +189 -0
  4. data/data/information.json +6 -0
  5. data/data/league.json +2042 -0
  6. data/data/links.json +5 -0
  7. data/data/messages.json +46 -0
  8. data/data/previous_election_results.json +91 -0
  9. data/lib/hlockey/actions.rb +22 -0
  10. data/lib/hlockey/data.rb +6 -5
  11. data/lib/hlockey/game/fight.rb +100 -40
  12. data/lib/hlockey/game/weather/audacity.rb +1 -1
  13. data/lib/hlockey/game/weather/chicken.rb +3 -2
  14. data/lib/hlockey/game/weather/incline.rb +2 -1
  15. data/lib/hlockey/game/weather/stars.rb +1 -1
  16. data/lib/hlockey/game/weather/sunset.rb +2 -4
  17. data/lib/hlockey/game/weather/waves.rb +9 -5
  18. data/lib/hlockey/game/weather/weatherable.rb +9 -9
  19. data/lib/hlockey/game.rb +182 -116
  20. data/lib/hlockey/league.rb +90 -73
  21. data/lib/hlockey/message.rb +23 -153
  22. data/lib/hlockey/mod/fencebuilder.rb +15 -0
  23. data/lib/hlockey/mod/fencedestroyer.rb +16 -0
  24. data/lib/hlockey/mod/handholding.rb +57 -0
  25. data/lib/hlockey/mod/immaterial.rb +28 -0
  26. data/lib/hlockey/mod/locked.rb +28 -0
  27. data/lib/hlockey/mod/moddable.rb +70 -0
  28. data/lib/hlockey/mod/nonconfrontational.rb +17 -0
  29. data/lib/hlockey/mod/powernapper.rb +50 -0
  30. data/lib/hlockey/mod/punchy.rb +21 -0
  31. data/lib/hlockey/mod.rb +25 -0
  32. data/lib/hlockey/selfdescribable.rb +7 -0
  33. data/lib/hlockey/team/player.rb +40 -58
  34. data/lib/hlockey/team/stadium.rb +10 -7
  35. data/lib/hlockey/team.rb +56 -41
  36. data/lib/hlockey/utils.rb +36 -4
  37. data/lib/hlockey/version.rb +1 -1
  38. data/lib/hlockey.rb +15 -0
  39. metadata +30 -18
  40. data/data/election.yaml +0 -21
  41. data/data/external/names.txt +0 -19948
  42. data/data/information.yaml +0 -24
  43. data/data/league.yaml +0 -1694
  44. data/data/links.yaml +0 -3
  45. data/data/previous_election_results.yaml +0 -65
  46. data/lib/hlockey/game/actions.rb +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3ffa20553204aab32e385a20810d695766243023a10d5d765874ef315b01cf2
4
- data.tar.gz: c391278c8b2a521b6c245aff2982527072d7cc044a1dd86baee2f43ac7c5a0e0
3
+ metadata.gz: d7847c0a00df20b8509e6714c9f00ee3e9a00616994348c8694d964364c3d14b
4
+ data.tar.gz: a48ca6d707ec4c0e842c829653c6156daf1201b403d77669e97013487a8275b6
5
5
  SHA512:
6
- metadata.gz: ef0f92274582a0c109d12727468680085dcb6b5eab57a32fb460187aebce5ef6b333dc736c9f66b6e5812848efcf531e3e25ab1041f4bca0b7d655223db728d4
7
- data.tar.gz: 302ebe65aebef3e201c4ab8174eb945c70d78e86a7bd50f5001519cbca5605822a5d9a5ba4ace11b54950310de4a16480856e524f21668e71a9002bafd6c31da
6
+ metadata.gz: a77a3869f3639672eb2d43e449e7f8f66937f0a05af018545a369198b3b2765aad8b606c12b378fad406d5a67de644505a6dcc4330094ae0a1dca2fe4338615d
7
+ data.tar.gz: 5e426bed31e2be5aff7e1f82e5e449aee106f2b1a953f64c8f55cf7f2b074b39043e9df72c692d540466713e9a3f75013a5b97a95508887c5f3a88dd7faab8b4
@@ -0,0 +1,23 @@
1
+ {
2
+ "Bribery": {
3
+ "Lootboxes": "Allow betting for votes.",
4
+ "Make Laws": "Write down the rules of the game.",
5
+ "We Do A Little Losing": "Recognize the losingest teams with an underbracket."
6
+ },
7
+ "Treasure": {
8
+ "Dave": "The worst stat on your team is set to 4.5.",
9
+ "Nice": "Boost your worst player by 0.69 in every stat.",
10
+ "Vengabus": "All your team's stats are boosted by your team's losses * 0.005.",
11
+ "Shared Training": "All teams in your division get +0.3 in each stat on each player.",
12
+ "Theft": "Your worst player steals 0.3 in every stat from the champion team's best player."
13
+ },
14
+ "Coaching": {
15
+ "Please Block Shots": "Move your team's best defensive player to goalie.",
16
+ "Please Win Faceoffs": "Move your team's player best offensive player to center.",
17
+ "Draft": "Add a new random player to your shadows.",
18
+ "Small Gamble": "All your team's stats go up or down by 0.5 at random.",
19
+ "Big Gamble": "All your team's stats go up or down by 1.0 at random.",
20
+ "Clock Wise": "Rotate each player on the roster to the position clockwise of them.",
21
+ "Clock Unwise": "Rotate each player on the roster to the position counterclockwise of them."
22
+ }
23
+ }
@@ -0,0 +1,189 @@
1
+ {
2
+ "infinite": true,
3
+ "start_time": [
4
+ 2024,
5
+ 2,
6
+ 17,
7
+ 9,
8
+ 0,
9
+ 0
10
+ ],
11
+ "divisions": {
12
+ "Left": [
13
+ {
14
+ "name": "Sticks",
15
+ "color": "#998779",
16
+ "emoji": "🥁",
17
+ "motto": "We Will Beat You",
18
+ "stadium": {
19
+ "full_name": "Percussion Park",
20
+ "hlockey_type": "Infinite"
21
+ },
22
+ "roster": {
23
+ "lwing": {
24
+ "name": "Lip",
25
+ "stats": {
26
+ "offense": 0.3181884534688606,
27
+ "defense": 4.580524160569896,
28
+ "agility": 0.15640073646139452
29
+ }
30
+ },
31
+ "center": {
32
+ "name": "Chop",
33
+ "stats": {
34
+ "offense": 4.875252577856671,
35
+ "defense": 0.8094921670921873,
36
+ "agility": 2.678991072719285
37
+ }
38
+ },
39
+ "rwing": {
40
+ "name": "Bread",
41
+ "stats": {
42
+ "offense": 0.5278068643819789,
43
+ "defense": 1.2335354031153034,
44
+ "agility": 1.4444282175174545
45
+ }
46
+ },
47
+ "ldef": {
48
+ "name": "Slap",
49
+ "stats": {
50
+ "offense": 4.329623167456419,
51
+ "defense": 3.902526905905031,
52
+ "agility": 1.0818908808981431
53
+ }
54
+ },
55
+ "goalie": {
56
+ "name": "Dip",
57
+ "stats": {
58
+ "offense": 4.92858426903441,
59
+ "defense": 1.7756137682749134,
60
+ "agility": 4.928007605788166
61
+ }
62
+ },
63
+ "rdef": {
64
+ "name": "Dynamite",
65
+ "stats": {
66
+ "offense": 0.8646781011971444,
67
+ "defense": 2.6208562009642753,
68
+ "agility": 3.680570600416569
69
+ }
70
+ }
71
+ },
72
+ "shadows": [
73
+ {
74
+ "name": "Gear",
75
+ "stats": {
76
+ "offense": 3.1065463132077498,
77
+ "defense": 2.5388468723736346,
78
+ "agility": 0.39565973708324376
79
+ }
80
+ },
81
+ {
82
+ "name": "Walking",
83
+ "stats": {
84
+ "offense": 2.6359786567435273,
85
+ "defense": 3.320740955624657,
86
+ "agility": 0.5425365383826708
87
+ }
88
+ },
89
+ {
90
+ "name": "Swizzle",
91
+ "stats": {
92
+ "offense": 4.444577026661491,
93
+ "defense": 3.524067671097182,
94
+ "agility": 3.470221005477506
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ ],
100
+ "Right": [
101
+ {
102
+ "name": "Rocks",
103
+ "color": "#779184",
104
+ "emoji": "🗿",
105
+ "motto": "Rock Solid",
106
+ "stadium": {
107
+ "full_name": "Stone Island Arena",
108
+ "hlockey_type": "Infinite"
109
+ },
110
+ "roster": {
111
+ "lwing": {
112
+ "name": "Sandstone",
113
+ "stats": {
114
+ "offense": 0.6029529674877171,
115
+ "defense": 2.6262559080400045,
116
+ "agility": 1.0985317197638573
117
+ }
118
+ },
119
+ "center": {
120
+ "name": "Basalt",
121
+ "stats": {
122
+ "offense": 2.779460944444192,
123
+ "defense": 2.9027784198992794,
124
+ "agility": 1.8943564825874586
125
+ }
126
+ },
127
+ "rwing": {
128
+ "name": "Diorite",
129
+ "stats": {
130
+ "offense": 2.7705966853706885,
131
+ "defense": 1.1853552989454719,
132
+ "agility": 2.4384286228744436
133
+ }
134
+ },
135
+ "ldef": {
136
+ "name": "Obsidian",
137
+ "stats": {
138
+ "offense": 1.0776592042101774,
139
+ "defense": 2.0089471749684815,
140
+ "agility": 3.4387370564240842
141
+ }
142
+ },
143
+ "goalie": {
144
+ "name": "Coal",
145
+ "stats": {
146
+ "offense": 3.014303638737823,
147
+ "defense": 2.125462646021839,
148
+ "agility": 1.2453998715920045
149
+ }
150
+ },
151
+ "rdef": {
152
+ "name": "Flint",
153
+ "stats": {
154
+ "offense": 4.4103267416711525,
155
+ "defense": 1.3047233085627012,
156
+ "agility": 2.832114238418354
157
+ }
158
+ }
159
+ },
160
+ "shadows": [
161
+ {
162
+ "name": "Slate",
163
+ "stats": {
164
+ "offense": 3.9197087896075318,
165
+ "defense": 4.724128827526378,
166
+ "agility": 1.2102827884457974
167
+ }
168
+ },
169
+ {
170
+ "name": "Marble",
171
+ "stats": {
172
+ "offense": 2.8179962040363367,
173
+ "defense": 4.141585991287005,
174
+ "agility": 2.586546588041913
175
+ }
176
+ },
177
+ {
178
+ "name": "Quartzite",
179
+ "stats": {
180
+ "offense": 4.113451181841506,
181
+ "defense": 4.656377884252652,
182
+ "agility": 0.44657994069096096
183
+ }
184
+ }
185
+ ]
186
+ }
187
+ ]
188
+ }
189
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "Format": "First is the regular season, with matchups lasting 3 games.\nTeams play 3 matchups against every team in their subleague (warm / cool).\nAfter that, they play 1 matchup against the rest of the teams.\nThis adds up to 37 matchups, or 111 games.\nAfter the regular season is the playoffs, with matchups lasting 5 games.\nThe playoffs are a single-elimination tournament.\nThe top teams in each division as well as the top 4 non-division leaders go to playoffs.\nPlayoffs are perfectly seeded (best team plays worst team, etc).\nPlayoffs have 3 matchups, or 15 games.",
3
+ "Elections": "During each season, everyone can vote on the website for things that change the league.\nBriberies effect the entire league.\nTreasures are won on a raffle between the teams.\nCoachings are given to each team, with teams getting the coaching they vote for the most.",
4
+ "Weather": "Hlockey has different weathers which effect the games, similar to Blaseball.\nAudacity causes players to take shots regardless of the state of the game.\nChicken swaps a random roster player with a random shadow player for the rest of the game.\nIncline adds a random amount of score to a favored team's goals.\nStars gives the losing team +0.5 score at the end of each period.\nSunset makes each team's goals worth less the more the team scores.\nWaves swaps a roster player (most likely worst) with a random shadow player permanently.",
5
+ "Credits": "Hlockey would not be where it is today without the support of the community surrounding it as well as the wider Blaseball community.\nFor a more complete list of all the people and projects that inspired Hlockey, please see the \"Inspirations\" section of the project's readme (https://codeberg.org/LavenderPerry/hlockey/src/branch/main/readme.md#inspirations)"
6
+ }