Add Fusion Core item and integrate with power armor

Introduced a new Fusion Core item with associated textures and XML definition. Updated power armor to use Fusion Cores as fuel instead of chemfuel, and added Fusion Cores to trader stock. This enhances gameplay by providing a unique, valuable resource for powering advanced equipment.
This commit is contained in:
Ranger Rick
2025-12-26 13:55:35 -06:00
parent bf0a8a0609
commit 3c1cf88372
5 changed files with 50 additions and 2 deletions
@@ -135,13 +135,13 @@
</li> </li>
<li Class="CompProperties_Refuelable"> <li Class="CompProperties_Refuelable">
<fuelCapacity>100</fuelCapacity> <fuelCapacity>100</fuelCapacity>
<fuelConsumptionRate>20</fuelConsumptionRate> <fuelConsumptionRate>0.595</fuelConsumptionRate>
<fuelLabel>Fusion Core</fuelLabel> <fuelLabel>Fusion Core</fuelLabel>
<fuelGizmoLabel>Fusion Core</fuelGizmoLabel> <fuelGizmoLabel>Fusion Core</fuelGizmoLabel>
<outOfFuelMessage>Needs Fusion Core</outOfFuelMessage> <outOfFuelMessage>Needs Fusion Core</outOfFuelMessage>
<fuelFilter> <fuelFilter>
<thingDefs> <thingDefs>
<li>Chemfuel</li> <li>FCP_Item_Fusion_Core</li>
</thingDefs> </thingDefs>
</fuelFilter> </fuelFilter>
<consumeFuelOnlyWhenUsed>true</consumeFuelOnlyWhenUsed> <consumeFuelOnlyWhenUsed>true</consumeFuelOnlyWhenUsed>
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!--__________ Fusion Core __________-->
<!-- Fusion Core -->
<ThingDef ParentName="ResourceBase">
<defName>FCP_Item_Fusion_Core</defName>
<label>fusion core</label>
<description>A compact nuclear battery used to power pre-war technology, most notably power armor. These cylindrical power cells contain a highly efficient fusion reaction that can provide energy for extended periods. Extremely valuable and sought after by those who maintain pre-war equipment. Cannot be recharged with current technology.</description>
<graphicData>
<texPath>Things/Items/FusionCores</texPath>
<graphicClass>Graphic_StackCount</graphicClass>
<drawSize>0.65</drawSize>
</graphicData>
<size>(1,1)</size>
<resourceReadoutPriority>Middle</resourceReadoutPriority>
<soundInteract>Metal_Drop</soundInteract>
<soundDrop>Metal_Drop</soundDrop>
<stackLimit>10</stackLimit>
<useHitPoints>true</useHitPoints>
<statBases>
<MarketValue>450</MarketValue>
<MaxHitPoints>80</MaxHitPoints>
<Mass>2.5</Mass>
<Flammability>0.0</Flammability>
<DeteriorationRate>0</DeteriorationRate>
</statBases>
<thingCategories>
<li>ItemsMisc</li>
</thingCategories>
<drawGUIOverlay>true</drawGUIOverlay>
<tradeability>Sellable</tradeability>
<techLevel>Spacer</techLevel>
<tradeTags>
<li>ExoticMisc</li>
</tradeTags>
</ThingDef>
</Defs>
@@ -66,6 +66,13 @@
<countRange>0~1</countRange> <countRange>0~1</countRange>
</li> </li>
<!--__ Fusion Cores __-->
<li Class="StockGenerator_SingleDef">
<thingDef>FCP_Item_Fusion_Core</thingDef>
<countRange>2~6</countRange>
</li>
<!--__ Currency __--> <!--__ Currency __-->
<!-- Caps --> <!-- Caps -->
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB