diff --git a/scripts/interfer.gd b/scripts/interfer.gd index 7a23863d..6dc01ae9 100644 --- a/scripts/interfer.gd +++ b/scripts/interfer.gd @@ -386,6 +386,8 @@ func on_interfer_create(interfer_name, sel_threats, fs_arr, power, u, ecms) -> v var id = item.id param['freq'] = item.freq param['width'] = item.width * width_coef + if item.rparams.has('period'): + param['period'] = item.rparams['period'] if (item.rkrp != '') and item.fflags.rkrp and auto_enabled: var krp = get_krp(item) if krp != '': @@ -616,6 +618,8 @@ func set_rparams(threat: threats.Threat, params: Dictionary): params['width'] = threat.rparams['width'] * width_coef else: params['width'] = threat.width * width_coef + if threat.rparams.has('period'): + params['period'] = threat.rparams['period'] check_width(params) if threat.rparams.has('filename'): params['filename'] = threat.rparams['filename'] diff --git a/scripts/settings.gd b/scripts/settings.gd index 15d0ddc8..35bb8ad5 100644 --- a/scripts/settings.gd +++ b/scripts/settings.gd @@ -55,7 +55,7 @@ const WIDTH_MIN: = 5.0 const DUR_MAX: = 1000000.0 const PERIOD_MAX: = 1000000.0 const UM_MIN: = -5.0 -const UM_MAX: = 55.0 +const UM_MAX: = 100.0 func _ready() -> void: