Compare commits

...

31 Commits

Author SHA1 Message Date
Slava
43dd5cfbc9 Update 2 files
- /data/localization/ru.po
- /data/scripts/lib/turretgenerator.lua
2023-09-02 21:41:23 +00:00
Alex
d9b94de051 Update README.md 2023-09-02 21:37:55 +00:00
Slava
75a2857eae Update file ru.po 2023-09-02 21:33:50 +00:00
Slava
ab165df8a2 Update file weapontype.lua 2023-09-02 21:30:32 +00:00
Slava
e0a322ae86 Update file ru.po 2023-09-02 21:29:33 +00:00
bacon
ab3aaa88ee remove unused 2023-09-03 00:19:08 +03:00
bacon
7c23013cfb mask encyclopedia 2023-09-03 00:19:08 +03:00
bacon
58374c979c reset localization 2023-09-03 00:19:08 +03:00
Alex
5b5f424f95 Update file weapongenerator.lua 2023-09-02 21:04:38 +00:00
Alex
ee72127b0a Update file inventoryitemprice.lua 2023-09-02 20:59:09 +00:00
Alex
29928558d3 Replace thumb.png 2023-09-02 20:47:48 +00:00
Alex
101d4e1c44 Update file weapongenerator.lua 2023-09-02 20:47:34 +00:00
Alex
314e65c4bc Update 2 files
- /data/scripts/lib/turretgenerator.lua
- /data/scripts/lib/weapongenerator.lua
2023-09-02 20:31:32 +00:00
Alex
577378ae36 Update 2 files
- /data/scripts/lib/turretgenerator.lua
- /data/scripts/lib/weapongenerator.lua
2023-09-02 20:07:13 +00:00
Alex
59c5f2cb36 Replace thumb.png 2023-09-02 20:01:13 +00:00
Slava
138f510ea2 Update 2 files
- /data/scripts/player/ui/encyclopedia/encyclopedia.lua
- /data/scripts/player/ui/encyclopedia/_encyclopedia.lua
2023-09-02 19:39:31 +00:00
Slava
d6ea8f534e Update file README.md 2023-09-02 19:35:58 +00:00
Alex
85889377c9 Replace thumb.png 2023-09-02 19:32:57 +00:00
Alex
f37108304e Update file turretgenerator.lua 2023-09-02 18:56:12 +00:00
Alex
d72a2b701e Update file turretgenerator.lua 2023-09-02 18:55:23 +00:00
Alex
c0b7a4ef83 Update file turretgenerator.lua 2023-09-02 18:55:09 +00:00
Alex
8e63f249a7 Update file turretgenerator.lua 2023-09-02 18:54:06 +00:00
Alex
9a56e21c2a Update file turretgenerator.lua 2023-09-02 18:49:04 +00:00
Alex
32fc8f43ea Update 3 files
- /data/scripts/lib/weapongenerator.lua
- /data/scripts/lib/turretgenerator.lua
- /data/scripts/lib/turretingredients.lua
2023-09-02 18:19:34 +00:00
Weblate Admin
b7351d174a Translated using Weblate (Russian)
Currently translated at 59.2% (16 of 27 strings)

Translation: WPE-2/ru
2023-09-02 07:30:17 +00:00
Weblate Admin
f4ca4afa45 Added translation using Weblate (Russian) 2023-09-01 03:33:57 +00:00
Alex
863e00a5d0 Update file weapongenerator.lua 2023-08-30 20:17:50 +00:00
Alex
f258093ca3 Update file weapongenerator.lua 2023-08-30 19:19:23 +00:00
Slava
a0a45906a1 Delete ru.po 2023-08-30 18:40:03 +00:00
Alex
0a3f032d56 Update file turretgenerator.lua 2023-08-30 18:37:08 +00:00
Alex
e531517104 Update file turretgenerator.lua 2023-08-30 18:30:44 +00:00
12 changed files with 363 additions and 257 deletions

View File

@@ -1,6 +1,9 @@
[![pipeline status](http://gl.beaconborn.ru/bacon/weapon-project-extended/badges/main/pipeline.svg)](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/commits/main) [![Latest Release](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/badges/release.svg)](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/releases) [![pipeline status](http://gl.beaconborn.ru/bacon/weapon-project-extended/badges/main/pipeline.svg)](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/commits/main) [![Latest Release](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/badges/release.svg)](http://gl.beaconborn.ru/bacon/weapon-project-extended/-/releases)
# weapon project extended 2.0 # weapon project extended 2.0
![Weapon Pack Extended Remastered](thumb.png)
## 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
@@ -10,3 +13,28 @@ That mod for Avorion original writed [Alive!](https://steamcommunity.com/id/CasK
* Smart-cannon * Smart-cannon
* Heavy Cannon * Heavy Cannon
* Diffuser * Diffuser
### Описание
Возвращение олдсульного мода на сбалансированное оружие!
WPE-Remastered добавляет несколько новых, хорошо сбалансированных для ванильной игры орудий.
В отличии от старой (ого, прошло уже больше 4 лет) версии часть орудий была заменена на новые образцы, а остальные доведены до идеала ( но могут быть отредактированы по отзывам пользователей).
И так, орудия:
Смарт-пушка:
Вариант пушки со снарядами, начиненными всякой электроникой для наведения и уничтожения врага. Да, дороже чем обычно, но поверьте, оно того стоит! [Возможны модификации для пробития щитов и плазменных зарядов]
Тяжелая пушка:
"Большому кораблю нужны большие калибры!" - именно этим девизом руководствовались инженеры разрабатывая данное оружие. Лучший способ доставить противнику **БОЛЬШИЕ** проблемы
Гарпун:
Враг убегает? Не сегодня! Гарпун не даст врагу и шанса улизнуть.
Рассеиватель энергии:
У врага мощный щит? Не проблема! Бюро сверхсовременных разработок нашло решение и этой проблемы: рассеиватель энергии уничтожит их за секунды (но увы, даже не поцарапает корпус).
Сотовые ракетные установки:
Что может быть лучше ракеты? Правильно - много ракет! Пусть по отдельности эти малышки слабы, их рой не оставит врагу и шанса.

View File

@@ -1,140 +1,137 @@
# ========== C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua ==========
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Smart-Cannon"
msgstr "Смарт-Пушка"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgid " Ionized"
msgstr " Ионизирущее"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "[outer-adjective][barrel][coax][dmg-adjective][multishot][name][serial]"
msgid "%1%%2%%3%%4%%5%%6%%7%"
msgstr "%2%%3%%4%%5%%6%%7%%1%"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgid " Cumulative"
msgstr " Кумулятивное"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Heavy Cannon"
msgstr "Тяжелое орудие"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Mass Driver"
msgstr "Электромагнитная катапульта"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Mass Warper"
msgstr "Доставщмк проблем"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Diffuser"
msgstr "Диффузор"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Hookgun"
msgstr "Гарпун"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgid " Holding"
msgstr " Удерживающий"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Hive-Launcher"
msgstr "Сотовая ракетная установка"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Swarm-Launcher"
msgstr "Роевая ракетная установка"
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgid "" msgid ""
msgstr "Project-Id-Version: PACKAGE VERSION\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2023-08-29 21:02+0000\nPO-Revision-Date: 2023-08-29 21:28+0000\nLast-Translator: Weblate Admin <beaconborn@yandex.ru>\nLanguage-Team: Russian <http://weblate.beaconborn.ru/projects/wpe-2/ru/ru/>\nLanguage: ru\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\nX-Generator: Weblate 5.0\n" msgstr ""
# ========== \data\scripts\lib\turretgenerator.lua ==========
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "SmartCannon"
msgstr "Умная пушка"
#: \data\scripts\lib\turretgenerator.lua: # ========== C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua ==========
msgctxt "weapon name" #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgid "Ionized SmartCannon"
msgstr "Ионизирующая умная пушка"
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Heavy Cannon"
msgstr "Тяжелое орудие"
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Cumulative Heavy Cannon"
msgstr "Кумулятивное тяжелое орудие"
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Diffuser"
msgstr "Диффузор"
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Hookgun"
msgstr "Гарпун"
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "HiveLauncher"
msgstr "Роевая ракетная установка"
# ========== \data\scripts\lib\weapongenerator.lua ==========
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Name" msgctxt "Weapon Name"
msgid "SmartCannon" msgid "Smart-Cannon"
msgstr "Умная пушка" msgstr "Смарт-Пушка"
#: \data\scripts\lib\weapongenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Prefix" msgctxt "Weapon Prefix"
msgid "SmartCannon" msgid "Smart-Cannon"
msgstr "Умная пушка" msgstr "Смарт-Пушка"
#: \data\scripts\lib\weapongenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name" msgctxt "Weapon Name"
msgid "Heavy Cannon" msgid "Heavy Cannon"
msgstr "Тяжелое орудие" msgstr "Тяжелое орудие"
#: \data\scripts\lib\weapongenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name" msgctxt "Weapon Name"
msgid "Diffuser" msgid "Diffuser"
msgstr "Диффузор" msgstr "Диффузор"
#: \data\scripts\lib\weapongenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Prefix" msgctxt "Weapon Prefix"
msgid "Diffuser" msgid "Diffuser"
msgstr "Диффузор" msgstr "Диффузор"
#: \data\scripts\lib\weapongenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name" msgctxt "Weapon Name"
msgid "Hookgun" msgid "Hookgun"
msgstr "Гарпун" msgstr "Гарпун"
#: \data\scripts\lib\weapongenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Prefix" msgctxt "Weapon Prefix"
msgid "Hookgun" msgid "Hookgun"
msgstr "Гарпун" msgstr "Гарпун"
#: \data\scripts\lib\weapongenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name" msgctxt "Weapon Name"
msgid "HiveLauncher" msgid "Hive-Launcher"
msgstr "Роевая ракетная установка" msgstr "Роевая ракетная установка"
#: \data\scripts\lib\weapongenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Prefix" msgctxt "Weapon Prefix"
msgid "HiveLauncher" msgid "Hive-Launcher"
msgstr "Роевая ракетная установка" msgstr "Роевая ракетная установка"
# ========== \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua ==========
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua:
msgctxt ""
msgid "WPE Turrets"
msgstr "WPE Турели"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: # ========== C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua ==========
msgctxt "" #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgid "Intro" msgctxt "Weapon Type"
msgstr "Вступление" msgid "Smart-Сannon"
msgstr "Смарт-Пушка"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "" msgctxt "Weapon Type"
msgid "In this part of the encyclopedia you will find a description of the turrets from the Weapon Pack Extended mod.\n\nI recommend using turret models from the collection in the workshop."
msgstr "В этой части энциклопедии вы найдете описание турелей из мода Weapon Pack Extended.\n\nЯ рекомендую использовать модели турелей из коллекции в мастерской."
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua:
msgctxt ""
msgid "SmartCannon"
msgstr "Умная пушка"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua:
msgctxt ""
msgid "A lightweight version of the classic cannon.\n\nCompared to conventional cannons:\n+ Increased rate of fire (x2)\n+ Increased projectile speed (x1.5)\n+ A little more damage on the shield (10% - 15%)\n+ Can be equipped with homing missiles.\n- Less damage (x0.75)\n- Shorter damage range (x0.8)"
msgstr "Облегченный вариант классической пушки.\n\nПо сравнению с обычными пушками:\n+ Увеличенная скорострельность (x2)\n+ Увеличенная скорость полета снаряда (x1,5)\n+ Немного больше урон по щиту (10% - 15%)\n+ Может быть оснащена самонаводящимися ракетами.\n- Меньший урон (x0,75)\n- Меньшая дальность поражения (x0,8)"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua:
msgctxt ""
msgid "Heavy Cannon" msgid "Heavy Cannon"
msgstr "Тяжелое орудие" msgstr "Тяжелое орудие"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "" msgctxt "Weapon Type"
msgid "The cannon of the main caliber. It shoots with heavy explosive shells, the hit of which can displace the enemy ship.\n\n+ High damage\n+ High projectile speed\n+ When hit, push the opponent\n+ Also can have a penetration\n- Low rate of fire\n- Occupies many slots\n- Big size\n- Requires more crew" msgid "Diffuser"
msgstr "Пушка главного калибра. Стреляет тяжелыми разрывными снарядами, попадание которых может смести корабль противника.\n\n+ Высокий урон\n+ Высокая скорость полета снаряда\n+ При попадании толкает противника\n+ Также может иметь пробитие\n- Низкая скорострельность\n- Занимает много слотов\n- Большие размеры\n- Требуется больше экипажа" msgstr "Диффузор"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "" msgctxt "Weapon Type"
msgid "Energy diffuser"
msgstr "Энегретический диффузор"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua:
msgctxt ""
msgid "Short range combat weapon. Does not cause damage to the hull, but extremely effectively destroys shields. Requires civil slots.\n\nShield Damage x20"
msgstr "Боевое оружие малой дальности. Не наносит повреждений корпусу, но чрезвычайно эффективно разрушает щиты. Требует гражданских слотов.\n\nУрон по щитам x20"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua:
msgctxt ""
msgid "Hookgun" msgid "Hookgun"
msgstr "Гарпун" msgstr "Гарпун"
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "" msgctxt "Weapon Type"
msgid "Short range combat weapon. Does not cause damage to the shield, but extremely effectively to attrac. Requires 2 gunners slots.\n May have penetration\n" msgid "Hive-Launcher"
msgstr "Боевое оружие малой дальности. Не наносит урона щиту, но чрезвычайно эффективно для атак. Требует 2 слота для стрелков.\nМожет иметь проникающую способность\n" msgstr "Роевая ракетная установка"

View File

@@ -1,138 +1,183 @@
# ========== \data\scripts\lib\turretgenerator.lua ========== # ========== C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua ==========
#: \data\scripts\lib\turretgenerator.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt "weapon name"
msgid "SmartCannon"
msgstr ""
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Ionized SmartCannon"
msgstr ""
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Heavy Cannon"
msgstr ""
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Cumulative Heavy Cannon"
msgstr ""
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Diffuser"
msgstr ""
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "Hookgun"
msgstr ""
#: \data\scripts\lib\turretgenerator.lua:
msgctxt "weapon name"
msgid "HiveLauncher"
msgstr ""
# ========== \data\scripts\lib\weapongenerator.lua ==========
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Name"
msgid "SmartCannon"
msgstr ""
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Prefix"
msgid "SmartCannon"
msgstr ""
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Name"
msgid "Heavy Cannon"
msgstr ""
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Name"
msgid "Diffuser"
msgstr ""
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Prefix"
msgid "Diffuser"
msgstr ""
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Name"
msgid "Hookgun"
msgstr ""
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Prefix"
msgid "Hookgun"
msgstr ""
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Name"
msgid "HiveLauncher"
msgstr ""
#: \data\scripts\lib\weapongenerator.lua:
msgctxt "Weapon Prefix"
msgid "HiveLauncher"
msgstr ""
# ========== \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua ==========
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua:
msgctxt ""
msgid "WPE Turrets" msgid "WPE Turrets"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "Intro" msgid "Intro"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "In this part of the encyclopedia you will find a description of the turrets from the Weapon Pack Extended mod.\n\nI recommend using turret models from the collection in the workshop." msgid "In this part of the encyclopedia you will find a description of the turrets from the Weapon Pack Extended mod.\n\nI recommend using turret models from the collection in the workshop."
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt "" msgid "Smartcannon"
msgid "SmartCannon"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "A lightweight version of the classic cannon.\n\nCompared to conventional cannons:\n+ Increased rate of fire (x2)\n+ Increased projectile speed (x1.5)\n+ A little more damage on the shield (10% - 15%)\n+ Can be equipped with homing missiles.\n- Less damage (x0.75)\n- Shorter damage range (x0.8)" msgid "A lightweight version of the classic cannon.\n\nCompared to conventional cannons:\n+ Increased rate of fire (x2)\n+ Increased projectile speed (x1.5)\n+ A little more damage on the shield (10% - 15%)\n+ Can be equipped with homing missiles.\n- Less damage (x0.75)\n- Shorter damage range (x0.8)"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "Heavy Cannon" msgid "Heavy Cannon"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "The cannon of the main caliber. It shoots with heavy explosive shells, the hit of which can displace the enemy ship.\n\n+ High damage\n+ High projectile speed\n+ When hit, push the opponent\n+ Also can have a penetration\n- Low rate of fire\n- Occupies many slots\n- Big size\n- Requires more crew" msgid "The cannon of the main caliber. It shoots with heavy explosive shells, the hit of which can displace the enemy ship.\n\n+ High damage\n+ High projectile speed\n+ When hit, push the opponent\n+ Also can have a penetration\n- Low rate of fire\n- Occupies many slots\n- Big size\n- Requires more crew"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "Energy diffuser" msgid "Energy diffuser"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "Short range combat weapon. Does not cause damage to the hull, but extremely effectively destroys shields. Requires civil slots.\n\nShield Damage x20" msgid "Short range combat weapon. Does not cause damage to the hull, but extremely effectively destroys shields. Requires civil slots.\n\nShield Damage x20"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "Hookgun" msgid "Hookgun"
msgstr "" msgstr ""
#: \data\scripts\player\ui\encyclopedia\chapters\wpeturrets.lua: #: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua:
msgctxt ""
msgid "Short range combat weapon. Does not cause damage to the shield, but extremely effectively to attrac. Requires 2 gunners slots.\n May have penetration\n" msgid "Short range combat weapon. Does not cause damage to the shield, but extremely effectively to attrac. Requires 2 gunners slots.\n May have penetration\n"
msgstr "" msgstr ""
# ========== C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua ==========
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Smart-Cannon"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgid "Ionized "
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "[outer-adjective][barrel][coax][dmg-adjective][multishot][name][serial]"
msgid "%1%%2%%3%%4%%5%%6%%7%"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgid "Cumulative "
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Heavy Cannon"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Mass Driver"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Mass Warper"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Diffuser"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Hookgun"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgid "Stabilizing"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Hive-Launcher"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgctxt "weapon name"
msgid "Swarm-Launcher"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/turretgenerator.lua:
msgid ""
msgstr ""
# ========== C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua ==========
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name"
msgid "Smart-Cannon"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Prefix"
msgid "Smart-Cannon"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name"
msgid "Heavy Cannon"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name"
msgid "Diffuser"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Prefix"
msgid "Diffuser"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name"
msgid "Hookgun"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Prefix"
msgid "Hookgun"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Name"
msgid "Hive-Launcher"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapongenerator.lua:
msgctxt "Weapon Prefix"
msgid "Hive-Launcher"
msgstr ""
# ========== C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua ==========
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "Weapon Type"
msgid "Smart Сannon"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "Weapon Type"
msgid "Heavy Cannon"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "Weapon Type"
msgid "Diffuser"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "Weapon Type"
msgid "Hookgun"
msgstr ""
#: C:/Users/riksl/AppData/Roaming/Avorion/mods/WPE2/data/scripts/lib/weapontype.lua:
msgctxt "Weapon Type"
msgid "HiveLauncher"
msgstr ""

View File

@@ -1,6 +1,6 @@
valueWeights[WeaponType.SmartCannon ] = 1.5 valueWeights[WeaponType.SmartCannon ] = 1.2
valueWeights[WeaponType.HeavyCannon ] = 1.5 valueWeights[WeaponType.HeavyCannon ] = 1
valueWeights[WeaponType.Diffuser ] = 2 valueWeights[WeaponType.Diffuser ] = 2
valueWeights[WeaponType.Hookgun ] = 1.5 valueWeights[WeaponType.Hookgun ] = 1
valueWeights[WeaponType.HiveLauncher] = 1.5 valueWeights[WeaponType.HiveLauncher] = 1

View File

@@ -112,6 +112,7 @@ else
} }
end end
-- ===========================================================================================================================================================
function TurretGenerator.generateSmartCannonTurret(rand, dps, tech, material, rarity) function TurretGenerator.generateSmartCannonTurret(rand, dps, tech, material, rarity)
local result = TurretTemplate() local result = TurretTemplate()
@@ -119,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
@@ -126,6 +128,20 @@ function TurretGenerator.generateSmartCannonTurret(rand, dps, tech, material, ra
local weapon = WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity) local weapon = WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
weapon.fireDelay = weapon.fireDelay * numWeapons weapon.fireDelay = weapon.fireDelay * numWeapons
local specType = rand:getInt(0, 2)
if specType == 1 then
weapon.shieldPenetration = 1
if rand:getInt(0, 1) then
weapon.pcolor = ColorHSV(rand:getFloat(180, 210), 0.8, 0.8)
else
weapon.pcolor = ColorHSV(rand:getFloat(260, 290), 0.8, 0.8)
end
elseif specType == 2 then
weapon.damageType = DamageType.Plasma
weapon.damage = weapon.damage * 0.9
weapon.pcolor = ColorHSV(rand:getFloat(90, 120), 0.7, 1)
end
-- attach weapons to turret -- attach weapons to turret
TurretGenerator.attachWeapons(rand, result, weapon, numWeapons) TurretGenerator.attachWeapons(rand, result, weapon, numWeapons)
@@ -141,19 +157,12 @@ function TurretGenerator.generateSmartCannonTurret(rand, dps, tech, material, ra
result:updateStaticStats() result:updateStaticStats()
local name = "Smart-Cannon /* weapon name*/"%_T local name = "Smart-Cannon /* weapon name*/"%_T
local specType = rand:getInt(0, 2)
if specType == 1 then
name = "Ionized Smart-Cannon /* weapon name*/"%_T
weapon.shieldPenetration = 1
elseif specType == 2 then
name = "Plasmed Smart-Cannon /* weapon name*/"%_T
result.damageType = DamageType.Plasma
weapon.damage = weapon.damage * 0.9
end
local dmgAdjective, outerAdjective, barrel, multishot, coax, serial = makeTitleParts(rand, specialties, result, DamageType.Physical) local dmgAdjective, outerAdjective, barrel, multishot, coax, serial = makeTitleParts(rand, specialties, result, DamageType.Physical)
if specType == 1 then
outerAdjective = " Ionized"%_T
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)
return result return result
@@ -162,13 +171,14 @@ end
generatorFunction[WeaponType.SmartCannon] = TurretGenerator.generateSmartCannonTurret generatorFunction[WeaponType.SmartCannon] = TurretGenerator.generateSmartCannonTurret
-- ===========================================================================================================================================================
function TurretGenerator.generateHeavyCannonTurret(rand, dps, tech, material, rarity) function TurretGenerator.generateHeavyCannonTurret(rand, dps, tech, material, rarity)
local result = TurretTemplate() local result = TurretTemplate()
-- generate turret -- generate turret
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 * 3, CrewMan(CrewProfessionType.Gunner))
crew:add(requiredCrew, CrewMan(CrewProfessionType.Repair)) crew:add(requiredCrew, CrewMan(CrewProfessionType.Repair))
result.crew = crew result.crew = crew
@@ -178,6 +188,26 @@ function TurretGenerator.generateHeavyCannonTurret(rand, dps, tech, material, ra
local weapon = WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity) local weapon = WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
weapon.fireDelay = weapon.fireDelay * numWeapons weapon.fireDelay = weapon.fireDelay * numWeapons
local Pen = rand:getInt(0, rarity.value)
if Pen > 0 then
weapon.blockPenetration = Pen
outerAdjective = " Cumulative"%_T
end
if result.size >= 4 then
weapon.psize = weapon.psize * 1.5
weapon.speed = weapon.speed * 2
weapon.reach = weapon.reach * 1.2
weapon.pcolor = ColorHSV(rand:getFloat(10, 45), 0.7, 0.7)
end
if result.size >= 5 then
weapon.psize = weapon.psize * 1.5
weapon.speed = weapon.speed * 2
weapon.reach = weapon.reach * 1.5
weapon.pcolor = ColorHSV(rand:getFloat(10, 45), 0.7, 0.9)
end
-- attach weapons to turret -- attach weapons to turret
TurretGenerator.attachWeapons(rand, result, weapon, numWeapons) TurretGenerator.attachWeapons(rand, result, weapon, numWeapons)
@@ -195,18 +225,12 @@ function TurretGenerator.generateHeavyCannonTurret(rand, dps, tech, material, ra
local dmgAdjective, outerAdjective, barrel, multishot, coax, serial = makeTitleParts(rand, specialties, result, DamageType.Physical) local dmgAdjective, outerAdjective, barrel, multishot, coax, serial = makeTitleParts(rand, specialties, result, DamageType.Physical)
local Pen = rand:getInt(0, rarity.value)
if Pen > 0 then
weapon.blockPenetration = Pen
outerAdjective = "Cumulative "%_T
end
if result.size >= 4 then if result.size >= 4 then
name = "Mons Meg /* weapon name*/"%_T name = "Mass Driver /* weapon name*/"%_T
end end
if result.size >= 5 then if result.size >= 5 then
name = "Dulle Griet /* weapon name*/"%_T name = "Mass Warper /* weapon name*/"%_T
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)
@@ -217,6 +241,7 @@ end
generatorFunction[WeaponType.HeavyCannon] = TurretGenerator.generateHeavyCannonTurret generatorFunction[WeaponType.HeavyCannon] = TurretGenerator.generateHeavyCannonTurret
-- ===========================================================================================================================================================
function TurretGenerator.generateDiffuserTurret(rand, dps, tech, material, rarity) function TurretGenerator.generateDiffuserTurret(rand, dps, tech, material, rarity)
local result = TurretTemplate() local result = TurretTemplate()
@@ -257,6 +282,7 @@ end
generatorFunction[WeaponType.Diffuser] = TurretGenerator.generateDiffuserTurret generatorFunction[WeaponType.Diffuser] = TurretGenerator.generateDiffuserTurret
-- ===========================================================================================================================================================
function TurretGenerator.generateHookgunTurret(rand, dps, tech, material, rarity) function TurretGenerator.generateHookgunTurret(rand, dps, tech, material, rarity)
local result = TurretTemplate() local result = TurretTemplate()
@@ -271,6 +297,13 @@ 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:getInt(0, 1)
if spec then
weapon.holdingForce = weapon.otherForce * 2
weapon.otherForce = 0
end
-- attach weapons to turret -- attach weapons to turret
TurretGenerator.attachWeapons(rand, result, weapon, numWeapons) TurretGenerator.attachWeapons(rand, result, weapon, numWeapons)
@@ -286,7 +319,14 @@ function TurretGenerator.generateHookgunTurret(rand, dps, tech, material, rarity
result.slotType = TurretSlotType.Armed result.slotType = TurretSlotType.Armed
result:updateStaticStats() result:updateStaticStats()
local name = "Hookgun /* weapon name*/"%_T
local dmgAdjective, outerAdjective, barrel, multishot, coax, serial = makeTitleParts(rand, specialties, result, DamageType.Physical) local dmgAdjective, outerAdjective, barrel, multishot, coax, serial = makeTitleParts(rand, specialties, result, DamageType.Physical)
if spec then
outerAdjective = " Holding"%_T
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)
return result return result
@@ -295,7 +335,7 @@ end
generatorFunction[WeaponType.Hookgun] = TurretGenerator.generateHookgunTurret generatorFunction[WeaponType.Hookgun] = TurretGenerator.generateHookgunTurret
-- ===========================================================================================================================================================
function TurretGenerator.generateHiveLauncherTurret(rand, dps, tech, material, rarity) function TurretGenerator.generateHiveLauncherTurret(rand, dps, tech, material, rarity)
local result = TurretTemplate() local result = TurretTemplate()

View File

@@ -2,9 +2,9 @@
TurretIngredients[WeaponType.SmartCannon] = TurretIngredients[WeaponType.SmartCannon] =
{ {
{name = "Servo", amount = 15, investable = 10, minimum = 5, weaponStat = "fireRate", investFactor = 1.0, changeType = StatChanges.Percentage}, {name = "Servo", amount = 15, investable = 10, minimum = 5, weaponStat = "fireRate", investFactor = 1.0, changeType = StatChanges.Percentage},
{name = "Warhead", amount = 5, investable = 6, minimum = 1, weaponStat = "damage", }, {name = "Processor", amount = 5, investable = 6, minimum = 1, weaponStat = "damage", },
{name = "High Pressure Tube", amount = 2, investable = 6, minimum = 1, weaponStat = "reach", }, {name = "High Pressure Tube", amount = 2, investable = 6, minimum = 1, weaponStat = "reach", investFactor = 1.5, changeType = StatChanges.Percentage},
{name = "Ammunition M", amount = 2, investable = 4, minimum = 1, weaponStat = "damage", investFactor = 0.5,}, {name = "Ammunition M", amount = 2, investable = 4, minimum = 1, weaponStat = "damage", investFactor = 1, changeType = StatChanges.Percentage},
{name = "Targeting Card", amount = 3, investable = 3, minimum = 0, weaponStat = "seeker", investFactor = 1, changeType = StatChanges.Flat}, {name = "Targeting Card", amount = 3, investable = 3, minimum = 0, weaponStat = "seeker", investFactor = 1, changeType = StatChanges.Flat},
{name = "Steel", amount = 8, investable = 10, minimum = 3,}, {name = "Steel", amount = 8, investable = 10, minimum = 3,},
{name = "Steel Tube", amount = 5, investable = 10, minimum = 3,}, {name = "Steel Tube", amount = 5, investable = 10, minimum = 3,},
@@ -13,9 +13,9 @@ TurretIngredients[WeaponType.SmartCannon] =
TurretIngredients[WeaponType.HeavyCannon] = TurretIngredients[WeaponType.HeavyCannon] =
{ {
{name = "Servo", amount = 8, investable = 8, minimum = 4, weaponStat = "fireRate", investFactor = 1.0, changeType = StatChanges.Percentage}, {name = "Servo", amount = 8, investable = 8, minimum = 4, weaponStat = "fireRate", investFactor = 1.0, changeType = StatChanges.Percentage},
{name = "Warhead", amount = 5, investable = 6, minimum = 1, weaponStat = "damage", }, {name = "Explosive Charge", amount = 5, investable = 6, minimum = 1, weaponStat = "damage", },
{name = "High Pressure Tube", amount = 2, investable = 6, minimum = 1, weaponStat = "reach", }, {name = "High Pressure Tube", amount = 2, investable = 6, minimum = 1, weaponStat = "reach", },
{name = "Ammunition", amount = 5, investable = 10, minimum = 3, weaponStat = "damage", investFactor = 0.2,}, {name = "Ammunition L", amount = 5, investable = 10, minimum = 3, weaponStat = "damage", investFactor = 0.2,},
{name = "Steel", amount = 20, investable = 10, minimum = 20,}, {name = "Steel", amount = 20, investable = 10, minimum = 20,},
{name = "Metal Plate", amount = 8, investable = 10, minimum = 10,}, {name = "Metal Plate", amount = 8, investable = 10, minimum = 10,},
} }
@@ -24,20 +24,19 @@ TurretIngredients[WeaponType.Diffuser] =
{ {
{name = "Plasma Cell", amount = 10, investable = 10, minimum = 10, weaponStat = "fireRate", investFactor = 1.0, changeType = StatChanges.Percentage}, {name = "Plasma Cell", amount = 10, investable = 10, minimum = 10, weaponStat = "fireRate", investFactor = 1.0, changeType = StatChanges.Percentage},
{name = "High Capacity Lens", amount = 5, investable = 6, minimum = 1, weaponStat = "reach", }, {name = "High Capacity Lens", amount = 5, investable = 6, minimum = 1, weaponStat = "reach", },
{name = "Energy Tube", amount = 2, investable = 6, minimum = 1, weaponStat = "damage", }, {name = "Industrial Tesla Coil",amount = 2, investable = 6, minimum = 1, weaponStat = "damage", },
{name = "Steel", amount = 20, investable = 0, minimum = 20,}, {name = "Steel", amount = 20, investable = 0, minimum = 20,},
{name = "Copper", amount = 10, investable = 0, minimum = 10,}, {name = "Copper", amount = 10, investable = 0, minimum = 10,},
{name = "Silver", amount = 5, investable = 0, minimum = 5,}, {name = "Silver", amount = 5, investable = 0, minimum = 5,},
} }
TurretIngredients[WeaponType.Hookgun] = -- TODO Подумать над составляющими TurretIngredients[WeaponType.Hookgun] =
{ {
{name = "Plasma Cell", amount = 10, investable = 10, minimum = 10, weaponStat = "fireRate", investFactor = 1.0, changeType = StatChanges.Percentage}, {name = "Force Generator", amount = 10, investable = 10, minimum = 10, weaponStat = "fireRate", investFactor = 1.0, changeType = StatChanges.Percentage},
{name = "High Capacity Lens", amount = 5, investable = 6, minimum = 1, weaponStat = "reach", }, {name = "Energy Tube", amount = 5, investable = 6, minimum = 1, weaponStat = "reach", },
{name = "Energy Tube", amount = 2, investable = 6, minimum = 1, weaponStat = "damage", }, {name = "Power Unit", amount = 2, investable = 6, minimum = 1, weaponStat = "damage", },
{name = "Steel", amount = 20, investable = 0, minimum = 20,}, {name = "Steel", amount = 20, investable = 0, minimum = 20,},
{name = "Copper", amount = 10, investable = 0, minimum = 10,}, {name = "Conductor", amount = 10, investable = 0, minimum = 10,},
{name = "Silver", amount = 5, investable = 0, minimum = 5,},
} }
TurretIngredients[WeaponType.HiveLauncher] = TurretIngredients[WeaponType.HiveLauncher] =

View File

@@ -3,11 +3,11 @@ function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
local weapon = Weapon() local weapon = Weapon()
weapon:setProjectile() weapon:setProjectile()
dps = dps * 0.75 dps = dps * 0.9
local fireDelay = rand:getFloat(1.5, 2.5)*0.5 local fireDelay = rand:getFloat(0.6, 1)
local reach = rand:getFloat(1100, 1500)*0.7 local reach = rand:getFloat(1100, 1500)*0.7
local damage = dps * fireDelay local damage = dps * fireDelay
local speed = rand:getFloat(300, 400)*2 local speed = rand:getFloat(300, 400)*4
local existingTime = (reach / speed)*1.2 local existingTime = (reach / speed)*1.2
weapon.fireDelay = fireDelay weapon.fireDelay = fireDelay
@@ -32,7 +32,7 @@ function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
weapon.psize = rand:getFloat(0.2, 0.5) weapon.psize = rand:getFloat(0.2, 0.5)
weapon.pmaximumTime = existingTime weapon.pmaximumTime = existingTime
weapon.pvelocity = speed weapon.pvelocity = speed
weapon.pcolor = ColorHSV(rand:getFloat(10, 60), 0.7, 1) weapon.pcolor = ColorHSV(rand:getFloat(20, 45), 0.7, 1)
WeaponGenerator.adaptWeapon(rand, weapon, tech, material, rarity) WeaponGenerator.adaptWeapon(rand, weapon, tech, material, rarity)
@@ -53,7 +53,7 @@ function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
dps = dps * 1.85 dps = dps * 1.85
local fireDelay = rand:getFloat(1.5, 2.0)*1.7 local fireDelay = rand:getFloat(1.5, 2.0)*1.7
local reach = rand:getFloat(1100, 1500)*1.2 local reach = rand:getFloat(1100, 1500)*1.5
local damage = dps * fireDelay local damage = dps * fireDelay
local speed = rand:getFloat(600, 1000)*1.4 local speed = rand:getFloat(600, 1000)*1.4
local existingTime = (reach / speed)*1.1 local existingTime = (reach / speed)*1.1
@@ -65,7 +65,7 @@ function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
weapon.name = "Heavy Cannon /* Weapon Name*/"%_t weapon.name = "Heavy Cannon /* Weapon Name*/"%_t
weapon.icon = "data/textures/icons/heavycannon.png" weapon.icon = "data/textures/icons/heavycannon.png"
weapon.sound = "cannon" weapon.sound = "cannon"
weapon.accuracy = 0.95 - rand:getFloat(0, 0.02) weapon.accuracy = 0.99 - rand:getFloat(0, 0.02)
weapon.damage = damage weapon.damage = damage
weapon.damageType = DamageType.Physical weapon.damageType = DamageType.Physical
@@ -75,10 +75,10 @@ function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
weapon.otherForce = dps*math.max(1, rarity.value)*89*5 weapon.otherForce = dps*math.max(1, rarity.value)*89*5
weapon.psize = rand:getFloat(0.2, 0.5) weapon.psize = rand:getFloat(1.2, 1.5)
weapon.pmaximumTime = existingTime weapon.pmaximumTime = existingTime
weapon.pvelocity = speed weapon.pvelocity = speed
weapon.pcolor = ColorHSV(rand:getFloat(10, 60), 0.7, 1) weapon.pcolor = ColorHSV(rand:getFloat(10, 45), 0.7, 0.4)
WeaponGenerator.adaptWeapon(rand, weapon, tech, material, rarity) WeaponGenerator.adaptWeapon(rand, weapon, tech, material, rarity)
@@ -164,7 +164,6 @@ function WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
weapon.blockPenetration = rand:getInt(0, rarity.value) + 2 weapon.blockPenetration = rand:getInt(0, rarity.value) + 2
weapon.otherForce = -500 * dps * rarity.value weapon.otherForce = -500 * dps * rarity.value
weapon.damage = damage weapon.damage = damage
@@ -183,13 +182,11 @@ function WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
weapon.banimationAcceleration = 0 weapon.banimationAcceleration = 0
weapon.bshapeSize = 13 weapon.bshapeSize = 13
-- shades of blue weapon.bouterColor = ColorHSV(rand:getInt(255, 260), 0,75, rand:getFloat(0.2, 0.25))
weapon.bouterColor = ColorHSV(0, 0, rand:getFloat(0.35, 0.65)) weapon.binnerColor = ColorHSV(rand:getInt(255, 260), 0,75, rand:getFloat(0, 0.15))
weapon.binnerColor = ColorHSV(1, 1, rand:getFloat(0.35, 0.65))
WeaponGenerator.adaptWeapon(rand, weapon, tech, material, rarity) WeaponGenerator.adaptWeapon(rand, weapon, tech, material, rarity)
return weapon return weapon
end end
@@ -204,7 +201,7 @@ function WeaponGenerator.generateHiveLauncher(rand, dps, tech, material, rarity)
local fireDelay = rand:getFloat(2.2, 3) local fireDelay = rand:getFloat(2.2, 3)
local reach = rand:getFloat(1300, 1800) local reach = rand:getFloat(1300, 1800)
local damage = dps * fireDelay local damage = dps * fireDelay
local speed = rand:getFloat(150, 200) local speed = rand:getFloat(200, 250)
local existingTime = reach / speed local existingTime = reach / speed
weapon.fireDelay = fireDelay weapon.fireDelay = fireDelay
@@ -227,7 +224,7 @@ function WeaponGenerator.generateHiveLauncher(rand, dps, tech, material, rarity)
weapon.psize = rand:getFloat(0.2, 0.4) weapon.psize = rand:getFloat(0.2, 0.4)
weapon.pmaximumTime = existingTime weapon.pmaximumTime = existingTime
weapon.pvelocity = speed weapon.pvelocity = speed
weapon.pcolor = ColorHSV(rand:getFloat(10, 60), 0.7, 1) weapon.pcolor = ColorHSV(rand:getFloat(10, 60), 0.8, rand:getFloat(0.25, 0.75))
weapon.pshape = ProjectileShape.Rocket weapon.pshape = ProjectileShape.Rocket
if rand:test(1) then if rand:test(1) then

View File

@@ -1,6 +1,6 @@
WeaponTypes.addType("SmartCannon", "Smart Сannon /* Weapon Type */"%_t, armed) WeaponTypes.addType("SmartCannon", "Smart-Сannon /* Weapon Type */"%_t, armed)
WeaponTypes.addType("HeavyCannon", "Heavy Cannon /* Weapon Type */"%_t, armed) WeaponTypes.addType("HeavyCannon", "Heavy Cannon /* Weapon Type */"%_t, armed)
WeaponTypes.addType("Diffuser", "Diffuser /* Weapon Type */"%_t, armed) WeaponTypes.addType("Diffuser", "Diffuser /* Weapon Type */"%_t, armed)
WeaponTypes.addType("Hookgun", "Hookgun /* Weapon Type */"%_t, armed) WeaponTypes.addType("Hookgun", "Hookgun /* Weapon Type */"%_t, armed)
WeaponTypes.addType("HiveLauncher", "HiveLauncher /* Weapon Type */"%_t, armed) WeaponTypes.addType("HiveLauncher", "Hive-Launcher /* Weapon Type */"%_t, armed)

BIN
thumb.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 344 KiB