RimWorld

RimWorld

Glowstone
Jareck Hunter 25 Nov, 2021 @ 3:50am
Darkness Version
Hi,
i quickly put together the code for the Darklight Version, you can use it if you want, just put it in an extra .xml file or add it to the existing code.

<?xml version="1.0" encoding="utf-8" ?> <Defs> <ThingDef Name="GlowstoneFloorStipBaseDark" ParentName="BuildingBase" Abstract="True"> <description>Glowstone-plated tiles used for lighting hallways or tight areas. Multiple strips can occupy the same area, allowing for more intricate designs.</description> <graphicData> <graphicClass>Graphic_Single</graphicClass> </graphicData> <altitudeLayer>Floor</altitudeLayer> <coversFloor>false</coversFloor> <passability>Standable</passability> <useHitPoints>true</useHitPoints> <statBases> <MaxHitPoints>75</MaxHitPoints> <WorkToBuild>100</WorkToBuild> <!-- Beauty was removed since strips can occupy the same cell and stack beauty unrealistically --> <Flammability>0</Flammability> </statBases> <clearBuildingArea>false</clearBuildingArea> <resourcesFractionWhenDeconstructed>1</resourcesFractionWhenDeconstructed> <constructEffect>ConstructMetal</constructEffect> <size>(1,1)</size> <rotatable>true</rotatable> <designationCategory>GLO_Glowstone</designationCategory> <selectable>true</selectable> <building> <isEdifice>false</isEdifice> <isInert>true</isInert> </building> <comps> <li Class="CompProperties_Glower"> <glowRadius>3</glowRadius> <glowColor>(78, 226, 229, 0)</glowColor><!-- This is a specific darklight color, make sure it matches DarklightUtility.IsDarklight --> </li> </comps> </ThingDef> <ThingDef ParentName="GlowstoneFloorStipBaseDark"> <defName>GLO_GlowstoneFloorSingleDark</defName> <label>dark glowstone strip</label> <graphicData> <texPath>Cupro/Object/Structure/GlowstoneFloor/Single</texPath> </graphicData> <placingDraggableDimensions>1</placingDraggableDimensions> <costList> <GLO_GlowstoneTile>8</GLO_GlowstoneTile> </costList> </ThingDef> <ThingDef ParentName="GlowstoneFloorStipBaseDark"> <defName>GLO_GlowstoneFloorDoubleDark</defName> <label>dark glowstone double strip</label> <graphicData> <texPath>Cupro/Object/Structure/GlowstoneFloor/Double</texPath> </graphicData> <placingDraggableDimensions>1</placingDraggableDimensions> <costList> <GLO_GlowstoneTile>16</GLO_GlowstoneTile> </costList> </ThingDef> <ThingDef ParentName="GlowstoneFloorStipBaseDark"> <defName>GLO_GlowstoneFloorDeadendDark</defName> <label>dark glowstone deadend strip</label> <graphicData> <texPath>Cupro/Object/Structure/GlowstoneFloor/Deadend</texPath> </graphicData> <costList> <GLO_GlowstoneTile>22</GLO_GlowstoneTile> </costList> </ThingDef> <ThingDef ParentName="GlowstoneFloorStipBaseDark"> <defName>GLO_GlowstoneFloorCornerInnerDark</defName> <label>dark glowstone inner corner</label> <graphicData> <texPath>Cupro/Object/Structure/GlowstoneFloor/InnerCorner</texPath> </graphicData> <costList> <GLO_GlowstoneTile>15</GLO_GlowstoneTile> </costList> </ThingDef> <ThingDef ParentName="GlowstoneFloorStipBaseDark"> <defName>GLO_GlowstoneFloorCornerOuterDark</defName> <label>dark glowstone outer corner</label> <graphicData> <texPath>Cupro/Object/Structure/GlowstoneFloor/OuterCorner</texPath> </graphicData> <costList> <GLO_GlowstoneTile>1</GLO_GlowstoneTile> </costList> </ThingDef> <ThingDef ParentName="GlowstoneFloorStipBaseDark"> <defName>GLO_GlowstoneFloorCornerDoubleDark</defName> <label>dark glowstone double corner</label> <graphicData> <texPath>Cupro/Object/Structure/GlowstoneFloor/DoubleCorner</texPath> </graphicData> <costList> <GLO_GlowstoneTile>2</GLO_GlowstoneTile> </costList> </ThingDef> <ThingDef ParentName="GLOLampBase" > <defName>GLO_GlowstonePylonDark</defName> <label>dark pylon</label> <description>A simple structure for lighting areas. For some reason, it never feels like enough have been built.</description> <graphicData> <texPath>Cupro/Object/Furniture/Pylon/Pylon</texPath> <shaderType>CutoutComplex</shaderType> </graphicData> <altitudeLayer>FloorEmplacement</altitudeLayer> <designationCategory>GLO_Glowstone</designationCategory> <pathCost>10</pathCost> <statBases> <Beauty>10</Beauty> <WorkToBuild>120</WorkToBuild> <Flammability>0.1</Flammability> <Mass>1.5</Mass> </statBases> <stuffCategories> <li>Woody</li> <li>Metallic</li> <li>Stony</li> </stuffCategories> <costStuffCount>10</costStuffCount> <costList> <GLO_LargeGlowstone>1</GLO_LargeGlowstone> </costList> <comps> <li Class="CompProperties_Glower"> <glowRadius>10</glowRadius> <glowColor>(78, 226, 229, 0)</glowColor><!-- This is a specific darklight color, make sure it matches DarklightUtility.IsDarklight --> </li> </comps> <researchPrerequisites /> </ThingDef> <ThingDef ParentName="GLOLampBase" > <defName>GLO_GlowstoneLampDark</defName> <label>glowstone darklamp</label> <description>A lamp supporting two small glowstones. Fits well in a bedroom or a workshop.</description> <graphicData> <texPath>Cupro/Object/Furniture/Lamp/GlowstoneLamp</texPath> <shaderType>CutoutComplex</shaderType> <drawSize>(1,3)</drawSize> </graphicData> <altitudeLayer>Building</altitudeLayer> <designationCategory>GLO_Glowstone</designationCategory> <pathCost>60</pathCost> <stuffCategories> <li>Woody</li> <li>Metallic</li> <li>Stony</li> </stuffCategories> <costStuffCount>25</costStuffCount> <costList> <GLO_SmallGlowstone>2</GLO_SmallGlowstone> </costList> <statBases> <Beauty>15</Beauty> <WorkToBuild>200</WorkToBuild> <Flammability>0.1</Flammability> <Mass>3.5</Mass> </statBases> <comps> <li Class="CompProperties_Glower"> <glowRadius>7</glowRadius> <glowColor>(78, 226, 229, 0)</glowColor><!-- This is a specific darklight color, make sure it matches DarklightUtility.IsDarklight --> </li> </comps> <researchPrerequisites /> </ThingDef> <ThingDef ParentName="GlowstoneChandelierBase"> <defName>GLO_SmallGlowstoneChandelierDark</defName> <label>small dark glowstone chandelier</label> <description>A simple chandelier housing two small glowstones. Can be hung from the ceiling over most objects.</description> <graphicData> <drawSize>(1,1)</drawSize> </graphicData> <size>(1,1)</size> <statBases> <WorkToBuild>350</WorkToBuild> <Mass>3</Mass> <Beauty>10</Beauty> </statBases> <costStuffCount>15</costStuffCount> <costList> <GLO_SmallGlowstone>2</GLO_SmallGlowstone> </costList> <comps> <li Class="CompProperties_Glower"> <glowRadius>8</glowRadius> <glowColor>(78, 226, 229, 0)</glowColor><!-- This is a specific darklight color, make sure it matches DarklightUtility.IsDarklight --> </li> <li Class="CompProperties_Art"> <nameMaker>NamerArtFurniture</nameMaker> <descriptionMaker>ArtDescription_Furniture</descriptionMaker> <minQualityForArtistic>Masterwork</minQualityForArtistic> </li> </comps> </ThingDef> <ThingDef ParentName="GlowstoneChandelierBase"> <defName>GLO_GlowstoneChandelierDark</defName> <label>medium dark glowstone chandelier</label> <description>A simple chandelier housing four small glowstones. Can be hung from the ceiling over most objects.</description> <graphicData> <drawSize>(2,2)</drawSize> </graphicData> <size>(2,2)</size> <statBases> <WorkToBuild>500</WorkToBuild> <Mass>12</Mass> <Beauty>20</Beauty> </statBases> <costStuffCount>45</costStuffCount> <costList> <GLO_SmallGlowstone>4</GLO_SmallGlowstone> </costList> <comps> <li Class="CompProperties_Glower"> <glowRadius>10</glowRadius> <glowColor>(78, 226, 229, 0)</glowColor><!-- This is a specific darklight color, make sure it matches DarklightUtility.IsDarklight --> </li> <li Class="CompProperties_Art"> <nameMaker>NamerArtFurniture</nameMaker> <descriptionMaker>ArtDescription_Furniture</descriptionMaker> <minQualityForArtistic>Excellent</minQualityForArtistic> </li> </comps> </ThingDef> <ThingDef ParentName="GlowstoneChandelierBase"> <defName>GLO_LargeGlowstoneChandelierDark</defName> <label>large dark glowstone chandelier</label> <description>A simple chandelier housing four large glowstones. Can be hung from the ceiling over most objects.</description> <graphicData> <drawSize>(3,3)</drawSize> </graphicData> <size>(3,3)</size> <statBases> <WorkToBuild>750</WorkToBuild> <Mass>27</Mass> <Beauty>30</Beauty> </statBases> <costStuffCount>100</costStuffCount> <costList> <GLO_LargeGlowstone>4</GLO_LargeGlowstone> </costList> <comps> <li Class="CompProperties_Glower"> <glowRadius>13</glowRadius> <glowColor>(78, 226, 229, 0)</glowColor><!-- This is a specific darklight color, make sure it matches DarklightUtility.IsDarklight --> </li> <li Class="CompProperties_Art"> <nameMaker>NamerArtFurniture</nameMaker> <descriptionMaker>ArtDescription_Furniture</descriptionMaker> <minQualityForArtistic>Superior</minQualityForArtistic> </li> </comps> </ThingDef> </Defs>