[Action] ID=Mec_activate; 
	name=Activate;
	icon=icon_Mec_activate;
	mpCost=1;
	tooltip=Charge <math=c:rank> spot(s) with energy to activate mechanisms.;
	rankUpTooltip=Each rank adds +1 target.;
	
	XPCost=30;
	XPCost=100;
	XPCost=200;
	XPCost=300;
	XPCost=500;
	
	numTargets=c:rank;
	casterAnimation=use;
	maxRank=5;
	
	FXOnTarget=dustCircle;
	FXOnTargetColor=DarkTurquoise;
	FXOnTarget=upwardLines;
	FXOnTargetColor=Turquoise;
	FXOnTarget=sfx_lowAura;
	FXOnTarget=sparkle;
[ActionAoE] 
	ID=Mec_activate;
	needsLoS = false;
	needsLoE = false;
	airborne = true;
	arc = true;
	minRange = 1;
	maxRange = 6;
	bypassAll=true;
	occupyAll=true;
	canSelectActors=false;
[AvAffecter]
	ID=Mec_activate; 
	actorValue=HP;
	magnitude= -c:MagAtk / 2;
	duration=-2;
	chance=100;
	element=magic;
	element=focus;
	FXOnHit=sparkles;
	FXOnHitColor=Red;
[AvAffecterAoE]
	ID=Mec_activate;
	cloneFrom=oneTile;
	canSelectAllies=false;
[AvAffecter]
	ID=Mec_activate; 
	harmful=false;
	actorValue=HP;
	magnitude= c:MagAtk / 2;
	duration=-2;
	chance=100;
	element=magic;
	element=focus;
	element=removeDecay;
	FXOnHit=sparkles;
	FXOnHitColor=Turquoise;
[AvAffecterAoE]
	ID=Mec_activate;
	cloneFrom=oneTile;
	canSelectEnemies=false;
	
	

[Action] ID=Mec_setTurret; 
	name=Place Turret;
	icon=icon_Mec_turret;
	mpCost=12;
	tooltip=Place a turret that fires every <icon=time>20. When Activated, it turns clockwise.;
	rankUpTooltip=Each rank adds +1 range.;
	
	AIRatingBias = -999;
	
	XPCost=400;
	XPCost=450;
	XPCost=600;
	XPCost=700;
	
	casterAnimation=swing;
	maxRank=4;
	
	FXOnTarget=swing;
[ActionAoE] 
	ID=Mec_setTurret; shape=2;
	needsLoS = false;
	needsLoE = true;
	minRange = 1;
	maxRange = 0;
	maxRangeBonus=c:rank;
	airborne=true;
	bypassAll=false;
	occupyAll=false;
	canSelectActors=false;
[AvAffecter]
	ID=Mec_setTurret; 
	actorValue=summonItem;
	magnitude=mechanist_turret1;
	duration=1;
	FXOnTile=throw_mechanist_turret1;
[AvAffecterAoE]
	ID=Mec_setTurret;
	cloneFrom=oneTile;
	
	
[Action] ID=Mec_setWall; 
	name=Portable Wall;
	icon=icon_Mec_wall;
	mpCost=6;
	tooltip=Lay down a wall extending <math=c:rank+2> tiles out from you in a line.;
	rankUpTooltip=Each rank adds +1 range.;
	
	AIRatingBias = -999;
	
	XPCost=250;
	XPCost=450;
	XPCost=575;
	XPCost=800;
	
	casterAnimation=swing;
	maxRank=4;
	
	FXOnTarget=swing;
[ActionAoE] 
	ID=Mec_setWall; shape=2;
	needsLoS = false;
	needsLoE = true;
	minRange = 1;
	maxRange = 2;
	maxRangeBonus=c:rank;
	bypassAll=false;
	occupyAll=false;
	canSelectActors=false;
[AvAffecter]
	ID=Mec_setWall; 
	actorValue=summonItem;
	magnitude=mechanist_wall;
	duration=1;
	FXOnTile=portableWallExtend;
[AvAffecterAoE]
	ID=Mec_setWall;
	aoeCasterAsOrigin=true;
	coneAngle=1;
	maxRange=0;
	maxRangeBonus=0;
	maxRangeAddDistanceFromCaster=true;
	
	

[Action] ID=Mec_throwFlare; 
	name=Remote Flare;
	icon=icon_Mec_flare;
	mpCost=4;
	tooltip=Toss a device that explodes when Activated, dealing fire damage and stunning for <icon=time>2.;
	rankUpTooltip=Each rank adds +1 range.;
	special=limitRemoteBombsTo5InTravelMode;
	
	XPCost=150;
	XPCost=300;
	XPCost=600;
	casterAnimation=swing;
	
	FXOnTarget=throw_remote_flare;
	FXOnTarget=swing;
	maxRank=3;
[ActionAoE]
	ID=Mec_throwFlare;
	needsLoS = false;
	needsLoE = true;
	minRange = 1;
	maxRange = 2;
	maxRangeBonus = c:rank;
	airborne=true;
	arc=true;
	occupyAll=false;
	canSelectActors=false;
[AvAffecter]
	ID=Mec_throwFlare; 
	harmful=false;
	element=replaceCapsule;
[AvAffecterAoE]
	ID=Mec_throwFlare;
	cloneFrom=oneTile;
[AvAffecter]
	ID=Mec_throwFlare; 
	actorValue=summonItem;
	magnitude=remote_flare;
	duration=1;
	FXOnTile=starDonk_thrownItem;
[AvAffecterAoE]
	ID=Mec_throwFlare;
	cloneFrom=oneTile;
	

[Action] ID=Mec_throwPulse; 
	name=Remote Pulse;
	icon=icon_Mec_pulse;
	mpCost=4;
	tooltip=Toss a device that explodes when Activated, dealing wind damage and pushing 1 tile.;
	rankUpTooltip=Each rank adds +1 range.;
	special=limitRemoteBombsTo5InTravelMode;
	
	XPCost=150;
	XPCost=300;
	XPCost=600;
	
	casterAnimation=swing;
	
	FXOnTarget=throw_remote_pulse;
	FXOnTarget=swing;
	maxRank=3;
[ActionAoE]
	ID=Mec_throwPulse;
	needsLoS = false;
	needsLoE = true;
	minRange = 1;
	maxRange = 2;
	maxRangeBonus = c:rank;
	airborne=true;
	arc=true;
	occupyAll=false;
	canSelectActors=false;
[AvAffecter]
	ID=Mec_throwPulse; 
	harmful=false;
	element=replaceCapsule;
[AvAffecterAoE]
	ID=Mec_throwPulse;
	cloneFrom=oneTile;
[AvAffecter]
	ID=Mec_throwPulse; 
	actorValue=summonItem;
	magnitude=remote_pulse;
	duration=1;
	FXOnTile=starDonk_thrownItem;
[AvAffecterAoE]
	ID=Mec_throwPulse;
	cloneFrom=oneTile;


	
[Action] ID=Mec_throwFrost; 
	name=Remote Frost;
	icon=icon_Mec_frost;
	mpCost=4;
	tooltip=Toss a device that bursts when Activated, dealing ice damage and spreading ice across the ground.;
	rankUpTooltip=Each rank adds +1 range.;
	special=limitRemoteBombsTo5InTravelMode;
	
	XPCost=150;
	XPCost=300;
	XPCost=600;
	
	casterAnimation=swing;
	
	FXOnTarget=throw_remote_frost;
	FXOnTarget=swing;
	maxRank=3;
[ActionAoE]
	ID=Mec_throwFrost;
	needsLoS = false;
	needsLoE = true;
	minRange = 1;
	maxRange = 2;
	maxRangeBonus = c:rank;
	airborne=true;
	arc=true;
	occupyAll=false;
	canSelectActors=false;
[AvAffecter]
	ID=Mec_throwFrost; 
	harmful=false;
	element=replaceCapsule;
[AvAffecterAoE]
	ID=Mec_throwFrost;
	cloneFrom=oneTile;
[AvAffecter]
	ID=Mec_throwFrost; 
	actorValue=summonItem;
	magnitude=remote_frost;
	duration=1;
	FXOnTile=starDonk_thrownItem;
[AvAffecterAoE]
	ID=Mec_throwFrost;
	cloneFrom=oneTile;
	
	

[Action] ID=Mec_throwHeal; 
	name=Remote Heal;
	icon=icon_Mec_heal;
	mpCost=4;
	tooltip=Toss a device that bursts when Activated, healing and curing status effects.;
	rankUpTooltip=Each rank adds +1 range.;
	special=limitRemoteBombsTo5InTravelMode;
	
	XPCost=150;
	XPCost=300;
	XPCost=600;
	
	casterAnimation=swing;
	
	FXOnTarget=throw_remote_heal;
	FXOnTarget=swing;
	maxRank=3;
[ActionAoE]
	ID=Mec_throwHeal;
	needsLoS = false;
	needsLoE = true;
	minRange = 1;
	maxRange = 2;
	maxRangeBonus = c:rank;
	airborne=true;
	arc=true;
	occupyAll=false;
	canSelectActors=false;
[AvAffecter]
	ID=Mec_throwHeal; 
	harmful=false;
	element=replaceCapsule;
[AvAffecterAoE]
	ID=Mec_throwHeal;
	cloneFrom=oneTile;
[AvAffecter]
	ID=Mec_throwHeal; 
	actorValue=summonItem;
	magnitude=remote_heal; 
	duration=1;
	FXOnTile=starDonk_thrownItem;
[AvAffecterAoE]
	ID=Mec_throwHeal;
	cloneFrom=oneTile;
	