module Faker::Game
Constants
- VERSION
Public Class Methods
ability_measurement()
click to toggle source
# File lib/faker/game.rb, line 15 def ability_measurement %w(Renown Mana XP Experience Power).sample end
currency()
click to toggle source
# File lib/faker/game.rb, line 19 def currency %w(Credit Point Gem Orb Coin).sample end
enemy()
click to toggle source
# File lib/faker/game.rb, line 31 def enemy %w(Ghost Titan Banshee Witch Insurgent Thief Ghoul Monster Tango Terrorist).sample end
franchise()
click to toggle source
# File lib/faker/game.rb, line 11 def franchise "#{enemy} #{verb_noun}" end
hero()
click to toggle source
# File lib/faker/game.rb, line 23 def hero %w(Soldier Hero Knight Savior Commander).sample end
name()
click to toggle source
# File lib/faker/game.rb, line 45 def name ["The #{verb_noun} of #{enemy.pluralize}", "#{franchise} #{suffix}".strip, "#{enemy} #{verb_noun}", "#{adjective} #{hero}", franchise, "#{prefix}", nil].sample || name_with_franchise end
name_with_franchise()
click to toggle source
# File lib/faker/game.rb, line 54 def name_with_franchise "#{creator}'s #{franchise} #{suffix}: #{subtitle}".squish end
prefix()
click to toggle source
# File lib/faker/game.rb, line 35 def prefix "#{creator}'s #{franchise}" end
subtitle()
click to toggle source
# File lib/faker/game.rb, line 39 def subtitle ["The #{verb_noun} of #{enemy.pluralize}", "#{adjective} #{enemy.pluralize}", "#{adjective} #{hero}"].sample end
verb_noun()
click to toggle source
# File lib/faker/game.rb, line 27 def verb_noun %w(Killer Destroyer Fighter Battler Vanquisher Hunter Commander Collector).sample end
Private Class Methods
adjective()
click to toggle source
# File lib/faker/game.rb, line 64 def adjective %w(Gold Golden Bloodied Bloody Mighty Powerful Damaged Dark Black Silver Iron).sample end
creator()
click to toggle source
# File lib/faker/game.rb, line 60 def creator "#{Faker::Name.first_name} #{Faker::Name.last_name}" end
noun()
click to toggle source
# File lib/faker/game.rb, line 68 def noun %w(Power War Heart Darkness Soul Lost).sample end
suffix()
click to toggle source
# File lib/faker/game.rb, line 72 def suffix (%w(II III IV V VI X SE HD Remastered 2 3 4) << nil).sample end