Skip to content

Commit

Permalink
Organize Tech definitions into sub directories
Browse files Browse the repository at this point in the history
  • Loading branch information
dbenage-cx committed Sep 2, 2017
1 parent b523f7c commit ce8eb3c
Show file tree
Hide file tree
Showing 91 changed files with 938 additions and 869 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Tech
name = "SHP_DIAMOND_PLATE"
description = "SHP_DIAMOND_PLATE_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 150 * [[TECH_COST_MULTIPLIER]]
researchturns = 4
tags = [ "PEDIA_ARMOR_PART_TECHS" ]
prerequisites = "SHP_ZORTRIUM_PLATE"
unlock = Item type = ShipPart name = "AR_DIAMOND_PLATE"
graphic = "icons/tech/armor_plating.png"

#include "/scripting/common/base_prod.macros"
12 changes: 12 additions & 0 deletions default/scripting/techs/ship_parts/armor/SHP_ROOT_ARMOR.focs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Tech
name = "SHP_ROOT_ARMOR"
description = "SHP_ROOT_ARMOR_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 1
researchturns = 1
tags = [ "PEDIA_ARMOR_PART_TECHS" ]
unlock = Item type = ShipPart name = "AR_STD_PLATE"
graphic = "icons/tech/armor_plating.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Tech
name = "SHP_XENTRONIUM_PLATE"
description = "SHP_XENTRONIUM_PLATE_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 750 * [[TECH_COST_MULTIPLIER]]
researchturns = 6
tags = [ "PEDIA_ARMOR_PART_TECHS" ]
prerequisites = "SHP_DIAMOND_PLATE"
unlock = Item type = ShipPart name = "AR_XENTRONIUM_PLATE"
graphic = "icons/tech/armor_plating.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Tech
name = "SHP_ZORTRIUM_PLATE"
description = "SHP_ZORTRIUM_PLATE_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 30 * [[TECH_COST_MULTIPLIER]]
researchturns = 2
tags = [ "PEDIA_ARMOR_PART_TECHS" ]
prerequisites = "SHP_ROOT_ARMOR"
unlock = Item type = ShipPart name = "AR_ZORTRIUM_PLATE"
graphic = "icons/tech/armor_plating.png"


#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Tech
name = "SHP_ADV_DAM_CONT"
description = "SHP_ADV_DAM_CONT_DESC"
short_description = "STRUCTURE_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 100 * [[TECH_COST_MULTIPLIER]]
researchturns = 5
tags = [ "PEDIA_DAMAGE_CONTROL_PART_TECHS" ]
prerequisites = [
"SHP_FLEET_REPAIR"
"CON_GAL_INFRA"
]
effectsgroups =
EffectsGroup
scope = And [
Ship
OwnedBy empire = Source.Owner
Stationary
Turn low = LocalCandidate.System.LastTurnBattleHere + 1
]
effects = SetStructure value = Value + (Target.MaxStructure/10)

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Tech
name = "SHP_BASIC_DAM_CONT"
description = "SHP_BASIC_DAM_CONT_DESC"
short_description = "STRUCTURE_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 40 * [[TECH_COST_MULTIPLIER]]
researchturns = 4
tags = [ "PEDIA_DAMAGE_CONTROL_PART_TECHS" ]
prerequisites = "SHP_MIL_ROBO_CONT"
effectsgroups =
EffectsGroup
scope = And [
Ship
OwnedBy empire = Source.Owner
Or [
Not InSystem
And [
InSystem
Turn low = LocalCandidate.System.LastTurnBattleHere + 1
]
]
Structure high = LocalCandidate.MaxStructure - 0.001
]
effects = SetStructure value = Value + 1

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Tech
name = "SHP_FLEET_REPAIR"
description = "SHP_FLEET_REPAIR_DESC"
short_description = "SHIP_REPAIR_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 80 * [[TECH_COST_MULTIPLIER]]
researchturns = 10
tags = [ "PEDIA_DAMAGE_CONTROL_PART_TECHS" ]
prerequisites = [
"SHP_INTSTEL_LOG"
"SHP_BASIC_DAM_CONT"
]
effectsgroups =
EffectsGroup
scope = And [
Ship
InSystem
Stationary
OwnedBy empire = Source.Owner
Turn low = LocalCandidate.System.LastTurnBattleHere + 1
Structure high = LocalCandidate.MaxStructure - 0.001
ResupplyableBy empire = Source.Owner
]
effects = SetStructure value = Value + (Target.MaxStructure/10)

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Tech
name = "SHP_REINFORCED_HULL"
description = "SHP_REINFORCED_HULL_DESC"
short_description = "STRUCTURE_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 36 * [[TECH_COST_MULTIPLIER]]
researchturns = 3
tags = [ "PEDIA_DAMAGE_CONTROL_PART_TECHS" ]
prerequisites = "CON_ARCH_MONOFILS"
effectsgroups =
EffectsGroup
scope = And [
Ship
OwnedBy empire = Source.Owner
]
effects = SetMaxStructure value = Value + 5
graphic = "icons/tech/structural_integrity_fields.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Tech
name = "SHP_ANTIMATTER_TANK"
description = "SHP_ANTIMATTER_TANK_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 175 * [[TECH_COST_MULTIPLIER]]
researchturns = 3
tags = [ "PEDIA_FUEL_PART_TECHS" ]
prerequisites = [
"SHP_DEUTERIUM_TANK"
"LRN_FORCE_FIELD"
]
unlock = Item type = ShipPart name = "FU_ANTIMATTER_TANK"
graphic = "icons/ship_parts/antimatter_tank.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Tech
name = "SHP_DEUTERIUM_TANK"
description = "SHP_DEUTERIUM_TANK_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 24 * [[TECH_COST_MULTIPLIER]]
researchturns = 3
tags = [ "PEDIA_FUEL_PART_TECHS" ]
prerequisites = [
"SHP_GAL_EXPLO"
"PRO_FUSION_GEN"
]
unlock = [
Item type = ShipPart name = "FU_DEUTERIUM_TANK"
Item type = ShipPart name = "FU_RAMSCOOP"
]
graphic = "icons/ship_parts/deuterium_tank.png"

#include "/scripting/common/base_prod.macros"
16 changes: 16 additions & 0 deletions default/scripting/techs/ship_parts/fuel/SHP_ZERO_POINT.focs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Tech
name = "SHP_ZERO_POINT"
description = "SHP_ZERO_POINT_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 175 * [[TECH_COST_MULTIPLIER]]
researchturns = 3
tags = [ "PEDIA_FUEL_PART_TECHS" ]
prerequisites = [
"SHP_ANTIMATTER_TANK"
"PRO_ZERO_GEN"
]
unlock = Item type = ShipPart name = "FU_ZERO_FUEL"
graphic = "icons/ship_parts/zero-point-generator.png"

#include "/scripting/common/base_prod.macros"
13 changes: 13 additions & 0 deletions default/scripting/techs/ship_parts/shield/SHP_BLACKSHIELD.focs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Tech
name = "SHP_BLACKSHIELD"
description = "SHP_BLACKSHIELD_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 3750 * [[TECH_COST_MULTIPLIER]]
researchturns = 10
tags = [ "PEDIA_SHIELD_PART_TECHS" ]
prerequisites = "SHP_PLASMA_SHIELD"
unlock = Item type = ShipPart name = "SH_BLACK"
graphic = "icons/ship_parts/blackshield.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Tech
name = "SHP_DEFLECTOR_SHIELD"
description = "SHP_DEFLECTOR_SHIELD_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 150 * [[TECH_COST_MULTIPLIER]]
researchturns = 10
tags = [ "PEDIA_SHIELD_PART_TECHS" ]
prerequisites = "LRN_FORCE_FIELD"
unlock = Item type = ShipPart name = "SH_DEFLECTOR"
graphic = "icons/ship_parts/deflector_shield.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Tech
name = "SHP_MULTISPEC_SHIELD"
description = "SHP_MULTISPEC_SHIELD_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 2000 * [[TECH_COST_MULTIPLIER]]
researchturns = 10
//Unresearchable
tags = [ "PEDIA_SHIELD_PART_TECHS" ]
prerequisites = [
"SHP_PLASMA_SHIELD"
"SPY_DIST_MOD"
]
unlock = Item type = ShipPart name = "SH_MULTISPEC"
graphic = "icons/ship_parts/multi-spectral.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Tech
name = "SHP_PLASMA_SHIELD"
description = "SHP_PLASMA_SHIELD_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 750 * [[TECH_COST_MULTIPLIER]]
researchturns = 10
tags = [ "PEDIA_SHIELD_PART_TECHS" ]
prerequisites = "SHP_DEFLECTOR_SHIELD"
unlock = Item type = ShipPart name = "SH_PLASMA"
graphic = "icons/ship_parts/plasma_shield.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Tech
name = "SHP_IMPROVED_ENGINE_COUPLINGS"
description = "SHP_IMPROVED_ENGINE_COUPLINGS_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 24 * [[TECH_COST_MULTIPLIER]]
researchturns = 3
tags = [ "PEDIA_ENGINE_PART_TECHS" ]
prerequisites = "SHP_GAL_EXPLO"
unlock = Item type = ShipPart name = "FU_IMPROVED_ENGINE_COUPLINGS"
graphic = "icons/ship_parts/engine-1.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Tech
name = "SHP_N_DIMENSIONAL_ENGINE_MATRIX"
description = "SHP_N_DIMENSIONAL_ENGINE_MATRIX_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 250 * [[TECH_COST_MULTIPLIER]]
researchturns = 5
tags = [ "PEDIA_ENGINE_PART_TECHS" ]
prerequisites = [
"SHP_IMPROVED_ENGINE_COUPLINGS"
"LRN_NDIM_SUBSPACE"
]
unlock = Item type = ShipPart name = "FU_N_DIMENSIONAL_ENGINE_MATRIX"
graphic = "icons/ship_parts/engine-2.png"

#include "/scripting/common/base_prod.macros"
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Tech
name = "SHP_SINGULARITY_ENGINE_CORE"
description = "SHP_SINGULARITY_ENGINE_CORE_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_PARTS_CATEGORY"
researchcost = 500 * [[TECH_COST_MULTIPLIER]]
researchturns = 10
tags = [ "PEDIA_ENGINE_PART_TECHS" ]
prerequisites = [
"SHP_N_DIMENSIONAL_ENGINE_MATRIX"
"PRO_SINGULAR_GEN"
]
unlock = Item type = ShipPart name = "FU_SINGULARITY_ENGINE_CORE"
graphic = "icons/ship_parts/engine-3.png"

#include "/scripting/common/base_prod.macros"
12 changes: 12 additions & 0 deletions default/scripting/techs/ship_weapons/SHP_KRILL_SPAWN.focs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Tech
name = "SHP_KRILL_SPAWN"
description = "SHP_KRILL_SPAWN_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_WEAPONS_CATEGORY"
researchcost = 9999 * [[TECH_COST_MULTIPLIER]]
researchturns = 9999
Unresearchable
tags = [ "PEDIA_SHIP_WEAPONS_CATEGORY" ]
unlock = Item type = ShipPart name = "SP_KRILL_SPAWNER"

#include "/scripting/common/base_prod.macros"
19 changes: 19 additions & 0 deletions default/scripting/techs/ship_weapons/SHP_NOVA_BOMB.focs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Tech
name = "SHP_NOVA_BOMB"
description = "SHP_NOVA_BOMB_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_WEAPONS_CATEGORY"
researchcost = 750 * [[TECH_COST_MULTIPLIER]]
researchturns = 12
tags = [ "PEDIA_SHIP_WEAPONS_CATEGORY" ]
prerequisites = [
"LRN_TIME_MECH"
"PRO_ZERO_GEN"
]
unlock = [
Item type = ShipPart name = "SP_NOVA_BOMB"
Item type = Building name = "BLD_NOVA_BOMB_ACTIVATOR"
]
graphic = "icons/ship_parts/nova-bomb.png"

#include "/scripting/common/base_prod.macros"
22 changes: 22 additions & 0 deletions default/scripting/techs/ship_weapons/SHP_ROOT_AGGRESSION.focs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Tech
name = "SHP_ROOT_AGGRESSION"
description = "SHP_ROOT_AGGRESSION_DESC"
short_description = "SHIP_WEAPON_UNLOCK_SHORT_DESC"
category = "SHIP_WEAPONS_CATEGORY"
researchcost = 1
researchturns = 1
tags = [ "PEDIA_SHIP_WEAPONS_CATEGORY" ]
unlock = [
Item type = ShipPart name = "SR_WEAPON_1_1"
Item type = ShipPart name = "GT_TROOP_POD"
Item type = ShipPart name = "SR_WEAPON_0_1"
]
effectsgroups = [
[[WEAPON_BASE_EFFECTS(SR_WEAPON_0_1)]]
[[WEAPON_BASE_EFFECTS(SR_WEAPON_1_1)]]
]
graphic = "icons/tech/planetary_colonialism.png"

#include "ship_weapons.macros"

#include "/scripting/common/base_prod.macros"
16 changes: 16 additions & 0 deletions default/scripting/techs/ship_weapons/bombard/SHP_BIOTERM.focs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Tech
name = "SHP_BIOTERM"
description = "SHP_BIOTERM_DESC"
short_description = "SHIP_PART_UNLOCK_SHORT_DESC"
category = "SHIP_WEAPONS_CATEGORY"
researchcost = 500 * [[TECH_COST_MULTIPLIER]]
researchturns = 5
tags = [ "PEDIA_BOMBARD_WEAPON_TECHS" ]
prerequisites = [
"SHP_DEATH_SPORE"
"GRO_BIOTERROR"
]
unlock = Item type = ShipPart name = "SP_BIOTERM"
graphic = "icons/ship_parts/bioterm.png"

#include "/scripting/common/base_prod.macros"

0 comments on commit ce8eb3c

Please sign in to comment.