Change targetting line to dashed
This commit is contained in:
@@ -28,7 +28,7 @@ export class EventBridge {
|
||||
commitActionFn: (action: any) => void,
|
||||
emitUIUpdateFn: () => void,
|
||||
restartGameFn: () => void,
|
||||
executeThrowFn: (x: number, y: number) => void
|
||||
executeThrowFn: () => void
|
||||
): void {
|
||||
// Menu state listeners (from UI)
|
||||
this.scene.events.on("menu-toggled", (isOpen: boolean) => {
|
||||
@@ -115,7 +115,7 @@ export class EventBridge {
|
||||
if (targetingSystem.isActive && targetingSystem.itemId === item.id) {
|
||||
// Already targeting - execute throw
|
||||
if (targetingSystem.cursorPos) {
|
||||
executeThrowFn(targetingSystem.cursorPos.x, targetingSystem.cursorPos.y);
|
||||
executeThrowFn();
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -124,6 +124,8 @@ export class EventBridge {
|
||||
item.id,
|
||||
player.pos,
|
||||
(this.scene as any).world,
|
||||
(this.scene as any).entityManager,
|
||||
(this.scene as any).playerId,
|
||||
dungeonRenderer.seenArray,
|
||||
(this.scene as any).world.width
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user