OCprisoner.c

skylib_fluffos_v3/mudlib/std/effects/other/OCprisoner.c · 936 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/* This is the OC prisoner effect *
 * Coded By Laffs 21/04/99        */

#include <effect.h>
#include "path.h"

string query_classification() { return "OC.prisoner"; }

string query_shadow_ob() { return SHADOWS+"OCprisoner"; }

int beginning(object player, int arg) {
  player->submit_ee(0, arg, EE_REMOVE);
  return arg;
} /* beginning() */

int merge_effect( object player, int time1, int time2 ) {
  int duration;
  duration = (time2/2 + player->expected_tt() );
  player->submit_ee( 0, duration, EE_REMOVE );
  return duration;
} /* merge_effects() */

void end( object player ) {
tell_object( player, "Your depressing experience in jail is finally over.\n" );
  player->remove_property("tell block");
  player->remove_property("OC criminal");
  player->remove_property("OC prison briefed");
} /* end() */

void restart( object player ) {
  tell_object( player, "You return to the gloom of the Jail cell.\n" );
} /* restert () */ 

Site Stats

Snippets: 1791
Codebases: 571