Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eec8c10de4 | ||
|
|
f51f351e06 | ||
|
|
b137aec60a | ||
|
|
ca00911fd7 | ||
|
|
3b34148f77 | ||
|
|
cae212f5a9 | ||
|
|
3988151ccf |
@@ -1,37 +1,25 @@
|
||||
stages:
|
||||
- prepare # List of stages for jobs, and their order of execution
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
- release
|
||||
|
||||
image: python:3.10
|
||||
|
||||
|
||||
prepare_job:
|
||||
stage: prepare
|
||||
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'
|
||||
- cat test.txt
|
||||
|
||||
|
||||
release_job:
|
||||
needs:
|
||||
- prepare_job
|
||||
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
|
||||
|
||||
only:
|
||||
# - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
||||
refs:
|
||||
- testing
|
||||
- main
|
||||
- ^tags
|
||||
changes:
|
||||
- ^README.md
|
||||
- ^CHANGELOG
|
||||
- ^.gitattribute
|
||||
- ^.gitignore
|
||||
- ^.gitlab-ci.yml
|
||||
- data/**/*
|
||||
- modinfo.lua
|
||||
- thumb.png
|
||||
- test.txt
|
||||
|
||||
script:
|
||||
- echo "Release WPE 2.0_$CI_COMMIT_SHORT_SHA"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# ========== /mods/WPE2/data/scripts/lib/weapongenerator.lua ==========
|
||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||
msgctxt "Weapon Name"
|
||||
msgid "Smart Cannon"
|
||||
msgid "SmartCannon"
|
||||
msgstr "Умная пушка"
|
||||
|
||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||
msgctxt "Weapon Prefix"
|
||||
msgid "Smart Cannon"
|
||||
msgid "SmartCannon"
|
||||
msgstr "Умная пушка"
|
||||
|
||||
#: /mods/WPE2/data/scripts/lib/weapongenerator.lua:
|
||||
|
||||
@@ -13,10 +13,10 @@ function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
|
||||
weapon.fireDelay = fireDelay
|
||||
weapon.reach = reach
|
||||
weapon.appearanceSeed = rand:getInt()
|
||||
weapon.seeker = rand:test(1 / 2)
|
||||
weapon.seeker = 1
|
||||
weapon.appearance = WeaponAppearance.Cannon
|
||||
weapon.name = "Smart Cannon /* Weapon Name*/"%_t
|
||||
weapon.prefix = "Smart Cannon /* Weapon Prefix*/"%_t
|
||||
weapon.name = "SmartCannon /* Weapon Name*/"%_t
|
||||
-- weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
|
||||
weapon.icon = "data/textures/icons/autocannon.png"
|
||||
weapon.sound = "cannon"
|
||||
weapon.accuracy = 0.99 - rand:getFloat(0, 0.03)
|
||||
@@ -28,6 +28,14 @@ function WeaponGenerator.generateSmartCannon(rand, dps, tech, material, rarity)
|
||||
weapon.impactSound = 1
|
||||
weapon.impactExplosion = true
|
||||
|
||||
local specType = rand:getInt(0, 1)
|
||||
if specType > 0 then
|
||||
weapon.prefix = "Ionized /* Weapon Prefix*/"%_t
|
||||
weapon.shieldPenetration = 1
|
||||
else
|
||||
weapon.prefix = "SmartCannon /* Weapon Prefix*/"%_t
|
||||
end
|
||||
|
||||
weapon.psize = rand:getFloat(0.2, 0.5)
|
||||
weapon.pmaximumTime = existingTime
|
||||
weapon.pvelocity = speed
|
||||
@@ -44,6 +52,7 @@ end
|
||||
|
||||
generatorFunction[WeaponType.SmartCannon] = WeaponGenerator.generateSmartCannon
|
||||
|
||||
|
||||
function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
|
||||
local weapon = Weapon()
|
||||
weapon:setProjectile()
|
||||
@@ -80,7 +89,7 @@ function WeaponGenerator.generateHeavyCannon(rand, dps, tech, material, rarity)
|
||||
local Pen = rand:getInt(0, rarity.value)
|
||||
if Pen > 0 then
|
||||
weapon.blockPenetration = Pen
|
||||
weapon.prefix = "Cumulative Heavy Cannon /* Weapon Prefix*/"%_t
|
||||
weapon.prefix = "Cumulative/* Weapon Prefix*/"%_t
|
||||
else
|
||||
weapon.prefix = "Heavy Cannon /* Weapon Prefix*/"%_t
|
||||
end
|
||||
@@ -148,7 +157,7 @@ generatorFunction[WeaponType.Diffuser] = WeaponGenerator.generateDiffuser
|
||||
|
||||
|
||||
|
||||
function WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
|
||||
function WeaponGenerator.generateHarpoon(rand, dps, tech, material, rarity)
|
||||
local weapon = Weapon()
|
||||
weapon:setBeam()
|
||||
|
||||
@@ -161,8 +170,8 @@ function WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
|
||||
weapon.reach = reach
|
||||
weapon.continuousBeam = true
|
||||
weapon.appearance = WeaponAppearance.Cannon
|
||||
weapon.name = "Hookgun /* Weapon Name*/"%_t
|
||||
weapon.prefix = "Hookgun /* Weapon Prefix*/"%_t
|
||||
weapon.name = "Harpoon /* Weapon Name*/"%_t
|
||||
weapon.prefix = "Harpoon /* Weapon Prefix*/"%_t
|
||||
weapon.icon = "data/textures/icons/harpoon.png"
|
||||
weapon.sound = "cannon"
|
||||
weapon.accuracy = 0.99 - rand:getFloat(0, 0.02)
|
||||
@@ -198,4 +207,4 @@ function WeaponGenerator.generateHookgun(rand, dps, tech, material, rarity)
|
||||
return weapon
|
||||
end
|
||||
|
||||
generatorFunction[WeaponType.Hookgun] = WeaponGenerator.generateHookgun
|
||||
generatorFunction[WeaponType.Harpoon] = WeaponGenerator.generateHarpoon
|
||||
|
||||
@@ -10,13 +10,13 @@ meta =
|
||||
name = "Weapon_Pack_Extended2",
|
||||
|
||||
-- Title of your mod that will be displayed to players
|
||||
title = "Weapon Pack Extended2",
|
||||
title = "Weapon Pack Extended - Reloaded",
|
||||
|
||||
-- Description of your mod that will be displayed to players
|
||||
description = "Adds some new weapon to the game.",
|
||||
|
||||
-- Insert all authors into this list
|
||||
authors = {"Alive!"},
|
||||
authors = {"Casimir Kepler, Baconborn, OmenOs"},
|
||||
|
||||
-- Version of your mod, should be in format 1.0.0 (major.minor.patch) or 1.0 (major.minor)
|
||||
-- This will be used to check for unmet dependencies or incompatibilities
|
||||
@@ -52,5 +52,5 @@ meta =
|
||||
saveGameAltering = false,
|
||||
|
||||
-- Contact info for other users to reach you in case they have questions
|
||||
contact = "https://steamcommunity.com/id/CasKepler2/",
|
||||
contact = "https://steamcommunity.com/id/CasKepler2/", "https://steamcommunity.com/id/baconborn/",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user