/faker-game

Faker extension for generating game names, player usernames, achievements, etc.

Primary LanguageRuby

faker-game

Faker::Game

Game Franchise Name

Faker::Game.franchise # => "Titan Battler"

Game Ability Measurement

Faker::Game.ability_measurement # => "Mana"

Game Currency

Generates the singular form of an in-game currency.

Faker::Game.currency # => "Gem"

Hero

Faker::Game.hero # => "Knight"

Enemy

Faker::Game.enemy # => "Ghoul"

Complex Game Name Prefix

Includes the name of a fictitious game creator.

Faker::Game.prefix # => "Ryley Lang's Witch Fighter"

Game Subtitle

Faker::Game.subtitle # => "Silver Titans"

Game Name

Generates a full game name, sometimes with a franchise title.

Faker::Game.name # => "Ghoul Killer IV"

Game Name with Franchise

Forces a franchise prefix.

Faker::Game.name_with_franchise # => "Aida Bahringer's Insurgent Hunter 4: Iron Tangos"

Faker::Game::Place

Place

Generates an RPGesque name for a fictional region.

Faker::Game::Place.name # => "The Snowy Caves"

Faker::Game::Character

These are all RPG/fantasy-style.

Name

Faker::Game::Character.name # => "Byrlad Smithearthgrad"

Name with Title

Chance of either a neutral, evil, or good title.

Faker::Game::Character.name_with_title # => "Byrwren Tyrwindearthborn, the Guard of Winterrealm"

Faker::Game::Achivement

Name

Selects one of the following achievement names at random.

Faker::Game::Achievement.name # => "Gather 170 Orbs"

Assassination Achievement

Faker::Game::Achievement.assassination # => "Kill The Dark Wrencher Of Beasts"

Earn X Things

Faker::Game::Achievement.earn # => "Find 1070 Gems"

Discover a Place

Faker::Game::Achievement.discover # => "Discover The Icy South"

Kill X Enemies

Faker::Game::Achievement.kill_enemies # => "Kill 240 Insurgents"

Faker::Game::CharacterTitle

Poke around the source for all sorts of helpers for generating these.

Good

Faker::Game::CharacterTitle.good # => "the light-bringer"

Evil

Faker::Game::CharacterTitle.evil # => "horrible flesh mutilator"

Neutral

Faker::Game::CharacterTitle.neutral # => "hunter of hinterland"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/chrisb/faker-game.