Debian Codegraph @

default/scripting/techs/ship_parts/damage_control/SHP_ADV_DAM_CONT.focs.py

raw
1 from focs._effects import (
2 EffectsGroup,
3 InSystem,
4 LocalCandidate,
5 OwnedBy,
6 SetStructure,
7 Ship,
8 Source,
9 Stationary,
10 Target,
11 Turn,
12 Value,
13 )
14 from focs._tech import *
15 from macros.base_prod import TECH_COST_MULTIPLIER
16
17 Tech(
18 name="SHP_ADV_DAM_CONT",
19 description="SHP_ADV_DAM_CONT_DESC",
20 short_description="STRUCTURE_SHORT_DESC",
21 category="SHIP_PARTS_CATEGORY",
22 researchcost=160 * TECH_COST_MULTIPLIER,
23 researchturns=5,
24 tags=["PEDIA_DAMAGE_CONTROL_PART_TECHS"],
25 prerequisites=["SHP_FLEET_REPAIR"],
26 effectsgroups=[
27 EffectsGroup(
28 scope=Ship
29 & OwnedBy(empire=Source.Owner)
30 & InSystem()
31 & Stationary
32 & Turn(low=LocalCandidate.System.LastTurnBattleHere + 1),
33 effects=SetStructure(value=Value + (Target.MaxStructure / 10)),
34 )
35 ],
36 )