SHOP_TABLE.c

final_realms_fluffos_v1/lib/d/newbie/lizard/rooms/SHOP_TABLE.c · 694 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

#include "path.h"
#define MISCS "/baseobs/misc/"
mapping shop_shelves, smithy_shelves;

create() {
  shop_shelves = ([
      ARMOR+"scalemail"        :   ({ 10, 2 }),
      WEAPON+"trident"        :   ({ 10, 1 }),
      MISCS+"torch"            :   ({ 10, 2 }),
  ]);
  smithy_shelves = ([
      ARMOR+"scalemail"        :   ({ 10, 2 }),
      WEAPON+"trident"        :   ({ 10, 1 }),
  ]);
} /* create() */

mapping query_shelves() {
    if (previous_object()->query_short()==
       "Realm of the Lizard:  Town Smithy")
        return smithy_shelves;
    if (previous_object()->query_short()==
       "Realm of the Lizard:  Midea's Little Shop")
        return shop_shelves;
    return 0;
}

Site Stats

Snippets: 1791
Codebases: 571