-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work in progress: the krill siren tech, building & ship part
- Loading branch information
Showing
5 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
BuildingType | ||
name = "BLD_KRILL_SIREN" | ||
description = "BLD_KRILL_SIREN_DESC" | ||
buildcost = 250 * [[BUILDING_COST_MULTIPLIER]] | ||
buildtime = 10 | ||
location = And [ | ||
Planet | ||
Not Contains Building name = "BLD_KRILL_SIREN" | ||
OwnedBy empire = Source.Owner | ||
] | ||
enqueuelocation = [[ENQUEUE_BUILD_ONE_PER_PLANET]] | ||
effectsgroups = [ | ||
[[SPECIES_LIKES_OR_DISLIKES_BUILDING_STABILITY_EFFECTS]] | ||
|
||
EffectsGroup | ||
scope = WithinDistance distance = 0.00001 condition = Source | ||
stackinggroup = "KRILL_SIREN_STEALTH_STACK" | ||
effects = SetStealth value = Value - 10 | ||
|
||
// TODO: maybe just slow down krill who are moving away and speed up those moving towards | ||
/* | ||
EffectsGroup | ||
scope = And [ | ||
Ship | ||
OwnedBy empire = Source.Owner | ||
WithinDistance distance = 50 condition = Source | ||
Speed low = 1 // Immobile objects do not get the starlane speed boost. | ||
] | ||
stackinggroup = "LIGHTHOUSE_SPEED_STACK" | ||
effects = SetSpeed value = Value + 20 | ||
*/ | ||
] | ||
icon = "icons/building/krill-siren.png" | ||
|
||
#include "/scripting/common/enqueue.macros" | ||
#include "/scripting/common/base_prod.macros" | ||
#include "/scripting/buildings/buildings.macros" | ||
#include "/scripting/common/priorities.macros" |
16 changes: 16 additions & 0 deletions
16
default/scripting/ship_parts/General/SP_KRILL_SIREN.focs.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Part | ||
name = "SP_KRILL_SIREN" | ||
description = "SP_KRILL_SIREN_DESC" | ||
class = General | ||
mountableSlotTypes = Core | ||
buildcost = 100 * [[FLEET_UPKEEP_MULTIPLICATOR]] * [[SHIP_PART_COST_MULTIPLIER]] | ||
buildtime = 10 | ||
tags = [ "PEDIA_PC_GENERAL" ] | ||
location = All | ||
effectsgroups = [ | ||
// TODO: see also: MONSTER_FLEET_MOVE_STACK | ||
] | ||
|
||
icon = "" | ||
|
||
#include "/scripting/common/upkeep.macros" |
20 changes: 20 additions & 0 deletions
20
default/scripting/techs/ship_weapons/SHP_KRILL_SIREN.focs.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Tech | ||
name = "SHP_KRILL_SIREN" | ||
description = "SHP_KRILL_SIREN_DESC" | ||
short_description = "SHIP_PART_UNLOCK_SHORT_DESC" | ||
category = "SHIP_WEAPONS_CATEGORY" | ||
researchcost = 150 * [[TECH_COST_MULTIPLIER]] | ||
researchturns = 10 | ||
Unresearchable | ||
tags = [ "PEDIA_SHIP_WEAPONS_CATEGORY" ] | ||
prerequisites = [ | ||
"GRO_MEGA_ECO" | ||
"CON_CONTGRAV_ARCH" | ||
] | ||
unlock = [ | ||
Item type = ShipPart name = "SP_KRILL_SIREN" | ||
Item type = Building name = "BLD_KRILL_SIREN" | ||
] | ||
graphic = "icons/monsters/krill-3.png" | ||
|
||
#include "/scripting/common/base_prod.macros" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters