Compare commits
52 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d08a6bdfc | ||
|
|
83dddbea1e | ||
|
|
8c3ff4993b | ||
|
|
34d41c4c5b | ||
|
|
efce751464 | ||
|
|
02a32a81f2 | ||
|
|
90c76900e1 | ||
|
|
4cb196b579 | ||
|
|
30343d47a0 | ||
|
|
7410e3f488 | ||
|
|
36434648d6 | ||
|
|
42c671c3a7 | ||
|
|
aa6c42b840 | ||
|
|
92e0636354 | ||
|
|
f84cc424b1 | ||
|
|
1e11687962 | ||
|
|
07a05df171 | ||
|
|
4c101287bf | ||
|
|
a16f0be550 | ||
|
|
6915961e99 | ||
|
|
1612ba9195 | ||
|
|
44fef51edd | ||
|
|
946a585ec7 | ||
|
|
cd6210888b | ||
|
|
ccf5c37ec8 | ||
|
|
0edade93c1 | ||
|
|
ce80b62b82 | ||
|
|
80d1d57d94 | ||
|
|
1d21757453 | ||
|
|
4644383c73 | ||
|
|
a99b373b25 | ||
|
|
7cf0b95477 | ||
|
|
ae4e872b74 | ||
|
|
4e5f0a0f89 | ||
|
|
599872b114 | ||
|
|
e11ab2dae5 | ||
|
|
d46d044e2d | ||
|
|
b81d07eb49 | ||
|
|
0f744108b0 | ||
|
|
e92fa54cac | ||
|
|
c4a48cbed4 | ||
|
|
cdabe00195 | ||
|
|
60c589fb74 | ||
|
|
5024ed74d4 | ||
|
|
8f1f252601 | ||
|
|
927da67587 | ||
|
|
ce4627919f | ||
|
|
ee48cf94c5 | ||
|
|
3f5c906577 | ||
|
|
d6450e63c0 | ||
|
|
71e17e719b | ||
|
|
d5c9874b2b |
@@ -1,22 +1,33 @@
|
|||||||
stages: # List of stages for jobs, and their order of execution
|
stages:
|
||||||
|
- prepare # List of stages for jobs, and their order of execution
|
||||||
- release
|
- release
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
prepare_job:
|
||||||
|
stage: prepare
|
||||||
|
image: python:3.10
|
||||||
|
script:
|
||||||
|
- 'pip install requests'
|
||||||
|
- 'git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gl.beaconborn.ru/bacon/translation-generator.git'
|
||||||
|
- 'python3 translation-generator/main.py $CI_PROJECT_DIR/WPE-2/data/'
|
||||||
|
- 'ls -al'
|
||||||
|
|
||||||
|
|
||||||
release_job:
|
release_job:
|
||||||
|
needs:
|
||||||
|
- prepare_job
|
||||||
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
|
||||||
|
|
||||||
only:
|
only:
|
||||||
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
||||||
refs:
|
refs:
|
||||||
- main
|
- testing
|
||||||
- ^tags
|
- ^tags
|
||||||
changes:
|
changes:
|
||||||
- ^README.md
|
|
||||||
- ^CHANGELOG
|
|
||||||
- ^.gitattribute
|
|
||||||
- ^.gitignore
|
|
||||||
- ^.gitlab-ci.yml
|
|
||||||
- data/**/*
|
- data/**/*
|
||||||
- modinfo.lua
|
- modinfo.lua
|
||||||
- thumb.png
|
- thumb.png
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# ========== /mods/WPE2/data/scripts/lib/weapongenerator.lua ==========
|
# ========== /mods/WPE2/data/scripts/lib/weapongenerator.lua ==========
|
||||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||||
msgctxt "Weapon Name"
|
msgctxt "Weapon Name"
|
||||||
msgid "SmartCannon"
|
msgid "Smart Cannon"
|
||||||
msgstr "Умная пушка"
|
msgstr "Умная пушка"
|
||||||
|
|
||||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||||
msgctxt "Weapon Prefix"
|
msgctxt "Weapon Prefix"
|
||||||
msgid "SmartCannon"
|
msgid "Smart Cannon"
|
||||||
msgstr "Умная пушка"
|
msgstr "Умная пушка"
|
||||||
|
|
||||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
|
|||||||
weapon.fireDelay = fireDelay
|
weapon.fireDelay = fireDelay
|
||||||
weapon.reach = reach
|
weapon.reach = reach
|
||||||
weapon.appearanceSeed = rand:getInt()
|
weapon.appearanceSeed = rand:getInt()
|
||||||
weapon.seeker = 1
|
weapon.seeker = rand:test(1 / 2)
|
||||||
weapon.appearance = WeaponAppearance.Cannon
|
weapon.appearance = WeaponAppearance.Cannon
|
||||||
weapon.name = "SmartCannon /* Weapon Name*/"%_t
|
weapon.name = "Smart Cannon /* Weapon Name*/"%_t
|
||||||
weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
|
weapon.prefix = "Smart Cannon /* Weapon Prefix*/"%_t
|
||||||
weapon.icon = "data/textures/icons/autocannon.png"
|
weapon.icon = "data/textures/icons/autocannon.png"
|
||||||
weapon.sound = "cannon"
|
weapon.sound = "cannon"
|
||||||
weapon.accuracy = 0.99 - rand:getFloat(0, 0.03)
|
weapon.accuracy = 0.99 - rand:getFloat(0, 0.03)
|
||||||
@@ -28,14 +28,6 @@ function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
|
|||||||
weapon.impactSound = 1
|
weapon.impactSound = 1
|
||||||
weapon.impactExplosion = true
|
weapon.impactExplosion = true
|
||||||
|
|
||||||
local specType = rand:getInt(0, 1)
|
|
||||||
if specType > 0 then
|
|
||||||
weapon.prefix = "Ionized SmartCannon /* Weapon Prefix*/"%_t
|
|
||||||
weapon.shieldPenetration = 1
|
|
||||||
else
|
|
||||||
weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
|
|
||||||
end
|
|
||||||
|
|
||||||
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
|
||||||
@@ -52,7 +44,6 @@ end
|
|||||||
|
|
||||||
generatorFunction[WeaponType.SmartCannon] = WeaponGenerator.generateSmartCannon
|
generatorFunction[WeaponType.SmartCannon] = WeaponGenerator.generateSmartCannon
|
||||||
|
|
||||||
|
|
||||||
function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
|
function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
|
||||||
local weapon = Weapon()
|
local weapon = Weapon()
|
||||||
weapon:setProjectile()
|
weapon:setProjectile()
|
||||||
@@ -157,7 +148,7 @@ generatorFunction[WeaponType.Diffuser] = WeaponGenerator.generateDiffuser
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function WeaponGenerator.generateHarpoon(rand, dps, tech, material, rarity)
|
function WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
|
||||||
local weapon = Weapon()
|
local weapon = Weapon()
|
||||||
weapon:setBeam()
|
weapon:setBeam()
|
||||||
|
|
||||||
@@ -170,8 +161,8 @@ function WeaponGenerator.generateHarpoon(rand, dps, tech, material, rarity)
|
|||||||
weapon.reach = reach
|
weapon.reach = reach
|
||||||
weapon.continuousBeam = true
|
weapon.continuousBeam = true
|
||||||
weapon.appearance = WeaponAppearance.Cannon
|
weapon.appearance = WeaponAppearance.Cannon
|
||||||
weapon.name = "Harpoon /* Weapon Name*/"%_t
|
weapon.name = "Hookgun /* Weapon Name*/"%_t
|
||||||
weapon.prefix = "Harpoon /* Weapon Prefix*/"%_t
|
weapon.prefix = "Hookgun /* Weapon Prefix*/"%_t
|
||||||
weapon.icon = "data/textures/icons/harpoon.png"
|
weapon.icon = "data/textures/icons/harpoon.png"
|
||||||
weapon.sound = "cannon"
|
weapon.sound = "cannon"
|
||||||
weapon.accuracy = 0.99 - rand:getFloat(0, 0.02)
|
weapon.accuracy = 0.99 - rand:getFloat(0, 0.02)
|
||||||
@@ -207,4 +198,4 @@ function WeaponGenerator.generateHarpoon(rand, dps, tech, material, rarity)
|
|||||||
return weapon
|
return weapon
|
||||||
end
|
end
|
||||||
|
|
||||||
generatorFunction[WeaponType.Harpoon] = WeaponGenerator.generateHarpoon
|
generatorFunction[WeaponType.Hookgun] = WeaponGenerator.generateHookgun
|
||||||
|
|||||||
Reference in New Issue
Block a user