Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59c5f2cb36 | ||
|
|
138f510ea2 | ||
|
|
d6ea8f534e | ||
|
|
85889377c9 | ||
|
|
f37108304e | ||
|
|
d72a2b701e | ||
|
|
c0b7a4ef83 | ||
|
|
8e63f249a7 | ||
|
|
9a56e21c2a |
@@ -1,6 +1,9 @@
|
|||||||
[](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/commits/main) [](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/releases)
|
[](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/commits/main) [](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/releases)
|
||||||
# weapon project extended 2.0
|
# weapon project extended 2.0
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
That mod for Avorion original writed [Alive!](https://steamcommunity.com/id/CasKepler2/) for 0.32 and updated by me with him
|
That mod for Avorion original writed [Alive!](https://steamcommunity.com/id/CasKepler2/) for 0.32 and updated by me with him
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ function TurretGenerator.generateSmartCannonTurret(rand, dps, tech, material, ra
|
|||||||
local requiredCrew = TurretGenerator.dpsToRequiredCrew(dps)
|
local requiredCrew = TurretGenerator.dpsToRequiredCrew(dps)
|
||||||
local crew = Crew()
|
local crew = Crew()
|
||||||
crew:add(requiredCrew, CrewMan(CrewProfessionType.Gunner))
|
crew:add(requiredCrew, CrewMan(CrewProfessionType.Gunner))
|
||||||
|
crew:add(requiredCrew, CrewMan(CrewProfessionType.Pilot))
|
||||||
result.crew = crew
|
result.crew = crew
|
||||||
|
|
||||||
-- generate weapons
|
-- generate weapons
|
||||||
@@ -188,6 +189,16 @@ function TurretGenerator.generateHeavyCannonTurret(rand, dps, tech, material, ra
|
|||||||
outerAdjective = "Cumulative "%_T
|
outerAdjective = "Cumulative "%_T
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if result.size >= 4 then
|
||||||
|
weapon.speed = weapon.speed * 2
|
||||||
|
weapon.reach = weapon.reach * 1.2
|
||||||
|
end
|
||||||
|
|
||||||
|
if result.size >= 5 then
|
||||||
|
weapon.speed = weapon.speed * 2
|
||||||
|
weapon.reach = weapon.reach * 1.5
|
||||||
|
end
|
||||||
|
|
||||||
-- attach weapons to turret
|
-- attach weapons to turret
|
||||||
TurretGenerator.attachWeapons(rand, result, weapon, numWeapons)
|
TurretGenerator.attachWeapons(rand, result, weapon, numWeapons)
|
||||||
|
|
||||||
@@ -207,14 +218,10 @@ function TurretGenerator.generateHeavyCannonTurret(rand, dps, tech, material, ra
|
|||||||
|
|
||||||
if result.size >= 4 then
|
if result.size >= 4 then
|
||||||
name = "Mass Driver /* weapon name*/"%_T
|
name = "Mass Driver /* weapon name*/"%_T
|
||||||
weapom.speed = weapon.speed * 2
|
|
||||||
weapon.reach = weapon.reach * 1.2
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if result.size >= 5 then
|
if result.size >= 5 then
|
||||||
name = "Mass Warper /* weapon name*/"%_T
|
name = "Mass Warper /* weapon name*/"%_T
|
||||||
weapom.speed = weapon.speed * 2
|
|
||||||
weapon.reach = weapon.reach * 1.5
|
|
||||||
end
|
end
|
||||||
|
|
||||||
result.title = Format("%1%%2%%3%%4%%5%%6%%7% /* [outer-adjective][barrel][coax][dmg-adjective][multishot][name][serial] */"%_T, outerAdjective, barrel, coax, dmgAdjective, multishot, name, serial)
|
result.title = Format("%1%%2%%3%%4%%5%%6%%7% /* [outer-adjective][barrel][coax][dmg-adjective][multishot][name][serial] */"%_T, outerAdjective, barrel, coax, dmgAdjective, multishot, name, serial)
|
||||||
@@ -282,7 +289,7 @@ function TurretGenerator.generateHookgunTurret(rand, dps, tech, material, rarity
|
|||||||
local weapon = WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
|
local weapon = WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
|
||||||
weapon.damage = weapon.damage / numWeapons
|
weapon.damage = weapon.damage / numWeapons
|
||||||
|
|
||||||
local spec = rand(0.5)
|
local spec = rand:getInt(0, 1)
|
||||||
|
|
||||||
if spec then
|
if spec then
|
||||||
weapon.holdingForce = weapon.otherForce * 2
|
weapon.holdingForce = weapon.otherForce * 2
|
||||||
|
|||||||
Reference in New Issue
Block a user