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
3 changes: 3 additions & 0 deletions 1.5/Defs/ThingDefs_Buildings/Buildings_Ship.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<paintable>true</paintable>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
<costList>
<Steel>14</Steel>
Expand Down Expand Up @@ -341,6 +342,7 @@
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<paintable>true</paintable>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
<comps>
<li Class="SaveOurShip2.CompProps_ShipCachePart">
Expand Down Expand Up @@ -472,6 +474,7 @@
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<paintable>true</paintable>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
</ThingDef>
<DesignatorDropdownGroupDef>
Expand Down
3 changes: 3 additions & 0 deletions 1.5/Defs/ThingDefs_Buildings/Buildings_ShipMech.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<blueprintGraphicData>
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
<costList>
<Steel>14</Steel>
Expand Down Expand Up @@ -282,6 +283,7 @@
<blueprintGraphicData>
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
<comps>
<li Class="SaveOurShip2.CompProps_ShipCachePart">
Expand Down Expand Up @@ -406,6 +408,7 @@
<blueprintGraphicData>
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
</ThingDef>
<ThingDef ParentName="BuildingBase">
Expand Down
3 changes: 3 additions & 0 deletions 1.5/Defs/ThingDefs_Buildings/Buildings_ShipTechArcho.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<paintable>true</paintable>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
<costList>
<Steel>13</Steel>
Expand Down Expand Up @@ -307,6 +308,7 @@
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<paintable>true</paintable>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
<comps>
<li Class="SaveOurShip2.CompProps_ShipCachePart">
Expand Down Expand Up @@ -435,6 +437,7 @@
<texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
</blueprintGraphicData>
<paintable>true</paintable>
<supportsWallAttachments>true</supportsWallAttachments>
</building>
</ThingDef>
<ThingDef ParentName="BuildingBase">
Expand Down
28 changes: 28 additions & 0 deletions Source/1.5/HarmonyPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5209,6 +5209,34 @@ public static void Postfix(GameEnder __instance)
}
}

[HarmonyPatch(typeof(Placeworker_AttachedToWall), "AllowsPlacing")]
public static class AllowWallAttachmentsOnVentsAndSolarPanels
{
public static void Postfix(ref AcceptanceReport __result, BuildableDef checkingDef, IntVec3 loc, Rot4 rot, Map map)
{
// Don't override out of bouds and in fully occupied tile cases
if (__result == false && __result.Reason == "")
{
return;
}
List<Thing> thingList = (loc + GenAdj.CardinalDirections[rot.AsInt]).GetThingList(map);
foreach (Thing t in thingList)
{
if (t is Building_ShipVent)
{
// "active" side of vent is opposite
__result = t.Rotation != rot.Opposite;
return;
}
if (t.def.defName == "ShipInside_SolarGenerator" || t.def.defName == "ShipInside_SolarGeneratorMech" || t.def.defName == "ShipInside_SolarGeneratorArchotech")
{
__result = t.Rotation != rot;
return;
}
}
}
}

/*[HarmonyPatch(typeof(ActiveDropPod),"PodOpen")]
public static class ActivePodFix{
public static bool Prefix (ref ActiveDropPod __instance)
Expand Down