From 38b858b6fccf53bfe764a9b1ef31418665c72e8b Mon Sep 17 00:00:00 2001 From: sasha80 Date: Mon, 17 Nov 2025 08:46:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.godot | 2 +- scenes/работа/работа.gd | 2 +- scripts/interfer.gd | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/project.godot b/project.godot index 8697781..922bfd4 100644 --- a/project.godot +++ b/project.godot @@ -28,7 +28,7 @@ interfer/center_offset=Vector2(200, 225) interfer/default_color0=Color(0.38, 0.47, 0.51, 1) interfer/default_color1=Color(0.39, 0.44, 0.5, 1) interfer/select_color=Color(1, 1, 1, 1) -interfer/interfer_color=Color(0.90, 0.1, 0.25, 0.9) +interfer/interfer_color=Color(0.9, 0.1, 0.25, 0.9) interfer/resend_timeout=1000.0 config/external_cu=false config/unit_rr_request_period=20.0 diff --git a/scenes/работа/работа.gd b/scenes/работа/работа.gd index f0934ec..356debe 100644 --- a/scenes/работа/работа.gd +++ b/scenes/работа/работа.gd @@ -625,7 +625,7 @@ func _on_btn_all_work_pressed() -> void: func on_th_aoa_update(ths): count_threats(ths) - + func count_threats(ths): $count_all_pad/count_all.text = '%02d' % ths.size() diff --git a/scripts/interfer.gd b/scripts/interfer.gd index 7c9a60c..cefdb43 100644 --- a/scripts/interfer.gd +++ b/scripts/interfer.gd @@ -267,7 +267,7 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> v thr.nmfs = nmfs if (thr.proto in gos_protocols) and thr.fflags.proto and (not gos_flag): gos_nmfs.append(nmfs) - + thr.emit_state = 0 for ecm in ecms.values(): if thr.nmfs == ecm.nmfs: @@ -279,7 +279,7 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary, unit_instance) -> v ecm_active = false if ecm_active and (prd.fs_caps_id[ecm.nmfs] in fs_closed): interfer_off(ecm, unit_instance) - + var th_id = thr.id for ecm_i in thrs.keys(): if thrs[ecm_i] == th_id: @@ -695,4 +695,3 @@ func set_th_emit(th: threats.Threat, ecm: Interfer): return else: th.emit_state = 1 -