From c543ff49a67af79a1ee51d92002f4c5def6e3996 Mon Sep 17 00:00:00 2001 From: Nikolai V Chr Date: Mon, 15 Apr 2019 05:37:40 +0200 Subject: [PATCH] fixed error in damage --- BUK-M2/Nasal/damage.nas | 2 +- Frigate/Nasal/damage.nas | 2 +- depot/Nasal/damage.nas | 2 +- fleet/Nasal/damage.nas | 2 +- gci-radar/Nasal/damage.nas | 2 +- groundtarget/Nasal/damage.nas | 2 +- missile-frigate/Nasal/damage.nas | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/BUK-M2/Nasal/damage.nas b/BUK-M2/Nasal/damage.nas index 1151b6b..7b1f209 100644 --- a/BUK-M2/Nasal/damage.nas +++ b/BUK-M2/Nasal/damage.nas @@ -338,7 +338,7 @@ var maxDamageDistFromWarhead = func (lbs) { } var fail_systems = func (probability, factor = 100) {#this factor needs tuning after all asset hitpoints have been evaluated. - if (fleet) { + if (is_fleet) { return fail_fleet_systems(probability, factor); } elsif (use_hitpoints_instead_of_failure_modes_bool) { hp -= factor * probability*(0.75+rand()*0.25);# from 75 to 100% damage diff --git a/Frigate/Nasal/damage.nas b/Frigate/Nasal/damage.nas index 94a2011..1097377 100644 --- a/Frigate/Nasal/damage.nas +++ b/Frigate/Nasal/damage.nas @@ -338,7 +338,7 @@ var maxDamageDistFromWarhead = func (lbs) { } var fail_systems = func (probability, factor = 100) {#this factor needs tuning after all asset hitpoints have been evaluated. - if (fleet) { + if (is_fleet) { return fail_fleet_systems(probability, factor); } elsif (use_hitpoints_instead_of_failure_modes_bool) { hp -= factor * probability*(0.75+rand()*0.25);# from 75 to 100% damage diff --git a/depot/Nasal/damage.nas b/depot/Nasal/damage.nas index 7560f8d..30ac000 100644 --- a/depot/Nasal/damage.nas +++ b/depot/Nasal/damage.nas @@ -338,7 +338,7 @@ var maxDamageDistFromWarhead = func (lbs) { } var fail_systems = func (probability, factor = 100) {#this factor needs tuning after all asset hitpoints have been evaluated. - if (fleet) { + if (is_fleet) { return fail_fleet_systems(probability, factor); } elsif (use_hitpoints_instead_of_failure_modes_bool) { hp -= factor * probability*(0.75+rand()*0.25);# from 75 to 100% damage diff --git a/fleet/Nasal/damage.nas b/fleet/Nasal/damage.nas index 2fd0d6b..222f1ca 100644 --- a/fleet/Nasal/damage.nas +++ b/fleet/Nasal/damage.nas @@ -338,7 +338,7 @@ var maxDamageDistFromWarhead = func (lbs) { } var fail_systems = func (probability, factor = 100) {#this factor needs tuning after all asset hitpoints have been evaluated. - if (fleet) { + if (is_fleet) { return fail_fleet_systems(probability, factor); } elsif (use_hitpoints_instead_of_failure_modes_bool) { hp -= factor * probability*(0.75+rand()*0.25);# from 75 to 100% damage diff --git a/gci-radar/Nasal/damage.nas b/gci-radar/Nasal/damage.nas index eb3714b..5c67ca8 100644 --- a/gci-radar/Nasal/damage.nas +++ b/gci-radar/Nasal/damage.nas @@ -338,7 +338,7 @@ var maxDamageDistFromWarhead = func (lbs) { } var fail_systems = func (probability, factor = 100) {#this factor needs tuning after all asset hitpoints have been evaluated. - if (fleet) { + if (is_fleet) { return fail_fleet_systems(probability, factor); } elsif (use_hitpoints_instead_of_failure_modes_bool) { hp -= factor * probability*(0.75+rand()*0.25);# from 75 to 100% damage diff --git a/groundtarget/Nasal/damage.nas b/groundtarget/Nasal/damage.nas index d91e582..49fb459 100644 --- a/groundtarget/Nasal/damage.nas +++ b/groundtarget/Nasal/damage.nas @@ -338,7 +338,7 @@ var maxDamageDistFromWarhead = func (lbs) { } var fail_systems = func (probability, factor = 100) {#this factor needs tuning after all asset hitpoints have been evaluated. - if (fleet) { + if (is_fleet) { return fail_fleet_systems(probability, factor); } elsif (use_hitpoints_instead_of_failure_modes_bool) { hp -= factor * probability*(0.75+rand()*0.25);# from 75 to 100% damage diff --git a/missile-frigate/Nasal/damage.nas b/missile-frigate/Nasal/damage.nas index 124b433..ced5135 100644 --- a/missile-frigate/Nasal/damage.nas +++ b/missile-frigate/Nasal/damage.nas @@ -338,7 +338,7 @@ var maxDamageDistFromWarhead = func (lbs) { } var fail_systems = func (probability, factor = 100) {#this factor needs tuning after all asset hitpoints have been evaluated. - if (fleet) { + if (is_fleet) { return fail_fleet_systems(probability, factor); } elsif (use_hitpoints_instead_of_failure_modes_bool) { hp -= factor * probability*(0.75+rand()*0.25);# from 75 to 100% damage