Module: Faker::Game::Achievement
- Defined in:
- lib/faker/game/achievement.rb
Class Method Summary collapse
- .assassination ⇒ Object
- .assassination_verb ⇒ Object
- .discover ⇒ Object
- .discover_verb ⇒ Object
- .earn ⇒ Object
- .earn_verb ⇒ Object
- .kill_enemies ⇒ Object
- .kill_verb ⇒ Object
- .name ⇒ Object
Class Method Details
.assassination ⇒ Object
10 11 12 |
# File 'lib/faker/game/achievement.rb', line 10 def assassination "#{assassination_verb} #{CharacterTitle.evil_proper}" end |
.assassination_verb ⇒ Object
6 7 8 |
# File 'lib/faker/game/achievement.rb', line 6 def assassination_verb %w(Kill Assassinate Beat Destroy Overcome Vanqiush).sample end |
.discover ⇒ Object
26 27 28 |
# File 'lib/faker/game/achievement.rb', line 26 def discover "#{discover_verb} #{Place.name}" end |
.discover_verb ⇒ Object
22 23 24 |
# File 'lib/faker/game/achievement.rb', line 22 def discover_verb %w(Discover Find Uncover Reach).sample end |
.earn ⇒ Object
18 19 20 |
# File 'lib/faker/game/achievement.rb', line 18 def earn "#{earn_verb} #{rand(200) * 10} #{Faker::Game.currency.pluralize}" end |
.earn_verb ⇒ Object
14 15 16 |
# File 'lib/faker/game/achievement.rb', line 14 def earn_verb %w(Earn Discover Harvest Gather).sample end |
.kill_enemies ⇒ Object
34 35 36 |
# File 'lib/faker/game/achievement.rb', line 34 def kill_enemies "#{kill_verb} #{rand(200) * 10} #{Faker::Game.enemy.pluralize}" end |
.kill_verb ⇒ Object
30 31 32 |
# File 'lib/faker/game/achievement.rb', line 30 def kill_verb %w(Kill).sample end |
.name ⇒ Object
38 39 40 |
# File 'lib/faker/game/achievement.rb', line 38 def name send %w(assassination earn discover kill_enemies).sample end |