playtesting.c

skylib_fluffos_v3/mudlib/std/shadows/other/playtesting.c · 559 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

inherit "/std/effect_shadow";
#include <move_failures.h>

string query_tester() { return arg(); }

int move( mixed dest, string mess1, string mess2 ) {
    object tester;
    int i;
    if( this_player() ) {
        tester = this_player();
    } else {
        if( dest->query_property( "player" ) ) {
            tester = dest;
        }
    }
    if( ( i = player->move( dest, mess1, mess2 ) ) == MOVE_OK ) {
        if( tester )
            if( playtesterp( tester ) ) {
                set_arg( tester->query_name() );
            }
    }
    return i;
}

Site Stats

Snippets: 1791
Codebases: 571