basic_ritual.c
skylib_mudos_v1/mudlib/std/shadows/rituals/basic_ritual.c · 547 B
From the archive skylib_mudos_v1.tar.gz
Download the archive « Back to the archive contents
inherit "/std/effect_shadow";
int query_casting_ritual() { return 1; }
int queue_commands() { return 1; }
void interrupt_ritual() {
mixed args;
args = arg();
if( args ) {
args[ 0 ] = -1 - args[ 0 ];
args[ 2 ] = ({ });
set_arg( args );
}
remove_this_effect();
} /* interrupt_ritual() */
void event_move_object( mixed from, mixed to ) {
if( player->eff_of( player->sid_to_enum(id) )->query_no_move() )
interrupt_ritual();
player->event_move_object( from, to );
} /* event_move_object() */