130 lines
1.9 KiB
Python
130 lines
1.9 KiB
Python
from random import choice, randint
|
|
|
|
ELEMENTS = [
|
|
"Fire",
|
|
"Frost",
|
|
"Ice",
|
|
"Flame",
|
|
"Lightning",
|
|
"Shock",
|
|
"Poison",
|
|
"Plague",
|
|
"Water",
|
|
"Holy",
|
|
"Light",
|
|
"Dark",
|
|
"Shadow",
|
|
"Ember",
|
|
"Lava",
|
|
"Immolation",
|
|
"Magma",
|
|
"Healing",
|
|
"Hail",
|
|
"Chaos",
|
|
"Arctic",
|
|
"Glacial",
|
|
"Storm",
|
|
"Death",
|
|
"Molten",
|
|
"Bone",
|
|
"Spirit",
|
|
"Blood",
|
|
"Wind",
|
|
"Arcane",
|
|
"Prismatic"
|
|
]
|
|
|
|
SPELL_TYPE = [
|
|
"Shock",
|
|
"Bolt",
|
|
"Aura",
|
|
"Nova",
|
|
"Shield",
|
|
"Blade",
|
|
"Lance",
|
|
"Ball",
|
|
"Teeth",
|
|
"Pillar",
|
|
"Spear",
|
|
"Brand",
|
|
"Mastery",
|
|
"Attunement",
|
|
"Wave",
|
|
"Blast",
|
|
"Burst",
|
|
"Flurry",
|
|
"Orb",
|
|
"Glaive",
|
|
"Breath",
|
|
"Ritual",
|
|
"Spike",
|
|
"Beam",
|
|
"Bash",
|
|
"Rush",
|
|
"Snare",
|
|
"Pact",
|
|
"Daggers",
|
|
"Storm",
|
|
"Summoning",
|
|
"Tether",
|
|
"Totem",
|
|
"Fury",
|
|
"Explosion",
|
|
"Touch",
|
|
"Cleave",
|
|
"Hammer",
|
|
"Grip",
|
|
"Wrath"
|
|
]
|
|
|
|
SPELL_QUALIFIER = [
|
|
|
|
]
|
|
|
|
SPELL_RANK = [
|
|
"Advanced",
|
|
"Improved",
|
|
"Lesser",
|
|
"Greater",
|
|
"Masterful",
|
|
"Demonic",
|
|
"Chain",
|
|
"Multi",
|
|
"Forked",
|
|
"Homing",
|
|
"Chaotic",
|
|
"Flaming",
|
|
"Blessed",
|
|
"Burning",
|
|
"Wild"
|
|
]
|
|
|
|
SPELL_OWNERSHIP = [
|
|
"Nature's",
|
|
"Demon's",
|
|
"Angels'",
|
|
"Dragon's"
|
|
]
|
|
|
|
def gen_name():
|
|
owner = choice(SPELL_OWNERSHIP) if randint(0,5)==1 else ""
|
|
rank = choice(SPELL_RANK) if randint(0,1)==1 else ""
|
|
type = choice(SPELL_TYPE)
|
|
element = choice(ELEMENTS)
|
|
name_list = []
|
|
if not owner == "":
|
|
name_list.append(owner)
|
|
if not rank == "":
|
|
name_list.append(rank)
|
|
name_list.append(element)
|
|
name_list.append(type)
|
|
name = " ".join(name_list)
|
|
return name
|
|
|
|
def main():
|
|
for _ in range(10):
|
|
print(gen_name())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main() |