BACKUP "BetterStatDrain/backup"
AUTHOR semiticgod
VERSION "v1.0"

AUTO_TRA ~BetterStatDrain/tra/%s~

BEGIN "Better Stat Drain" //

COPY	"BetterStatDrain/spl/USSTATD1.spl" override
	SAY 0xC #-1
COPY	"BetterStatDrain/spl/USSTATD2.spl" override
	SAY 0xC #-1
COPY	"BetterStatDrain/spl/USSTATD3.spl" override
	SAY 0xC #-1


COPY_EXISTING_REGEXP ~.*\.itm~ override
LPF CLONE_EFFECT
INT_VAR
silent = 1
check_headers = 0
match_opcode = 208 // Minimum HP
opcode = 232 // Cast Spell on Condition
parameter1 = 0
STR_VAR
resource = ~USSTATD2~ // Spell filename
END
BUT_ONLY

BEGIN "Give XP for stat drain kills (vanilla items and spells only)" //

COPY	"BetterStatDrain/eff/USSTATD4.eff" override
COPY	~BetterStatDrain/itm/WAWAK.itm~ ~override~
COPY	~BetterStatDrain/itm/MINDFLAY.itm~ ~override~
COPY	~BetterStatDrain/itm/NPSW06.itm~ ~override~
COPY	~BetterStatDrain/spl/SPCL121.spl~ override
