Find
You are looking at a vampiric dagger
An ordinary, relatively sharp, dagger.
You wouldn't think anything of it, but you can't help noticing the sharpened fangs lining its edges.
Created by
omenofdoom
, last updated 18 Apr 2008
Code
if second of hit then doit;
##doit:
$hh = $init_obj's health;
$hm = $init_obj's healthmax;
if $hh < $hm then healit else fullme;
$th = $target's health;
$tm = $target's healthmax;
if $th < 1 then deadit else hurtit;
##healit:
add 3 to $hh;
set $hh = $init_obj's health;
print "[$init_obj] drains some of [$target]'s life force";
print "[$init_obj] feels healthier";
##fullme:
print "[$init_obj] is fully replenished";
##deadit:
set $th = 0;
print "[$target] falls to the floor, drained of all life";
##hurtit:
take 3 from $th;
print "[$target] is weakened from [$actor]";
set $target's health = $th;