Add in Charged Shot ability and allow precasting without the targeting indicator.
This commit is contained in:
+5
-2
@@ -5,6 +5,7 @@
|
||||
#include "Effect.h"
|
||||
#include "Crawler.h"
|
||||
#include "BulletTypes.h"
|
||||
#include "utils.h"
|
||||
|
||||
INCLUDE_MONSTER_LIST
|
||||
INCLUDE_BULLET_LIST
|
||||
@@ -14,7 +15,7 @@ std::string Ranger::name="Ranger";
|
||||
Class Ranger::cl=RANGER;
|
||||
Ability Ranger::rightClickAbility=Ability("Retreat",7,0,VERY_DARK_BLUE,DARK_BLUE);
|
||||
Ability Ranger::ability1=Ability("Rapid Fire",12,35);
|
||||
Ability Ranger::ability2=Ability("Charged Shot",15,40);
|
||||
Ability Ranger::ability2=Ability("Charged Shot",15,40,VERY_DARK_RED,DARK_RED,PrecastData(0.3));
|
||||
Ability Ranger::ability3=Ability("Multishot",25,50);
|
||||
Ability Ranger::ability4=Ability("???",0,0);
|
||||
AnimationState Ranger::idle_n=RANGER_IDLE_N;
|
||||
@@ -72,7 +73,9 @@ void Ranger::InitializeClassAbilities(){
|
||||
#pragma region Ranger Ability 2 (???)
|
||||
Ranger::ability2.action=
|
||||
[](Player*p,vf2d pos={}){
|
||||
return false;
|
||||
vf2d arrowVelocity=util::pointTo(p->GetPos(),game->GetWorldMousePos());
|
||||
BULLET_LIST.push_back(std::make_unique<ChargedArrow>(p->GetPos(),arrowVelocity*600,20,p->GetAttack()*2.5,p->OnUpperLevel(),true));
|
||||
return true;
|
||||
};
|
||||
#pragma endregion
|
||||
#pragma region Ranger Ability 3 (???)
|
||||
|
||||
Reference in New Issue
Block a user