From 4876b46bf6a1023515047bc0368dc9d53ddc5184 Mon Sep 17 00:00:00 2001 From: Robosturm Date: Thu, 7 Dec 2023 09:34:49 +0100 Subject: [PATCH] #1718 --- resources/scripts/weapons/weapon_frigate_naval_gun.js | 4 ++++ resources/scripts/weapons/weapon_gunboat_naval_gun.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/resources/scripts/weapons/weapon_frigate_naval_gun.js b/resources/scripts/weapons/weapon_frigate_naval_gun.js index 592c2a60f..e3169003e 100644 --- a/resources/scripts/weapons/weapon_frigate_naval_gun.js +++ b/resources/scripts/weapons/weapon_frigate_naval_gun.js @@ -4,6 +4,10 @@ var Constructor = function() { return qsTr("Naval gun"); }; + this.getEnviromentDamage = function(enviromentId) + { + return 20; + }; this.damageTable = [// ships ["GUNBOAT", 75], ["CANNONBOAT", 75], diff --git a/resources/scripts/weapons/weapon_gunboat_naval_gun.js b/resources/scripts/weapons/weapon_gunboat_naval_gun.js index 9e421dd87..dd1e0a255 100644 --- a/resources/scripts/weapons/weapon_gunboat_naval_gun.js +++ b/resources/scripts/weapons/weapon_gunboat_naval_gun.js @@ -4,6 +4,10 @@ var Constructor = function() { return qsTr("Naval gun"); }; + this.getEnviromentDamage = function(enviromentId) + { + return 10; + }; this.damageTable = [["GUNBOAT", 55], ["CANNONBOAT", 55], ["BLACK_BOAT", 55],