Added mini particles for teleporting.

This commit is contained in:
2023-07-06 03:43:34 -05:00
parent 88666b1d61
commit 78b6113d8e
6 changed files with 15 additions and 7 deletions
+3
View File
@@ -316,6 +316,9 @@ bool Wizard::RightClickAbility(){
p.teleportTarget=teleportPoint;
p.teleportStartPosition=p.GetPos();
p.iframe_time=0.35;
for(int i=0;i<16;i++){
game->AddEffect(Effect(p.GetPos()+vf2d{(rand()%160-80)/10.f,(rand()%160-80)/10.f},float(rand()%300)/1000,AnimationState::DOT_PARTICLE,0.3,0.2,{float(rand()%1000-500)/100,float(rand()%1000-500)/100},BLACK));
}
return true;
} else {
p.notificationDisplay={"Cannot Teleport to that location!",0.5};