mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
fix typo
This commit is contained in:
@@ -128,7 +128,7 @@ public class ToclafaneMinion : ModProjectile {
|
|||||||
bool inRange = between < distanceFromTarget;
|
bool inRange = between < distanceFromTarget;
|
||||||
bool lineOfSight = Collision.CanHitLine(Projectile.position, Projectile.width,
|
bool lineOfSight = Collision.CanHitLine(Projectile.position, Projectile.width,
|
||||||
Projectile.height, npc.position, npc.width, npc.height);
|
Projectile.height, npc.position, npc.width, npc.height);
|
||||||
// Additional check for this specific minion behavior, otherwise it will stop attacking once it dashed through an enemy while flying though tiles afterwards
|
// Additional check for this specific minion behavior, otherwise it will stop attacking once it dashed through an enemy while flying though tiles afterward
|
||||||
// The number depends on various parameters seen in the movement code below. Test different ones out until it works alright
|
// The number depends on various parameters seen in the movement code below. Test different ones out until it works alright
|
||||||
bool closeThroughWall = between < 100f;
|
bool closeThroughWall = between < 100f;
|
||||||
if (((!closest || !inRange) && foundTarget) || (!lineOfSight && !closeThroughWall)) continue;
|
if (((!closest || !inRange) && foundTarget) || (!lineOfSight && !closeThroughWall)) continue;
|
||||||
@@ -262,8 +262,6 @@ public class ToclafaneMinion : ModProjectile {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user