skylib_fluffos_v3/
skylib_fluffos_v3/bin/
skylib_fluffos_v3/bin/db/
skylib_fluffos_v3/fluffos-2.9-ds2.04/
skylib_fluffos_v3/fluffos-2.9-ds2.04/ChangeLog.old/
skylib_fluffos_v3/fluffos-2.9-ds2.04/Win32/
skylib_fluffos_v3/fluffos-2.9-ds2.04/compat/
skylib_fluffos_v3/fluffos-2.9-ds2.04/compat/simuls/
skylib_fluffos_v3/fluffos-2.9-ds2.04/include/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/clone/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/command/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/data/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/etc/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/include/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/inherit/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/inherit/master/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/log/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/compiler/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/efuns/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/operators/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/u/
skylib_fluffos_v3/fluffos-2.9-ds2.04/tmp/
skylib_fluffos_v3/fluffos-2.9-ds2.04/windows/
skylib_fluffos_v3/mudlib/
skylib_fluffos_v3/mudlib/cmds/
skylib_fluffos_v3/mudlib/cmds/admin/
skylib_fluffos_v3/mudlib/cmds/guild-race/
skylib_fluffos_v3/mudlib/cmds/living/broken/
skylib_fluffos_v3/mudlib/cmds/player/group_cmds/
skylib_fluffos_v3/mudlib/cmds/playtester/
skylib_fluffos_v3/mudlib/d/admin/
skylib_fluffos_v3/mudlib/d/admin/room/
skylib_fluffos_v3/mudlib/d/admin/room/we_care/
skylib_fluffos_v3/mudlib/d/admin/save/
skylib_fluffos_v3/mudlib/d/admin/text/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/buildings/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/map/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/roads/
skylib_fluffos_v3/mudlib/d/learning/chars/
skylib_fluffos_v3/mudlib/d/learning/functions/
skylib_fluffos_v3/mudlib/d/learning/handlers/
skylib_fluffos_v3/mudlib/d/learning/help_topics/
skylib_fluffos_v3/mudlib/d/learning/help_topics/npcs/
skylib_fluffos_v3/mudlib/d/learning/help_topics/objects/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rcs_demo/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rcs_demo/RCS/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/crowd/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/situations/
skylib_fluffos_v3/mudlib/d/learning/save/
skylib_fluffos_v3/mudlib/d/learning/school/
skylib_fluffos_v3/mudlib/d/learning/school/add_sc/
skylib_fluffos_v3/mudlib/d/learning/school/characters/
skylib_fluffos_v3/mudlib/d/learning/school/general/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/basic_commands/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/edtutor/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/unix_tutor/
skylib_fluffos_v3/mudlib/d/learning/school/items/
skylib_fluffos_v3/mudlib/d/learning/school/npc_school/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/room_basic/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/situations/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/terrain_tutor/
skylib_fluffos_v3/mudlib/d/learning/text/
skylib_fluffos_v3/mudlib/d/liaison/
skylib_fluffos_v3/mudlib/d/mudlib/
skylib_fluffos_v3/mudlib/d/mudlib/changes/
skylib_fluffos_v3/mudlib/d/playtesters/
skylib_fluffos_v3/mudlib/d/playtesters/effects/
skylib_fluffos_v3/mudlib/d/playtesters/handlers/
skylib_fluffos_v3/mudlib/d/playtesters/items/
skylib_fluffos_v3/mudlib/d/sage/
skylib_fluffos_v3/mudlib/doc/
skylib_fluffos_v3/mudlib/doc/creator/
skylib_fluffos_v3/mudlib/doc/driver/
skylib_fluffos_v3/mudlib/doc/driver/efuns/arrays/
skylib_fluffos_v3/mudlib/doc/driver/efuns/buffers/
skylib_fluffos_v3/mudlib/doc/driver/efuns/calls/
skylib_fluffos_v3/mudlib/doc/driver/efuns/compile/
skylib_fluffos_v3/mudlib/doc/driver/efuns/filesystem/
skylib_fluffos_v3/mudlib/doc/driver/efuns/floats/
skylib_fluffos_v3/mudlib/doc/driver/efuns/functions/
skylib_fluffos_v3/mudlib/doc/driver/efuns/general/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mappings/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mixed/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mudlib/
skylib_fluffos_v3/mudlib/doc/driver/efuns/numbers/
skylib_fluffos_v3/mudlib/doc/driver/efuns/parsing/
skylib_fluffos_v3/mudlib/doc/login/
skylib_fluffos_v3/mudlib/doc/lpc/basic_manual/
skylib_fluffos_v3/mudlib/doc/lpc/intermediate/
skylib_fluffos_v3/mudlib/doc/new/add_command/
skylib_fluffos_v3/mudlib/doc/new/events/
skylib_fluffos_v3/mudlib/doc/new/handlers/
skylib_fluffos_v3/mudlib/doc/new/living/race/
skylib_fluffos_v3/mudlib/doc/new/living/spells/
skylib_fluffos_v3/mudlib/doc/new/object/
skylib_fluffos_v3/mudlib/doc/new/player/
skylib_fluffos_v3/mudlib/doc/new/room/guild/
skylib_fluffos_v3/mudlib/doc/new/room/outside/
skylib_fluffos_v3/mudlib/doc/new/room/storeroom/
skylib_fluffos_v3/mudlib/doc/object/
skylib_fluffos_v3/mudlib/doc/playtesters/
skylib_fluffos_v3/mudlib/doc/policy/
skylib_fluffos_v3/mudlib/doc/weapons/
skylib_fluffos_v3/mudlib/global/
skylib_fluffos_v3/mudlib/global/creator/
skylib_fluffos_v3/mudlib/handlers/
skylib_fluffos_v3/mudlib/include/casino/
skylib_fluffos_v3/mudlib/include/cmds/
skylib_fluffos_v3/mudlib/include/effects/
skylib_fluffos_v3/mudlib/include/npc/
skylib_fluffos_v3/mudlib/include/room/
skylib_fluffos_v3/mudlib/include/shops/
skylib_fluffos_v3/mudlib/net/daemon/
skylib_fluffos_v3/mudlib/net/daemon/chars/
skylib_fluffos_v3/mudlib/net/inherit/
skylib_fluffos_v3/mudlib/net/obj/
skylib_fluffos_v3/mudlib/net/obj/BACKUPS/
skylib_fluffos_v3/mudlib/obj/amulets/
skylib_fluffos_v3/mudlib/obj/armours/plate/
skylib_fluffos_v3/mudlib/obj/b_day/
skylib_fluffos_v3/mudlib/obj/clothes/transport/horse/
skylib_fluffos_v3/mudlib/obj/faith/symbols/
skylib_fluffos_v3/mudlib/obj/fungi/
skylib_fluffos_v3/mudlib/obj/gatherables/
skylib_fluffos_v3/mudlib/obj/instruments/
skylib_fluffos_v3/mudlib/obj/media/
skylib_fluffos_v3/mudlib/obj/misc/player_shop/
skylib_fluffos_v3/mudlib/obj/monster/godmother/
skylib_fluffos_v3/mudlib/obj/monster/transport/
skylib_fluffos_v3/mudlib/obj/rings/
skylib_fluffos_v3/mudlib/obj/scabbards/
skylib_fluffos_v3/mudlib/obj/spells/
skylib_fluffos_v3/mudlib/obj/stationery/
skylib_fluffos_v3/mudlib/obj/stationery/envelopes/
skylib_fluffos_v3/mudlib/obj/toys/
skylib_fluffos_v3/mudlib/obj/vessels/
skylib_fluffos_v3/mudlib/obj/weapons/axes/
skylib_fluffos_v3/mudlib/obj/weapons/chains/
skylib_fluffos_v3/mudlib/obj/weapons/maces/BACKUPS/
skylib_fluffos_v3/mudlib/save/autodoc/
skylib_fluffos_v3/mudlib/save/book_handler/
skylib_fluffos_v3/mudlib/save/books/history/calarien/
skylib_fluffos_v3/mudlib/save/mail/
skylib_fluffos_v3/mudlib/save/new_soul/data/
skylib_fluffos_v3/mudlib/save/parcels/
skylib_fluffos_v3/mudlib/save/playerinfo/
skylib_fluffos_v3/mudlib/save/players/d/
skylib_fluffos_v3/mudlib/save/players/s/
skylib_fluffos_v3/mudlib/save/random_names/
skylib_fluffos_v3/mudlib/save/random_names/data/
skylib_fluffos_v3/mudlib/save/terrains/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_desert/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_grassy_field/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_mountain/
skylib_fluffos_v3/mudlib/save/todo_lists/
skylib_fluffos_v3/mudlib/secure/
skylib_fluffos_v3/mudlib/secure/cmds/admin/
skylib_fluffos_v3/mudlib/secure/cmds/lord/
skylib_fluffos_v3/mudlib/secure/config/
skylib_fluffos_v3/mudlib/secure/handlers/autodoc/
skylib_fluffos_v3/mudlib/secure/handlers/intermud/
skylib_fluffos_v3/mudlib/secure/include/global/
skylib_fluffos_v3/mudlib/secure/save/
skylib_fluffos_v3/mudlib/secure/save/handlers/
skylib_fluffos_v3/mudlib/secure/std/
skylib_fluffos_v3/mudlib/secure/std/classes/
skylib_fluffos_v3/mudlib/secure/std/modules/
skylib_fluffos_v3/mudlib/std/creator/
skylib_fluffos_v3/mudlib/std/dom/
skylib_fluffos_v3/mudlib/std/effects/
skylib_fluffos_v3/mudlib/std/effects/external/
skylib_fluffos_v3/mudlib/std/effects/fighting/
skylib_fluffos_v3/mudlib/std/effects/magic/
skylib_fluffos_v3/mudlib/std/effects/magic/BACKUPS/
skylib_fluffos_v3/mudlib/std/effects/other/BACKUPS/
skylib_fluffos_v3/mudlib/std/effects/priest/
skylib_fluffos_v3/mudlib/std/effects/room/
skylib_fluffos_v3/mudlib/std/environ/
skylib_fluffos_v3/mudlib/std/guilds/
skylib_fluffos_v3/mudlib/std/guilds/old/
skylib_fluffos_v3/mudlib/std/languages/
skylib_fluffos_v3/mudlib/std/liquids/
skylib_fluffos_v3/mudlib/std/npc/
skylib_fluffos_v3/mudlib/std/npc/goals/
skylib_fluffos_v3/mudlib/std/npc/goals/basic/
skylib_fluffos_v3/mudlib/std/npc/goals/misc/
skylib_fluffos_v3/mudlib/std/npc/plans/
skylib_fluffos_v3/mudlib/std/npc/plans/basic/
skylib_fluffos_v3/mudlib/std/npc/types/
skylib_fluffos_v3/mudlib/std/npc/types/helper/
skylib_fluffos_v3/mudlib/std/npcs/
skylib_fluffos_v3/mudlib/std/outsides/
skylib_fluffos_v3/mudlib/std/races/shadows/
skylib_fluffos_v3/mudlib/std/room/basic/BACKUPS/
skylib_fluffos_v3/mudlib/std/room/basic/topography/
skylib_fluffos_v3/mudlib/std/room/controller/
skylib_fluffos_v3/mudlib/std/room/inherit/topography/
skylib_fluffos_v3/mudlib/std/room/topography/area/
skylib_fluffos_v3/mudlib/std/room/topography/iroom/
skylib_fluffos_v3/mudlib/std/room/topography/milestone/
skylib_fluffos_v3/mudlib/std/shadows/curses/
skylib_fluffos_v3/mudlib/std/shadows/disease/
skylib_fluffos_v3/mudlib/std/shadows/fighting/
skylib_fluffos_v3/mudlib/std/shadows/healing/
skylib_fluffos_v3/mudlib/std/shadows/magic/
skylib_fluffos_v3/mudlib/std/shadows/poison/
skylib_fluffos_v3/mudlib/std/shadows/room/
skylib_fluffos_v3/mudlib/std/shops/controllers/
skylib_fluffos_v3/mudlib/std/shops/objs/
skylib_fluffos_v3/mudlib/std/shops/player_shop/
skylib_fluffos_v3/mudlib/std/socket/
skylib_fluffos_v3/mudlib/std/soul/d/
skylib_fluffos_v3/mudlib/std/soul/e/
skylib_fluffos_v3/mudlib/std/soul/i/
skylib_fluffos_v3/mudlib/std/soul/j/
skylib_fluffos_v3/mudlib/std/soul/k/
skylib_fluffos_v3/mudlib/std/soul/l/
skylib_fluffos_v3/mudlib/std/soul/n/
skylib_fluffos_v3/mudlib/std/soul/o/
skylib_fluffos_v3/mudlib/std/soul/q/
skylib_fluffos_v3/mudlib/std/soul/r/
skylib_fluffos_v3/mudlib/std/soul/u/
skylib_fluffos_v3/mudlib/std/soul/v/
skylib_fluffos_v3/mudlib/std/soul/y/
skylib_fluffos_v3/mudlib/std/soul/z/
skylib_fluffos_v3/mudlib/std/stationery/
skylib_fluffos_v3/mudlib/w/
skylib_fluffos_v3/mudlib/w/default/
skylib_fluffos_v3/mudlib/w/default/armour/
skylib_fluffos_v3/mudlib/w/default/clothes/
skylib_fluffos_v3/mudlib/w/default/item/
skylib_fluffos_v3/mudlib/w/default/npc/
skylib_fluffos_v3/mudlib/w/default/room/
skylib_fluffos_v3/mudlib/w/default/weapon/
skylib_fluffos_v3/mudlib/www/
skylib_fluffos_v3/mudlib/www/java/
skylib_fluffos_v3/mudlib/www/secure/
skylib_fluffos_v3/mudlib/www/secure/lpc/advanced/
skylib_fluffos_v3/mudlib/www/secure/lpc/intermediate/
skylib_fluffos_v3/win32/
/*
* Fixed verb pluralisation errors in add_failed_messages.
* Sandoz, 30 June 2001
*/

#include <fuel_handler.h>
#include <move_failures.h>
inherit OBJECT_OBJ;
inherit "/std/basic/holdable";

#define BRIGHTNESS 30
#define MAX_FUEL 2000
#define FUEL_PER_TICK ( FUEL_TIME * 2 )

private int amount_of_fuel;
private int is_lit;

void setup_shorts();

void create() {
    object::create();
    holdable::create();
} /* create() */

void setup() {
    amount_of_fuel = MAX_FUEL;
    set_name( "torch" );
    add_plural( "torches" );
    set_material("wood");
    setup_shorts();
    set_long( function() {
          string str;

          if ( is_lit && amount_of_fuel) {
              call_out( (: setup_shorts() :), 2 );
              str = "There is a fire burning out of control on the end "
              "of a stick of wood.  There is a lot of smoke coming "
              "off the fire, one of those ones that no matter which "
              "way you turn, it goes up your nose.";
              switch ( amount_of_fuel / ( MAX_FUEL / 10 ) ) {
              case 10 :
              case 9  :
                  return str+"  The torch looks brand new, it will burn for "
                  "ages yet.\n";
              case 8 :
              case 7 :
              case 6 :
                  return str+"  Not yet burning for very long, this torch is "
                  "pretty happy with itself, it does not seem "
                  "to care about its short life span.\n";
              case 5 :
              case 4 :
                  return str+"  The torch is happily burning.  It is in the "
                  "prime of its life.\n";
              case 3 :
                  return str+"  The torch has a little way to go yet.\n";
              case 2 :
                  return str+"  It looks like this torch will not "
                  "last much longer, buying a new one could "
                  "be a good investment.\n";
              case 1 :
              case 0 :
                  return str+"  The torch is spluttering, there is huge "
                  "amounts of smoke coming off it.  It looks like "
                  "it is about to go out.\n";
              }
          }
          if ( amount_of_fuel >= MAX_FUEL )
              return "The lump of what looks to be some sort of tree has a few "
              "dirty rags wrapped around the end of it, it appears as "
              "though it might be possible to light them.  The dirty rags "
              "have some sort of stuff covering them, you guess it is "
              "to make them burn better.\n";
          if ( amount_of_fuel > MAX_FUEL / 2 )
              return "Someone has cut down a tree, chopped it up into smaller "
              "chunks and then wrapped some rags around the end of it.  "
              "The rags are blackened and it looks like someone set "
              "fire to them, perhaps you can too?\n";
          str = "The lump of what looks to be some sort of tree has a few "
          "dirty rags wrapped around the end of it.  ";
          if ( !amount_of_fuel )
              return str +"The end is completely blackened.  You would "
              "have to be extremely clever to get this torch "
              "going again.\n";
          switch (amount_of_fuel/(MAX_FUEL/10)) {
          case 5 :
          case 4 :
              return str +"The end has been blackened quite a bit, "
              "but it looks like there is quite a bit of "
              "go left still.\n";
          case 3 :
          case 2 :
              return str +"A few rags here and there cling onto a meager "
              "existance.  You could set fire to them and "
              "make their life hell for a little while, but "
              "not very long.\n";
          case 1 :
          case 0 :
              return str +"You can just see the remains of some rags "
              "attached to the blackened and burnt end of "
              "the torch.  It will last for a short while "
              "longer.\n";
          }
          return "Whoops.  Tell a creator if you see this.\n";
      }
    );
    is_lit = 0;
    set_weight( 6 );
    set_value( 50 );
} /* setup() */

void set_fuel(int f) {
    amount_of_fuel = f;
    if(amount_of_fuel < 0)
        amount_of_fuel = 0;
    setup_shorts();
} /* set_fuel() */

void init() {
    TP->add_command( "light", TO );
    TP->add_command( "extinguish", TO );
    TP->add_command( "dowse", TO );
    TP->add_command( "douse", TO );
} /* init() */

void setup_shorts() {
    if ( is_lit && amount_of_fuel) {
        set_short( "lit torch" );
        set_main_plural( "lit torches" );
        remove_adjective( ({ "lightable", "burnt", "out" }) );
        add_adjective( "lit" );
    } else if ( amount_of_fuel > 0 ) {
        set_short( "lightable torch" );
        set_main_plural( "lightable torches" );
        remove_adjective( ({ "lit", "burnt", "out" }) );
        add_adjective( "lightable" );
    } else {
        set_short( "burnt torch" );
        set_main_plural( "burnt torches" );
        remove_adjective( ({ "lit", "lightable" }) );
        add_adjective( ({ "burnt", "out" }) );
    }
} /* setup_shorts() */

int do_light() {
    if ( ENV(TO) != TP ) {
        TP->add_failed_mess( TO, "You are not carrying $D.\n" );
        return 0;
    }

    if (amount_of_fuel <= 0) {
        TP->add_failed_mess( TO, "You can't $V $D, because $V$0=it,they$V$ "
                                 "$V$0=is,are$V$ burnt out.\n" );
        return 0;
    }
    if (is_lit) {
        TP->add_failed_mess( TO, "You can't $V $D, because $V$0=it,they$V$ "
                                 "$V$0=is,are$V$ already lit.\n" );
        return 0;
    }
    if (!query_holder() && !sizeof( TO->hold_item( TP, -1 ) ) ) {
        TP->add_failed_mess( TO, "You are unable to hold $D, because your "
            "arms are already full.\n" );
        return 0;
    }
    is_lit = 1;
    FUEL_HANDLER->add_burner( TO );
    set_light( BRIGHTNESS );
    call_out( "setup_shorts", 2);
    return 1;
} /* do_light() */

void out_of_fuel() {
    is_lit = amount_of_fuel = 0;
    set_light( 0 );
    set_value( 0 );
    FUEL_HANDLER->remove_burner( TO );
    tell_room( ENV(TO), poss_short() +" goes out.\n" );
    call_out( "setup_shorts", 2 );
} /* out_of_fuel() */

void do_warning() {
    tell_room( ENV(TO), poss_short()+" starts to sputter and smoke a lot.  It "
        "is on its last legs.\n");
    return;
} /* do_warning() */

void consume_fuel() {
    amount_of_fuel -= FUEL_PER_TICK;
    if(amount_of_fuel < 0)
        amount_of_fuel = 0;

    switch ( amount_of_fuel ) {
    case (200-FUEL_PER_TICK) .. 200:
        do_warning();
        break;
    case 0:
        out_of_fuel();
        break;
    default:
        /* do nothing */
    }
} /* consume_fuel() */

int do_extinguish() {
    if ( !is_lit && objectp( TP ) ) {
        TP->add_failed_mess( TO, "You can't $V $D, because $V$0=it,they$V$ "
                                 "$V$0=is,are$V$ not lit.\n" );
        return 0;
    } else if ( !is_lit ) {
        return 0;
    }
    FUEL_HANDLER->remove_burner( TO );
    is_lit = 0;
    set_light( 0 );
    call_out( "setup_shorts", 2);
    return 1;
} /* do_extinguish() */

int do_dowse() { return do_extinguish(); }
int do_douse() { return do_extinguish(); }

void dest_me() {
    FUEL_HANDLER->remove_burner( TO );
    set_light( 0 );
    holdable::dest_me();
    object::dest_me();
} /* dest_me() */

mixed *stats() {
    return ::stats() + ({
      ({ "fuel" , amount_of_fuel, }),
      ({ "is lit", is_lit, }),
    });
} /* stats() */

mixed query_dynamic_auto_load() {
    return ([ "::" : object::query_dynamic_auto_load(),
      "amount of fuel" : amount_of_fuel,
      "hold" : holdable::query_dynamic_auto_load(),
      "is lit" : is_lit,
    ]);
} /* query_dynamic_auto_load() */

int held_this_item(int type, object holder, mixed arg) {
    if (!type) {
        if (holder && is_lit) {
            tell_object( holder,
              "You extinguish the "+ short() +" as you put it down.\n");
            tell_room( ENV(holder ),
              holder->short() +" extinguishes the "+
              short() +" as "+ holder->query_pronoun()
              +" puts it down.\n", ({ holder }));
        }
        do_extinguish();
    } else if (type == 2) {
        if (arg && holder && amount_of_fuel > 0) {
            set_light( BRIGHTNESS );
            FUEL_HANDLER->add_burner( TO );
            is_lit = 1;
        } else {
            is_lit = 0;
        }
        setup_shorts();
    }
    return 1;
} /* held_this_item() */

void init_dynamic_arg( mapping arg, mixed dummy ) {
    amount_of_fuel = arg["amount of fuel"];
    is_lit = arg["is lit"];
    if( arg["hold"] )
        holdable::init_dynamic_arg( arg["hold"], arg["is lit"] );
    ::init_dynamic_arg(arg["::"]);
} /* init_dynamic_arg() */

void init_static_arg(mapping arg) { return; }
mapping query_static_auto_load() { return 0; }

varargs int move( mixed ob, string mess1, string mess2 ) {
    int ret;

    ret = holdable::move(ob);
    if (ret != MOVE_OK) {
        return ret;
    }
    return object::move( ob, mess1, mess2 );
} /* move() */

void self_light() {
    is_lit = 1;
    FUEL_HANDLER->add_burner( TO );
    set_light( BRIGHTNESS );
    setup_shorts();
    return;
}/*self_light*/

int query_amount_of_fuel() { return amount_of_fuel; }