hlockey 5 → 7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/election.json +23 -0
- data/data/infinileague.json +189 -0
- data/data/information.json +6 -0
- data/data/league.json +2042 -0
- data/data/links.json +5 -0
- data/data/messages.json +46 -0
- data/data/previous_election_results.json +91 -0
- data/lib/hlockey/actions.rb +22 -0
- data/lib/hlockey/data.rb +6 -5
- data/lib/hlockey/game/fight.rb +100 -40
- data/lib/hlockey/game/weather/audacity.rb +1 -1
- data/lib/hlockey/game/weather/chicken.rb +3 -2
- data/lib/hlockey/game/weather/incline.rb +2 -1
- data/lib/hlockey/game/weather/stars.rb +1 -1
- data/lib/hlockey/game/weather/sunset.rb +2 -4
- data/lib/hlockey/game/weather/waves.rb +9 -5
- data/lib/hlockey/game/weather/weatherable.rb +9 -9
- data/lib/hlockey/game.rb +182 -116
- data/lib/hlockey/league.rb +90 -73
- data/lib/hlockey/message.rb +23 -153
- data/lib/hlockey/mod/fencebuilder.rb +15 -0
- data/lib/hlockey/mod/fencedestroyer.rb +16 -0
- data/lib/hlockey/mod/handholding.rb +57 -0
- data/lib/hlockey/mod/immaterial.rb +28 -0
- data/lib/hlockey/mod/locked.rb +28 -0
- data/lib/hlockey/mod/moddable.rb +70 -0
- data/lib/hlockey/mod/nonconfrontational.rb +17 -0
- data/lib/hlockey/mod/powernapper.rb +50 -0
- data/lib/hlockey/mod/punchy.rb +21 -0
- data/lib/hlockey/mod.rb +25 -0
- data/lib/hlockey/selfdescribable.rb +7 -0
- data/lib/hlockey/team/player.rb +40 -58
- data/lib/hlockey/team/stadium.rb +10 -7
- data/lib/hlockey/team.rb +56 -41
- data/lib/hlockey/utils.rb +36 -4
- data/lib/hlockey/version.rb +1 -1
- data/lib/hlockey.rb +15 -0
- metadata +30 -18
- data/data/election.yaml +0 -21
- data/data/external/names.txt +0 -19948
- data/data/information.yaml +0 -24
- data/data/league.yaml +0 -1694
- data/data/links.yaml +0 -3
- data/data/previous_election_results.yaml +0 -65
- data/lib/hlockey/game/actions.rb +0 -24
data/data/links.yaml
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
---
|
2
|
-
:vote_amt: 239
|
3
|
-
:categories:
|
4
|
-
:Bribery (73 votes):
|
5
|
-
:Winning bribe:
|
6
|
-
:winner: Stadiums (42 votes)
|
7
|
-
:Treasure (124 votes):
|
8
|
-
:Dave:
|
9
|
-
:winner: Dawson City Impostors (16 votes / 38 total)
|
10
|
-
:Nice:
|
11
|
-
:winner: Nice Backflippers (7 votes / 15 total)
|
12
|
-
:Vengabus:
|
13
|
-
:winner: Kyoto Payphones (1 vote / 46 total)
|
14
|
-
:most_votes: Sydney Thinkers (31 votes)
|
15
|
-
:Unvengabus:
|
16
|
-
:winner: Antalya Pirates (Wet Warm) (0 votes / 0 total)
|
17
|
-
:Shared Training:
|
18
|
-
:winner: Antalya Pirates (Wet Warm) (2 votes / 20 total)
|
19
|
-
:most_votes: Orcadas Base Fog (5 votes)
|
20
|
-
:Theft:
|
21
|
-
:winner: Manbij Fish (1 vote / 5 total)
|
22
|
-
:most_votes: Pica Acid (2 votes)
|
23
|
-
:Hidden Treasure - Evolve:
|
24
|
-
:winner: Sleepersz (0 votes / 0 total)
|
25
|
-
:Coaching (42 votes):
|
26
|
-
:Antalya Pirates:
|
27
|
-
:winner: Please Block Shots (3 votes / 3 total)
|
28
|
-
:Baden Hallucinations:
|
29
|
-
:winner: Clock Unwise (1 vote / 1 total)
|
30
|
-
:Kópavogur Seals:
|
31
|
-
:winner: Big Gamble (0 votes / 0 total)
|
32
|
-
:Lagos Soup:
|
33
|
-
:winner: Please Win Faceoffs (1 vote / 1 total)
|
34
|
-
:Pica Acid:
|
35
|
-
:winner: Big Gamble (0 votes / 0 total)
|
36
|
-
:Dawson City Impostors:
|
37
|
-
:winner: Draft (2 votes / 3 total)
|
38
|
-
:Erlangen Ohms:
|
39
|
-
:winner: Please Win Faceoffs (2 votes / 2 total)
|
40
|
-
:Pompei Eruptions:
|
41
|
-
:winner: Please Win Faceoffs (2 votes / 2 total)
|
42
|
-
:Rio de Janeiro Directors:
|
43
|
-
:winner: Clock Wise (1 vote / 1 total)
|
44
|
-
:Wyrzysk Rockets:
|
45
|
-
:winner: Please Win Faceoffs (0 votes / 0 total)
|
46
|
-
:Cape Town Transplants:
|
47
|
-
:winner: Please Block Shots (1 vote / 2 total)
|
48
|
-
:Manbij Fish:
|
49
|
-
:winner: Please Block Shots (1 vote / 2 total)
|
50
|
-
:Nagqu Paint:
|
51
|
-
:winner: Revolution (1 vote / 1 total)
|
52
|
-
:Nice Backflippers:
|
53
|
-
:winner: Please Block Shots (7 votes / 7 total)
|
54
|
-
:Orcadas Base Fog:
|
55
|
-
:winner: Please Win Faceoffs (2 votes / 2 total)
|
56
|
-
:Baghdad Abacuses:
|
57
|
-
:winner: Please Win Faceoffs (0 votes / 0 total)
|
58
|
-
:Jakarta Architects:
|
59
|
-
:winner: Big Gamble (0 votes / 0 total)
|
60
|
-
:Kyoto Payphones:
|
61
|
-
:winner: Clock Unwise (3 votes / 5 total)
|
62
|
-
:Stony Brook Reapers:
|
63
|
-
:winner: Please Block Shots (1 vote / 2 total)
|
64
|
-
:Sydney Thinkers:
|
65
|
-
:winner: Draft (6 votes / 7 total)
|
data/lib/hlockey/game/actions.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
module Hlockey
|
2
|
-
class Game
|
3
|
-
##
|
4
|
-
# For classes that deal with actions within a Hlockey game.
|
5
|
-
module Actions
|
6
|
-
private
|
7
|
-
|
8
|
-
# For an event that should happen randomly about a certain amount of times per game,
|
9
|
-
# returns if the event should happen or not. Should be called once per action.
|
10
|
-
# @param times [Integer] the approximate amount of times the event should occur
|
11
|
-
# @return [Boolean] if the event should occur
|
12
|
-
def random_event_occurs?(times = 1)
|
13
|
-
@prng.rand(NON_OT_ACTIONS / times).zero?
|
14
|
-
end
|
15
|
-
|
16
|
-
# @param succeed_boost [Numeric] increases chance of action succeeding
|
17
|
-
# @param fail_boost [Numeric] decreases chance of action succeeding
|
18
|
-
# @return [Boolean] if the action succeeded
|
19
|
-
def action_succeeds?(succeed_boost, fail_boost)
|
20
|
-
@prng.rand(20) + (succeed_boost - fail_boost) > 9
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|