Turret Shields

by OwnlyMe

Lightweight scripted shields with power consumption for all turrets (configurable or researchable)

Content
4 hours ago
0.16 - 2.0
127
Combat

i I recommend setting type to startup rather than runtime-global.

6 years ago
(updated 6 years ago)

You can return to the technical description by changing the setting value as shown below.

--data-updates
research_size = settings.startup["TS_research_size"].value
research_speed = settings.startup["TS_research_speed"].value

    type = "technology",
    name = "turret-shields-size-1",
    ...
    effects =
    {{
    type = "nothing",
    effect_description = {"modifier-description.turret-shields-size-1", 100 * research_size},
    }},
    ...

--locale
[modifier-description]
turret-shields-size-1=Increases the HP of your turret shields to __1__

--in-game output
(ex. TS_research_size.vale: 1)
Increases the HP of your turret shields to 100
(ex. TS_research_size.vale: 0.9)
Increases the HP of your turret shields to 90

6 years ago

And I attach a localized file translated into Korean for you.

\locale\ko

file: Turret-Shields_ko.cfg

6 years ago
(updated 6 years ago)

i see, but i prefer all settings being changable ingame, but thanks for the locale, i will include it in the next version

6 years ago

Updated korean locale :)

[mod-setting-name]
...
TS_alternate_effect=대체 시각 효과
TS_energy_consumption=전력 소비
TS_energy_consumption_multiplier=전력 당 충전 배율
TS_penalty=전력 미공급시 초 당 패널티 (%)
TS_power_usage=대기 전력 (%)

[mod-setting-description]
...
TS_alternate_effect=포탑 에너지 보호막의 시각적 효과를 애니메이션 버전으로 대체합니다.
TS_energy_consumption=포탑 에너지 보호막 충전에 전력이 사용됩니다.
TS_energy_consumption_multiplier=소모되는 전략값에 따라 포탑 에너지 보호막 충전 배율을 설정할 수 있습니다.\n(0.01 - 2.00 - 100.0)
TS_penalty=전력 공급이 원할하지 않을 때 포탑 에너지 보호막은 초 당 설정된 값의 보호막을 잃습니다.\n(0 - 37.5 - 100)
TS_power_usage=포탑 에너지 보호막을 활성화 상태로 유지하기 위해 필요한 초 당 소모되는 최대 보호막 값의 백분율값입니다.\n(0 - 0.1 - 10.0)

[item-name]
ts-shield-disabler=포탑 에너지 보호막 스위치
turret-shield-combinator=포탑 에너지 보호막 조합기

[item-description]
turret-shield-combinator=적색 신호가 수신되면 연결되어 있는 포탑의 에너지 보호막은 비활성화됩니다.

6 years ago

thank you :))

6 years ago
(updated 6 years ago)

Sorry, OwnlyMe. I missed one.

[entity-name]
turret-shield-combinator=포탑 에너지 보호막 조합기

Full changed file: Locale_ko.cfg

And I think turret-shield-combinator and ts-shield-disabler recipe unlock turret-shields-base technology.

type = "technology",
name = "turret-shields-base",
effects =
{{
type = "unlock-recipe",
recipe = "turret-shield-combinator"
},
{
type = "unlock-recipe",
recipe = "ts-shield-disabler"
}},

...

type = "recipe",
enabled = "false"

6 years ago

yeah i was too lazy to implement the unlocking :D
thank you anyway :)

6 years ago

yeah i was too lazy to implement the unlocking :D
thank you anyway :)

Maybe It has a fatal error. This is because you can use turret shields if you get a Turret shield toggle without research.

6 years ago
(updated 6 years ago)

it wont cause errors, the deactivation just acts like a flag

New response