Skip to content

Commit 63e659d

Browse files
committed
Update PvpCharacterEntity.php
1 parent e7d2fff commit 63e659d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎game/Entities/PvpCharacterEntity.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,8 @@ private function handleNinja(): void
364364

365365
if ($this->ninjaCurrentMoveTime > 0) {
366366
// Set velocity
367-
$this->vel->x = $this->ninjaActivationDir->x * 800;
368-
$this->vel->y = $this->ninjaActivationDir->y * 800;
367+
$this->vel->x = $this->ninjaActivationDir->x * 50;
368+
$this->vel->y = $this->ninjaActivationDir->y * 50;
369369

370370
$oldPos = clone $this->position;
371371

@@ -430,7 +430,7 @@ protected function shootNinja(): int
430430

431431
$angle = $this->angle / 256.0;
432432
$this->ninjaActivationDir = new Vector2(cos($angle), sin($angle));
433-
$this->ninjaCurrentMoveTime = 25; // 500ms at 50 tick/s
433+
$this->ninjaCurrentMoveTime = 10; // 200ms at 50 tick/s
434434
$this->ninjaOldVelAmount = $this->vel->length();
435435
$this->ninjaNumObjectsHit = 0;
436436
$this->ninjaHitObjects = [];

0 commit comments

Comments
 (0)