From 402fa3d2f3737cb1b15dffc16ac025b5d977ffe2 Mon Sep 17 00:00:00 2001 From: MaD_CaT Date: Tue, 15 Apr 2025 11:23:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F.=20=D0=9E=D1=82=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=86=D0=B5=D0=BB=D0=B5?= =?UTF-8?q?=D0=B9=20=D0=B2=20=D0=BE=D0=B1=D0=BE=D0=B8=D1=85=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B6=D0=B8=D0=BC=D0=B0=D1=85=20=D0=BA=D0=B0=D1=80=D1=82=D1=8B?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scenes/работа/работа.gd | 6 +++--- scripts/prd.gd | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scenes/работа/работа.gd b/scenes/работа/работа.gd index 1ebab63b..bd6e549c 100644 --- a/scenes/работа/работа.gd +++ b/scenes/работа/работа.gd @@ -161,8 +161,8 @@ func map_threat_to_bip(th: threats.Threat, bip: Control): sector_key = key break if sector_key!= null: - radius_internal = prd.FS_FREQ[sector_key][2] - radius_outter = prd.FS_FREQ[sector_key][3] + radius_internal = fs_band[sector_key][0] + radius_outter = fs_band[sector_key][1] freq_low = prd.FS_FREQ[sector_key][0] freq_high = prd.FS_FREQ[sector_key][1] bip.position = tools.pos_calc( @@ -462,7 +462,7 @@ func set_ecm_btns_state(value: bool): func get_fs_param(index: int) -> Array: - var freq = (prd.FS_FREQ[index / 4][4]) + var freq = (prd.FS_FREQ[index / 4][2]) var sector = (prd.FS_SECTORS[index % 4][0] + prd.FS_SECTORS[index % 4][1])/2 - 45.0 if sector < 0: sector += 360.0 diff --git a/scripts/prd.gd b/scripts/prd.gd index e0debe19..69dedf2b 100644 --- a/scripts/prd.gd +++ b/scripts/prd.gd @@ -30,13 +30,13 @@ const FS_SECTORS: Dictionary = { 1: [270.0, 360.0] } const FS_FREQ: Dictionary = { - 0: [390.0, 800.0, 200.0, 250.0, 433.0], - 1: [800.0, 1065.0, 250.0, 300.0, 860.0], - 2: [1065.0, 1210.0, 300.0, 350.0, 1137.0], - 3: [1150.0, 1490.0, 350.0, 400.0, 1227.0], - 4: [1490.0, 2000.0, 400.0, 450.0, 1575.0], - 5: [2000.0, 3500.0, 450.0, 500.0, 2450.0], - 6: [3500.0, 6000.0, 500.0, 550.0, 5800.0] } + 0: [390.0, 800.0, 433.0], + 1: [800.0, 1065.0, 860.0], + 2: [1065.0, 1210.0, 1137.0], + 3: [1150.0, 1490.0, 1227.0], + 4: [1490.0, 2000.0, 1575.0], + 5: [2000.0, 3500.0, 2450.0], + 6: [3500.0, 6000.0, 5800.0] } ## Названия приборов ПРД const PRD_NAMES: Array = [