Find
You are looking at an amulet of healing
It draws in energy from the surroundings, helping to fortify its wearer.
Created by
omenofdoom
, last updated 20 Jan 2012
Code
##tickloc:runsub ticked;
##ticked:
runsub checkhost/10;
##checkhost:
$host = $actor's host;
if $host > 0 then next1;
##next1:
if $host's material like living then next2;
##next2:
$hlth = $host's health;
if $hlth < $host's healthmax then healit else cureit;
##healit:
add 2 to $hlth;
set $host's health to $hlth;
$thing1 = (sparkles,shines,luminesces,glows);
say 'msg',"[$actor] $thing1 brightly!";
##cureit:
set $hlth to $host's healthmax;
set $host's health to $hlth;