EFFECT_S.C

LIB3/STD/EFFECT_S.C · 322 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

/* this is to be inherited by effect shadows */

object  player;
int     id;

attach_to_player( object p, int i )
{
    player = p;
    id = i;
    return shadow( p, 1 );
}

void    remove_effect_shadow( int i )
{
    if( i == id )
    {
	destruct( this_object() );
	return;
    }
    player->remove_effect_shadow( i );
}

Site Stats

Snippets: 1791
Codebases: 571