Beispiel #1
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
Beispiel #2
0
def KansasStore():
    store = Entity(["shop", "store"])
    store.add_description("Small Shop")
    store.add_examine_description(
        "The shop sign reads 'Gary's goods - take as much as you can cary' maybe they have supplies"
    )
    store.add_command(Command(KansasStore, ["go"], [store]))

    owner = Entity(["gary", "owner", "man"])
    owner.add_description(
        "There is a flamboyant man wearing purple robes and a wizard hat, hes probably the owner"
    )
    owner.add_examine_description(
        "he's in his 50's maybe, looks like hes had a hard life")
    owner.add_command(
        Command(TalkToShopOwner, ["talk", "ask", "converse", "say"], [owner]))

    store.add_entities([owner])
    return store