|
|
@ -91,23 +91,7 @@ void Wizard::InitializeClassAbilities(){ |
|
|
|
p->teleportStartPosition=p->GetPos(); |
|
|
|
p->teleportStartPosition=p->GetPos(); |
|
|
|
p->iframe_time="Wizard.Right Click Ability.IframeTime"_F; |
|
|
|
p->iframe_time="Wizard.Right Click Ability.IframeTime"_F; |
|
|
|
for(int i=0;i<"Wizard.Right Click Ability.ParticleCount"_I;i++){ |
|
|
|
for(int i=0;i<"Wizard.Right Click Ability.ParticleCount"_I;i++){ |
|
|
|
game->AddEffect( |
|
|
|
game->AddEffect(std::make_unique<Effect>(p->GetPos()+vf2d{(util::random("Wizard.Right Click Ability.ParticleRange"_F/100*2)-"Wizard.Right Click Ability.ParticleRange"_F/100)*12,(util::random("Wizard.Right Click Ability.ParticleRange"_F/100*2)-"Wizard.Right Click Ability.ParticleRange"_F/100)*12},util::random("Wizard.Right Click Ability.ParticleLifetimeMax"_F)+"Wizard.Right Click Ability.ParticleLifetimeMin"_F,AnimationState::DOT_PARTICLE,p->upperLevel,"Wizard.Right Click Ability.ParticleSize"_F,"Wizard.Right Click Ability.ParticleFadetime"_F,vf2d{util::random("Wizard.Right Click Ability.ParticleSpeedMax"_F*2)+"Wizard.Right Click Ability.ParticleSpeedMin"_F,util::random("Wizard.Right Click Ability.ParticleSpeedMax"_F*2)+"Wizard.Right Click Ability.ParticleSpeedMin"_F},"Wizard.Right Click Ability.ParticleColor"_Pixel)); |
|
|
|
std::make_unique<Effect>( |
|
|
|
|
|
|
|
p->GetPos()+ |
|
|
|
|
|
|
|
vf2d{(util::random("Wizard.Right Click Ability.ParticleRange"_F/100*2)- |
|
|
|
|
|
|
|
"Wizard.Right Click Ability.ParticleRange"_F/100)*12 |
|
|
|
|
|
|
|
,(util::random("Wizard.Right Click Ability.ParticleRange"_F/100*2)- |
|
|
|
|
|
|
|
"Wizard.Right Click Ability.ParticleRange"_F/100)*12}, |
|
|
|
|
|
|
|
util::random("Wizard.Right Click Ability.ParticleLifetimeMax"_F)+ |
|
|
|
|
|
|
|
"Wizard.Right Click Ability.ParticleLifetimeMin"_F, |
|
|
|
|
|
|
|
AnimationState::DOT_PARTICLE,p->upperLevel, |
|
|
|
|
|
|
|
"Wizard.Right Click Ability.ParticleSize"_F, |
|
|
|
|
|
|
|
"Wizard.Right Click Ability.ParticleFadetime"_F, |
|
|
|
|
|
|
|
vf2d{util::random("Wizard.Right Click Ability.ParticleSpeedMax"_F*2)+ |
|
|
|
|
|
|
|
"Wizard.Right Click Ability.ParticleSpeedMin"_F, |
|
|
|
|
|
|
|
util::random("Wizard.Right Click Ability.ParticleSpeedMax"_F*2)+ |
|
|
|
|
|
|
|
"Wizard.Right Click Ability.ParticleSpeedMin"_F}, |
|
|
|
|
|
|
|
"Wizard.Right Click Ability.ParticleColor"_Pixel)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|