Module: Faker::Game::Achievement

Defined in:
lib/faker/game/achievement.rb

Class Method Summary collapse

Class Method Details

.assassinationObject



10
11
12
# File 'lib/faker/game/achievement.rb', line 10

def assassination
  "#{assassination_verb} #{CharacterTitle.evil_proper}"
end

.assassination_verbObject



6
7
8
# File 'lib/faker/game/achievement.rb', line 6

def assassination_verb
  %w(Kill Assassinate Beat Destroy Overcome Vanqiush).sample
end

.discoverObject



26
27
28
# File 'lib/faker/game/achievement.rb', line 26

def discover
  "#{discover_verb} #{Place.name}"
end

.discover_verbObject



22
23
24
# File 'lib/faker/game/achievement.rb', line 22

def discover_verb
  %w(Discover Find Uncover Reach).sample
end

.earnObject



18
19
20
# File 'lib/faker/game/achievement.rb', line 18

def earn
  "#{earn_verb} #{rand(200) * 10} #{Faker::Game.currency.pluralize}"
end

.earn_verbObject



14
15
16
# File 'lib/faker/game/achievement.rb', line 14

def earn_verb
  %w(Earn Discover Harvest Gather).sample
end

.kill_enemiesObject



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_verbObject



30
31
32
# File 'lib/faker/game/achievement.rb', line 30

def kill_verb
  %w(Kill).sample
end

.nameObject



38
39
40
# File 'lib/faker/game/achievement.rb', line 38

def name
  send %w(assassination earn discover kill_enemies).sample
end