-
Notifications
You must be signed in to change notification settings - Fork 160
/
SH_KRAKEN_1_BODY.focs.txt
98 lines (93 loc) · 3.35 KB
/
SH_KRAKEN_1_BODY.focs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
Hull
name = "SH_KRAKEN_1_BODY"
description = "SH_KRAKEN_1_BODY_DESC"
speed = 40
fuel = 4
NoDefaultFuelEffect
stealth = 5
structure = 20
slots = [
Slot type = External position = (0.25, 0.70)
Slot type = Internal position = (0.55, 0.45)
]
buildcost = 1
buildtime = 1
Unproducible
tags = [ "PEDIA_HULL_MONSTER_KRAKEN" ]
location = All
effectsgroups = [
EffectsGroup // remove self and recreate on first turn, so that it starts with age 0
scope = Source
activation = Turn high = 1
effects = [
CreateShip designname = "SM_KRAKEN_1"
Destroy
]
EffectsGroup
scope = NumberOf number = 2 condition = And [
Planet
Planet type = GasGiant
Not WithinStarlaneJumps jumps = 3 condition = And [
System
Contains And [
Planet
OwnedBy affiliation = AnyEmpire
]
]
]
activation = Turn high = 2
stackinggroup = "GAME_START_MOD_STACK"
effects = AddSpecial name = "KRAKEN_NEST_SPECIAL"
[[GAS_GIANT_STEALTH_BONUS]]
[[HUNT_PLANET_TYPE(GasGiant,0.5)]]
[[MONSTER_MOVE_ALWAYS]]
[[INFINITE_FUEL]]
[[ADD_HULL_FUEL_TO_MAX_FUEL_METER]]
[[MONSTER_SHIELD_REGENERATION]]
EffectsGroup
scope = Source
activation = And [
InSystem
ContainedBy And [
Object id = Source.SystemID
Contains Planet type = GasGiant
]
Turn low = max(30, LocalCandidate.LastTurnActiveInBattle + 1)
//triple the chance of maturing when in a system with Krill
Random probability = (LocalCandidate.Age*0.01 - 0.1) * 3^(Statistic If condition = And [
Source
InSystem
ContainedBy And [
Object id = Source.SystemID
Contains And [
InSystem id = Source.SystemID
Ship
Or [
Design name = "SM_KRILL_1"
Design name = "SM_KRILL_2"
Design name = "SM_KRILL_3"
Design name = "SM_KRILL_4"
]
]
]
])
]
effects = [
CreateShip designname = "SM_KRAKEN_2" empire = Source.Owner name = Source.Name
Destroy
GenerateSitRepMessage
message = "EFFECT_TAME_MONSTER_MATURED"
label = "EFFECT_TAME_MONSTER_MATURED_LABEL"
icon = "icons/monsters/kraken-2.png"
parameters = [
tag = "system" data = Source.SystemID
tag = "predefinedshipdesign" data = "SM_KRAKEN_2"
]
empire = Source.Owner
]
[[MODERATE_VISION]]
]
icon = ""
graphic = "icons/monsters/kraken-1.png"
#include "monster.macros"
#include "../ship_hulls.macros"