Skip to content

Commit

Permalink
work in progress: the krill siren tech, building & ship part
Browse files Browse the repository at this point in the history
  • Loading branch information
st-pa-fo committed Mar 5, 2022
1 parent a530038 commit 4c93811
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 0 deletions.
Binary file added default/data/art/icons/building/krill-siren.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions default/scripting/buildings/KRILL_SIREN.focs.txt
@@ -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 default/scripting/ship_parts/General/SP_KRILL_SIREN.focs.txt
@@ -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 default/scripting/techs/ship_weapons/SHP_KRILL_SIREN.focs.txt
@@ -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"
18 changes: 18 additions & 0 deletions default/stringtables/en.txt
Expand Up @@ -13177,6 +13177,12 @@ Solar Containment
SHP_SOLAR_CONT_DESC
A hull constructed from pure energy, while far more versatile than a solid hull, has a disadvantage in that it is unable to harness the potential energy of material objects. If, however, it were made possible to contain a hull composed not of pure energy, but of super-heated gases constantly undergoing a self-sustaining fusion reaction, the limitations of both pure energy and solid matter could be avoided.

SHP_KRILL_SIREN
Krill Siren

SHP_KRILL_SIREN_DESC
Unlocks the [[shippart SP_KRILL_SIREN]] ship part and the [[buildingtype BLD_KRILL_SIREN]] building, which both draw wild space krill from nearby star systems towards their position on the map.

SHP_KRILL_SPAWN
Krill Spawner

Expand Down Expand Up @@ -14483,6 +14489,12 @@ BLD_BIOTERROR_PROJECTOR_DESC

This clandestine biological warfare base wreaks havoc on enemy planets in the vicinity. Such activities are not endorsed by the public however, and this facility can only be built on a planet with a resonant moon. Ineffective if there is a [[buildingtype BLD_GENOME_BANK]] building in the enemy empire. [[BUILDING_AVAILABLE_ON_OUTPOSTS]], provided it has a [[special RESONANT_MOON_SPECIAL]].'''

BLD_KRILL_SIREN
Krill Siren

BLD_KRILL_SIREN_DESC
Decreases the [[metertype METER_STEALTH]] of all objects in the same system by 10. [[BUILDING_AVAILABLE_ON_OUTPOSTS]] and will attract wild space krill from nearby star systems towards its position on the map.

BLD_LIGHTHOUSE
Interstellar Lighthouse

Expand Down Expand Up @@ -15811,6 +15823,12 @@ Nova Bomb
SP_NOVA_BOMB_DESC
A weapon of tremendous power capable of destroying an entire system. The weapon will activate when it receives the signal from a [[buildingtype BLD_NOVA_BOMB_ACTIVATOR]] not more than one starlane jump away.

SP_KRILL_SIREN
Krill Siren

SP_KRILL_SIREN_DESC
Attracts wild space krill from nearby star systems towards its position on the map. Also reduces stealth for ships in the same system or travelling in the same fleet by 10.

SP_KRILL_SPAWNER
Krill Spawner

Expand Down

0 comments on commit 4c93811

Please sign in to comment.