publicconststringAUDIO_PATH="The Essential Retro Video Game Sound Effects Collection [512 sounds] By Juhani Junkala/explosions/Shortest/sfx_exp_shortest_hard1";
publicoverrideulongId=>104;
publicoverridestringName=>"Chargeable Player Attack";
publicoverridestringDescription=>"A basic projectile shooting attack the player has.";
publicBasicProjectile2(){
AttackStats=newAttackStats{
Damage=1f,
Knockback=1f,
Range=10f,
ProjectileSpeed=10f,
AttackSpeed=1f,
CritChance=0.1f,
CritDamageModifier=2f,
};
Cooldown=newTimeSpan(0,0,0,1,0);
ManaCost=2;
FireType=FireType.Charge;
MinCharge=0.01f;
MaxCharge=4f;
}
/*
Activates the ability.
Returns true if the ability was successfully activated.
- Even if nothing was hit, used to indicate that cooldowns should be updated.
This should be overridden in sub-classes for the actual abilities.