// Convert all Loathing Legion whatevers into their base form
void LoathingLegionKnife() {
	int x = item_amount($item[Loathing Legion knife]);
	put_closet(x, $item[Loathing Legion knife]);
	foreach other in get_related($item[Loathing Legion knife], "fold")
		while(item_amount(other) + equipped_amount(other) > 0 && other != $item[Loathing Legion knife]) {
			if(equipped_amount(other) > 0)
				cli_execute("unequip "+other);
			cli_execute("fold Loathing Legion knife");
			x += 1;
			put_closet(1, $item[Loathing Legion knife]);
		}
	take_closet(x, $item[Loathing Legion knife]);
}
void main() {
	if(get_property("kingLiberated").to_boolean()) {
		LoathingLegionKnife();
		print("Prepared for Ascension.");
	} else abort("WTF!?  Why is a preAscensionScript runnin'?");
}