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
Binary file added 1.5/Assemblies/PerspectivePaths.dll
Binary file not shown.
3 changes: 2 additions & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<packageId>Owlchemist.PerspectivePaths</packageId>
<supportedVersions>
<li>1.4</li>
<li>1.5</li>
</supportedVersions>
<modVersion>1.0</modVersion>
<description>A tile of terrain will either have soft or hard edges depending on its definition. This mod allows the user to override this behavior on a per-tile basis.</description>
Expand All @@ -15,4 +16,4 @@
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl>
</li>
</modDependencies>
</ModMetaData>
</ModMetaData>
6 changes: 3 additions & 3 deletions Source/Designators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Designator_InvertEdgesClear() : base(DesignateMode.Remove)
public override void DesignateSingleCell(IntVec3 c)
{
selectedArea[c] = false;
Find.CurrentMap.mapDrawer.SectionAt(c).dirtyFlags = MapMeshFlag.Terrain;
Find.CurrentMap.mapDrawer.SectionAt(c).dirtyFlags = MapMeshFlagDefOf.Terrain;
}
public override AcceptanceReport CanDesignateCell(IntVec3 c)
{
Expand All @@ -80,11 +80,11 @@ public Designator_InvertEdgesExpand() : base(DesignateMode.Add)
public override void DesignateSingleCell(IntVec3 c)
{
selectedArea[c] = true;
Find.CurrentMap.mapDrawer.SectionAt(c).dirtyFlags = MapMeshFlag.Terrain;
Find.CurrentMap.mapDrawer.SectionAt(c).dirtyFlags = MapMeshFlagDefOf.Terrain;
}
public override AcceptanceReport CanDesignateCell(IntVec3 c)
{
return c.InBounds(Map) && selectedArea != null && !selectedArea[c] && !c.Impassable(Map);
}
}
}
}
4 changes: 2 additions & 2 deletions Source/PerspectivePaths.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Product>Perspective Paths</Product>
<AssemblyVersion>1.0</AssemblyVersion>
<Version>1.4</Version>
<Version>1.5</Version>
<Copyright>$([System.DateTime]::Now.ToString('yyyy'))</Copyright>
<Company>Owlchemist</Company>
<TargetFramework>net48</TargetFramework>
Expand Down Expand Up @@ -40,4 +40,4 @@
<ItemGroup>
<Publicize Include="Assembly-CSharp" />
</ItemGroup>
</Project>
</Project>