#include "szturmix.h"
inherit LOK+"std_midd.c";

#include <stdproperties.h>
#include <std.h>
#include <macros.h>
inherit "/d/Imperium/std/sklep_std.c";


void
create_imperium_shop()
{
    set_short("Sklep ogolny");
    set_long("Sklep jak sklep kurwa wasza mac.\n");

    
    add_prop(ROOM_I_INSIDE, 1);
    add_prop(ROOM_I_NO_SKY, 1);
    add_exit(LOK+"bronn","zachod",0,1);    
    set_store_room(LOK  + "magazyno.c");
    set_shop_keeper(NPCPATH + "ugolniak.c");    


}




int 
shop_hook_allow_sell(object ob)
{
    if (function_exists("create_object" , ob) || function_exists("create_lamp" , ob) || function_exists("create_olej" , ob))
     return ::shop_hook_allow_sell(ob);
        
    
    if (query_shop_keeper())
    {
      notify_fail("");
      query_shop_keeper()->command("powiedz do " + 
        OB_NAME(this_player())+
        " Eee... nie chce tego :)");
    }
    else
      notify_fail("Nie chce tego.\n");
    return 0;   
}


int
query_buy_price(object ob)
{
  return ::query_buy_price(ob)/10+::query_buy_price(ob);
}

int
query_sell_price(object ob)
{
  return ::query_sell_price(ob)/10+::query_sell_price(ob);
}
