package ItemAction
using RTDB, Prereqs, Effectors

Loot : ItemAction
{
	actionName = "Loot";
}

Equip : ItemAction
{
	actionName = "EquipItem";
}

Disassemble : ItemAction
{
	actionName = "Disassemble";
	rewards = 
	[
		"RPGActionRewards.Disassemble"
	];
}

JunkDisassemble : Disassemble
{
}

ConsumableDisassemble : Disassemble
{
}

GadgetDisassemble : Disassemble
{
}

WeaponDisassemble : Disassemble
{
}

ProgramDisassemble : Disassemble
{
}

ModDisassemble : Disassemble
{
}

Consume : ItemAction
{
	actionName = "Consume";
	bool removeAfterUse = true;
}

UseHealCharge : ItemAction
{
	actionName = "UseHealCharge";
	removeAfterUse = false;
	startEffects = 
	[
		{
			effectorToTrigger = 
			{
				effectTags = 
				[
					"InhalerBuff", "InjectorBuff"
				];
			} : RemoveStatusEffectsEffector;
		}
	];
}

Drink : ItemAction
{
	actionName = "Drink";
	bool removeAfterUse = true;
}

Eat : ItemAction
{
	actionName = "Eat";
	bool removeAfterUse = true;
}

Learn : Consume
{
	actionName = "Learn";
	bool removeAfterUse = true;
	isDefaultLootChoice = true;
}

Read : ItemAction
{
	actionName = "Read";
	string journalEntry = "";
}

Crack : CrackAction
{
	actionName = "Crack";
	fk< Effector > effectorToApply = "Effectors.Crack";
}

DownloadFunds : CrackAction
{
	actionName = "DownloadFunds";
}

Drop : ItemAction
{
	actionName = "Drop";
}

UseToken : ItemAction
{
	actionName = "UseToken";
	bool removeAfterUse = true;
}

