#include "local.h"
inherit "/std/object";
#include <stdproperties.h>
#include <macros.h>
#include <ss_types.h>


int ilosc_tytoniu;
int max_tyton;


void 
create_object()
{

 ustaw_nazwe(({"cybuch","cybucha","cybuchowi","cybuch","cybuchem","cybuchu"}),
   ({"cybuchy","cybuchow","cybuchom","cybuchy","cybuchami","cybuchach"}),PL_MESKI_NZYW);
 set_short("Niewielki cybuch.\n");
 set_long("Blah.\n"); 
 add_prop(OBJ_I_NO_DROP,1);
 add_prop(OBJ_I_NO_GIVE,1);
 add_prop(OBJ_I_NO_STEAL,1);
 add_prop(OBJ_M_NO_SELL,1);
 ilosc_tytoniu=100;
 max_tyton=100;
}

int wybierz(int ile)
{
int temp;
 if(ilosc_tytoniu<=0){
   write(" W cybuchu nie ma juz tytoniu.\n");
   return 0;
 }
 if(ile>ilosc_tytoniu){
   write(" W cybuchu nie ma az tyle tytoniu aby wypelnic w pelni fajke.\n");

   temp=ilosc_tytoniu;
   ilosc_tytoniu=0;
   return temp;
 }
   
 write("Wypelniasz fajke tytoniem z cybucha.\n");
 say(QCIMIE(TP,PL_MIA)+" napelnia fajke tytoniem z cybucha.\n");
  ilosc_tytoniu-=ile;
  return ile;
} 
   
   
    