diff --git a/README.md b/README.md index c0e926a..f9dee08 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,10 @@ ## Getting started -That mod for Avorion original writed [Alive!](https://steamcommunity.com/id/CasKepler2/) for 0.32 and updated by me with him \ No newline at end of file +That mod for Avorion original writed [Alive!](https://steamcommunity.com/id/CasKepler2/) for 0.32 and updated by me with him + +## Added weapon +* Hookgun +* Smart-cannon +* Heavy Cannon +* Diffuser \ No newline at end of file diff --git a/data/scripts/lib/weapongenerator.lua b/data/scripts/lib/weapongenerator.lua index 455337f..31f2889 100644 --- a/data/scripts/lib/weapongenerator.lua +++ b/data/scripts/lib/weapongenerator.lua @@ -168,8 +168,10 @@ function WeaponGenerator.generateHarpoon(rand, dps, tech, material, rarity) weapon.sound = "cannon" weapon.accuracy = 0.99 - rand:getFloat(0, 0.02) + weapon.blockPenetration = rand:getInt(0, rarity.value) + 2 - weapon.otherForce = -400 * dps * rarity.value + + weapon.otherForce = -500 * dps * rarity.value weapon.damage = damage weapon.damageType = DamageType.Physical