Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mod/fed_tech.rules
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,14 @@ Techs
PartsUnlocked = [&<shared_parts/factories/factory_torpedo/factory_torpedo_parts.rules>/Part/ID]
Cost = 10000
}
{
Name = factory_transphasic_torpedo
ID = stafa.factory_transphasic_torpedo_parts
NameKey = &<shared_parts/factories/factory_transphasic_torpedo/factory_transphasic_torpedo.rules>/Part/NameKey
DescriptionKey = &<shared_parts/factories/factory_transphasic_torpedo/factory_transphasic_torpedo.rules>/Part/DescriptionKey
Icon = &<shared_parts/factories/factory_transphasic_torpedo/factory_transphasic_torpedo.rules>/Part/EditorIcon
EditorGroup = &<shared_parts/factories/factory_transphasic_torpedo/factory_transphasic_torpedo.rules>/Part/EditorGroup
PartsUnlocked = [&<shared_parts/factories/factory_transphasic_torpedo/factory_transphasic_torpedo.rules>/Part/ID]
Cost = 1000000
}
]
2 changes: 1 addition & 1 deletion mod/mod.rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Description = "For full details please see Steamworkshop\n\n"\
"- replaces FTL jump sound with warp sounds\n"\
"- adds Starfleet editor group\n"\
"- adds some buffs to the game\n"\
"- adds new resource: torpedo parts and factory\n"\
"- adds new resource: torpedo parts and factories\n"\
"- adds new resource: antimatter (and factory WIP)\n"\
"- adds new resource: dilithium crystals\n"
StringsFolder = "strings"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ Part : <./Data/ships/terran/base_part_terran.rules>/Part
DescriptionKey = "Parts/FactoryTransphasicTorpedoPartDesc"
Resources
[
[steel, 96]
[tristeel, 24]
[coil2, 32]
[diamond, 4]
[steel, 246]
[tristeel, 72]
[coil, 128]
[coil2, 64]
[diamond, 12]
]
Size = [3, 4]
IsFlippable = true
SelectionPriority = 1
MaxHealth = 7000
MaxHealth = 4000
Density = 14
CrewSpeedFactor = 0.05
TypeCategories = [provides_transphasic_torpedo_part, uses_iron, uses_copper, uses_power, uses_antimatter, uses_processors]
ReceivableBuffs : ^/0/ReceivableBuffs [Factory]
AllowedDoorLocations
Expand Down Expand Up @@ -58,22 +61,23 @@ Part : <./Data/ships/terran/base_part_terran.rules>/Part
{
Type = CommandConsumer
OperationalToggle = PowerToggle
CommandPoints = 1
CommandPoints = 25
}

IronStorage
{
Type = TypedResourceGrid
Type = ResourceStorage
ResourceType = iron
// MaxResources = 5
MaxResources = 50
UITileRect = [0, 2, 1, 1]
GridRect = [0, 2, 1, 1]
Layer = "doodads_low"
SpriteInset = [17/64, 9/64, 5/64, 5/64]
AllowExternalPickupAndDelivery = true
}
IronConsumer
{
Type = TypedResourceGridConsumer
Type = ResourceConsumer
ResourceType = iron
Storage = IronStorage
DefaultPriority = &/PRIORITIES/Factory_Supply
Expand All @@ -91,17 +95,18 @@ Part : <./Data/ships/terran/base_part_terran.rules>/Part

CopperStorage
{
Type = TypedResourceGrid
Type = ResourceStorage
ResourceType = copper
// MaxResources = 5
MaxResources = 50
UITileRect = [2, 2, 1, 1]
GridRect = [2, 2, 1, 1]
Layer = "doodads_low"
SpriteInset = [5/64, 9/64, 17/64, 5/64]
AllowExternalPickupAndDelivery = true
}
CopperConsumer
{
Type = TypedResourceGridConsumer
Type = ResourceConsumer
ResourceType = copper
Storage = CopperStorage
DefaultPriority = &/PRIORITIES/Factory_Supply
Expand All @@ -119,22 +124,23 @@ Part : <./Data/ships/terran/base_part_terran.rules>/Part

AntimatterStorage
{
Type = TypedResourceGrid
Type = ResourceStorage
ResourceType = antimatter
// MaxResources = 5
MaxResources = 50
UITileRect = [2, 3, 1, 1]
GridRect = [2, 3, 1, 1]
Layer = "doodads_low"
SpriteInset = [0/64, 0/64, 5/64, 5/64]
AllowExternalPickupAndDelivery = true
}
AntimatterConsumer
{
Type = TypedResourceGridConsumer
Type = ResourceConsumer
ResourceType = antimatter
Storage = AntimatterStorage
DefaultPriority = &/PRIORITIES/Factory_Supply
OperationalToggle = PowerToggle
ConsumptionToggleButtonOffset = [0, -.4]
ConsumptionToggleButtonOffset = [0, 1.4]
}
// AntimatterSplitter
// {
Expand All @@ -146,22 +152,23 @@ Part : <./Data/ships/terran/base_part_terran.rules>/Part
// }
ProcessorStorage
{
Type = TypedResourceGrid
Type = ResourceStorage
ResourceType = processor
// MaxResources = 5
MaxResources = 50
UITileRect = [0, 3, 1, 1]//[.5 + 7/64, .4 + 7/64, 1 - 14/64, 1 - 14/64] , [0.61, 0.51, 0.78, 0.78]
GridRect = [0, 3, 1, 1]
Layer = "doodads_low"
SpriteInset = [14/64, 0/64, 5/64, 5/64]
AllowExternalPickupAndDelivery = true
}
ProcessorConsumer
{
Type = TypedResourceGridConsumer
Type = ResourceConsumer
ResourceType = processor
Storage = ProcessorStorage
DefaultPriority = &/PRIORITIES/Factory_Supply
OperationalToggle = PowerToggle
ConsumptionToggleButtonOffset = [0, -.4]
ConsumptionToggleButtonOffset = [0, 1.4]
}

TransphasicTorpedoPartStorage
Expand Down Expand Up @@ -204,24 +211,24 @@ Part : <./Data/ships/terran/base_part_terran.rules>/Part
[
{
Storage = IronStorage
Quantity = 5
Quantity = 50
}
{
Storage = CopperStorage
Quantity = 5
Quantity = 50
}
{
Storage = AntimatterStorage
Quantity = 5
Quantity = 50
}
{
Storage = ProcessorStorage
Quantity = 1
Quantity = 50
}

{
Storage = BatteryStorage
Quantity = 50000
Quantity = 500000
MinQuantityForConversion = 1
}
]
Expand Down Expand Up @@ -693,7 +700,7 @@ Part : <./Data/ships/terran/base_part_terran.rules>/Part
BeltSpeedFactor
{
Type = BuffableValue
Value = { BaseValue=1; BuffType=Factory; BuffMode=Multiply; }
Value = { BaseValue=0.00789473684; BuffType=Factory; BuffMode=Multiply; }
}

Graphics
Expand Down Expand Up @@ -1217,27 +1224,29 @@ Part : <./Data/ships/terran/base_part_terran.rules>/Part

Stats
{
PartsPerMissile = 10
PartsPerMissile = 20
MissileProduction = (&~/Part/Components/ResourceConverter/ToQuantity) / (&~/Part/Components/ResourceConverter/Interval/BaseValue) / (&PartsPerMissile)
PartCapacity = (&~/Part/Components/TransphasicTorpedoPartStorage/GridRect/2) * (&~/Part/Components/TransphasicTorpedoPartStorage/GridRect/3) * (&<./Data/resources/missile_part_emp/missile_part_emp.rules>/MaxStackSize)
PartCapacity = (&~/Part/Components/TransphasicTorpedoPartStorage/GridRect/2) * (&~/Part/Components/TransphasicTorpedoPartStorage/GridRect/3) * (&<../../../resources/transphasic_torpedo_part/transphasic_torpedo_part.rules>/MaxStackSize)
MissilePartCapacity = [&../PartCapacity, (&../PartCapacity) / (&../PartsPerMissile)]
IronCapacity = 5
IronPerMissile = 5
IronPerSecond = 5 / (&~/Part/Components/ResourceConverter/Interval/BaseValue)
IronCapacity = 50
IronPerMissile = 50
IronPerSecond = 50 / (&~/Part/Components/ResourceConverter/Interval/BaseValue)
MissileIronUsage = [&../IronPerMissile, &../IronPerSecond]
AntimatterCapacity = 5
AntimatterPerMissile = 5
AntimatterPerSecond = 5 / (&~/Part/Components/ResourceConverter/Interval/BaseValue)
ProcessorCapacity = 5
ProcessorPerMissile = 1
ProcessorPerSecond = 1 / (&~/Part/Components/ResourceConverter/Interval/BaseValue)
CopperCapacity = 5
CopperPerMissile = 5
CopperPerSecond = 5 / (&~/Part/Components/ResourceConverter/Interval/BaseValue)
AntimatterCapacity = 50
AntimatterPerMissile = 50
AntimatterPerSecond = 50 / (&~/Part/Components/ResourceConverter/Interval/BaseValue)
ProcessorCapacity = 50
ProcessorsPerMissile = 50
ProcessorsPerSecond = 50 / (&~/Part/Components/ResourceConverter/Interval/BaseValue)
CopperCapacity = 50
CopperPerMissile = 50
CopperPerSecond = 50 / (&~/Part/Components/ResourceConverter/Interval/BaseValue)
MissileCopperUsage = [&../CopperPerMissile, &../CopperPerSecond]
MissileProcessorsUsage = [&../ProcessorsPerMissile, &../ProcessorsPerSecond]
MissileAntimatterUsage = [&../AntimatterPerMissile, &../AntimatterPerSecond]

PowerPerMissile = (&~/Part/Components/ResourceConverter/From/2/Quantity) / (&~/Part/Components/ResourceConverter/ToQuantity) * (&PartsPerMissile) / 1000
PowerPerSecond = (&~/Part/Components/ResourceConverter/From/2/Quantity) / (&~/Part/Components/ResourceConverter/Interval/BaseValue) / 1000
PowerPerMissile = 500000 / (&~/Part/Components/ResourceConverter/ToQuantity) * (&PartsPerMissile) / 1000
PowerPerSecond = 500000 / 60 / 1000
MissilePowerUsage = [&../PowerPerMissile, &../PowerPerSecond]
PowerCapacity = (&~/Part/Components/BatteryStorage/MaxResources) / 1000

Expand Down