Coder Social home page Coder Social logo

itemgen's Introduction

RPG Item Name Generator

Generates really over-the-top names of items that sound like they're from an RPG, anime or some such bullshit. If you want, you can specify a seed to narrow down the kinds of item names that will be created.

In [1]: from name_generator import *

In [2]: for _ in range(5):
   ...:     print(get_weapon_name())
   ...: 
SMOKE-WREATHED WALL of the EVERSTORM
SPARKWOVEN TOGA FRIGIUS
BLAZING FAUCHARD of the HEAVENS' WRATH
SURGETOUCHED GJALLARHORN
SKYRENDING DAO INFLAMMATA

In [3]: very_specific_seed = get_weapon_seed(
   ...:     weapon_type=WeaponTypes.SWORD,
   ...:     weapon_affix=WeaponAffixes.FIRE,
   ...:     weapon_affix_type=WeaponAffixType.PREFIX
   ...: )

In [4]: for _ in range(5):
   ...:     print(get_weapon_name(very_specific_seed))
   ...: 
INFERNAL STEEL KHOPESH
FLAME-LICKED BRONZE FALCHION
EMBER OBSIDIAN SCIMITAR
FLAME-LICKED SHOTEL
INFERNAL DAO

In [5]: arbitrary_seed = get_weapon_seed()

In [6]: arbitrary_seed
Out[6]: 
(<WeaponTypes.HORN: 3>,
 <WeaponAffixes.LIGHTNING: 2>,
 <WeaponAffixType.SUFFIX: 1>)

In [7]: for _ in range(5):
   ...:     print(get_weapon_name(arbitrary_seed))
   ...: 
OBSIDIAN HORN of FRACTAR
SILVER HORN of the HEAVENS' WRATH
BONE GJALLARHORN of FRACTAR
BRONZE GJALLARHORN of the EVERSTORM
HORN of FRACTAR

itemgen's People

Contributors

jumble avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.