Example #1
0
def Tavern(cryptoItemEngine):
    entity = Entity(["tavern"])
    store = Store(cryptoItemEngine)
    entity.add_entity(store)
    entity.remove_command("stats")

    add_descriptions(
        entity,
        "The Oily Rat tavern is alive and well! patrons from nearby towns gather to hear what quests the curier has to offer!",
        "The tavern is sturdily built, its location at the county's crossroads makes it an ideal place meet, there is a ['store'] in the far corner... could be worth checking out"
    )

    return entity
Example #2
0
def Store(cryptoItemEngine):
    name = "store"
    entity = Entity([name])

    entity.add_entities(cryptoItemEngine.get_crypto_items_list())

    entity.add_command(command_travel(entity))
    entity.add_command(command_list(entity))
    entity.remove_command("stats")
    entity.add_name(name)

    add_descriptions(
        entity,
        "There is shady man standing in the corner, on his shirt is a large '$' sign",
        "he has many items for sale, all for crypto!")
    return entity