weak_poison_cure.c

skylib_fluffos_v3/mudlib/std/effects/ingested/weak_poison_cure.c · 613 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

#include <effect.h>

string query_classification() { return "cure.poison.weak"; }

int beginning( object player, int time ) {
  player->submit_ee( 0, 2, EE_REMOVE );
} 
 
void end( object player, int time ) {
  int *effnum, succeed;
  effnum = (int *)this_player()->effects_matching("body.poison") +
   (int *)this_player()->effects_matching("poison.constitution");
  if(effnum == ({ }))
    return;
  if(!random(100))
   this_player()->delete_effect(effnum[0]);
  else{
   this_player()->adjust_hp(20);
   write("You feel a little better, but the poison still courses "
     "through your veins.\n");
  }
   
}

Site Stats

Snippets: 1791
Codebases: 571