Skip to content

Commit

Permalink
Construction skill should now take genes into account
Browse files Browse the repository at this point in the history
  • Loading branch information
emipa606 committed Apr 29, 2023
1 parent fdc1009 commit 5c0e315
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 34 deletions.
Binary file modified 1.4/Assemblies/RoadsOfTheRim.dll
Binary file not shown.
14 changes: 3 additions & 11 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
<loadAfter>
<li>brrainz.harmony</li>
</loadAfter>
<description>
[img]https://i.imgur.com/buuPQel.png[/img]
<description>[img]https://i.imgur.com/buuPQel.png[/img]
Update of Loconekos mod
https://steamcommunity.com/sharedfiles/filedetails/?id=1613783924

Expand All @@ -35,7 +34,7 @@ https://steamcommunity.com/sharedfiles/filedetails/?id=1613783924

[table]
[tr]
[td][url=https://invite.gg/Mlie][img]https://i.imgur.com/zdzzBrc.png[/img][/url][/td]
[td][url=https://dsc.gg/mlie][img]https://i.imgur.com/zdzzBrc.png[/img][/url][/td]
[td][url=https://github.com/emipa606/RoadsOfTheRim][img]https://i.imgur.com/kTkpTOE.png[/img][/url][/td]
[/tr]
[tr]
Expand Down Expand Up @@ -190,12 +189,6 @@ See the summary below to see what percentage of a specific terrain feature is ca
[/tr]
[/table]

[h1]Following the project and reporting bugs[/h1]

Feedback welcome on Steam and in the [url=https://ludeon.com/forums/index.php?topic=47205.0]Forum thread[/url]

You can check the code on [url=https://github.com/LocoNeko/RoadsOfTheRim]GitHub[/url], as well as the [url=https://github.com/LocoNeko/RoadsOfTheRim/issues]roadmap and current bugs and issues[/url]

[b]Quick fix for Construction sites stuck after an update : https://github.com/LocoNeko/RoadsOfTheRim/wiki/How-to-remove-construction-sites-stuck-after-mod-upgrade[/b]

[b]IMPORTANT NOTE BEFORE REPORTING A BUG[/b]
Expand All @@ -212,6 +205,5 @@ It will save a lot of your time (and a little bit of mine ;-) )
[*] Do not report errors by making a discussion-thread, I get no notification of that.
[*] If you have the solution for a problem, please post it to the GitHub repository.
[/list]

[url=https://steamcommunity.com/sharedfiles/filedetails/changelog/2280318231]Last updated 2022-11-30[/url]</description>
[url=https://steamcommunity.com/sharedfiles/filedetails/changelog/2280318231]Last updated 2023-04-29[/url]</description>
</ModMetaData>
3 changes: 3 additions & 0 deletions About/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog for RoadsOfTheRim

1.4.3 - Construction skill should now take genes into account


1.4.2 - Some minor fixes, thanks bc-lee.
Used DeepL to update translations for French, German

Expand Down
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>RoadsOfTheRim</identifier>
<version>1.4.2</version>
<version>1.4.3</version>
<dependencies />
<incompatibleWith />
<loadBefore />
Expand Down
2 changes: 1 addition & 1 deletion About/ModSync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ModSyncNinjaData>
<ID>1a0c92d0-3054-4626-a0d1-2ed267af412e</ID>
<ModName>Roads of the Rim (Continued)</ModName>
<Version>1.4.2</Version>
<Version>1.4.3</Version>
<SaveBreaking>False</SaveBreaking>
<Host name="Github">
<Owner>emipa606</Owner>
Expand Down
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# RoadsOfTheRim

![Image](https://i.imgur.com/buuPQel.png)

Update of Loconekos mod
Expand Down Expand Up @@ -170,13 +169,6 @@ See the summary below to see what percentage of a specific terrain feature is ca
[/tr]
[/table]

# Following the project and reporting bugs

Feedback welcome on Steam and in the https://ludeon.com/forums/index.php?topic=47205.0]Forum thread

You can check the code on https://github.com/LocoNeko/RoadsOfTheRim]GitHub, as well as the https://github.com/LocoNeko/RoadsOfTheRim/issues]roadmap and current bugs and issues

**Quick fix for Construction sites stuck after an update : https://github.com/LocoNeko/RoadsOfTheRim/wiki/How-to-remove-construction-sites-stuck-after-mod-upgrade**

**IMPORTANT NOTE BEFORE REPORTING A BUG**
Expand All @@ -196,5 +188,4 @@ It will save a lot of your time (and a little bit of mine ;-) )
- If you have the solution for a problem, please post it to the GitHub repository.



https://steamcommunity.com/sharedfiles/filedetails/changelog/2280318231]Last updated 2022-11-30
https://steamcommunity.com/sharedfiles/filedetails/changelog/2280318231]Last updated 2023-04-29
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ namespace RoadsOfTheRim;
public static class Patch_CaravanUIUtility_CreateCaravanTransferableWidgets
{
[HarmonyPostfix]
public static void Postfix(List<TransferableOneWay> transferables, ref TransferableOneWayWidget pawnsTransfer,
public static void Postfix(List<TransferableOneWay> transferables,
ref TransferableOneWayWidget itemsTransfer, string thingCountTip,
IgnorePawnsInventoryMode ignorePawnInventoryMass, Func<float> availableMassGetter,
bool ignoreSpawnedCorpsesGearAndInventoryMass, int tile, bool playerPawnsReadOnly)
bool ignoreSpawnedCorpsesGearAndInventoryMass, int tile)
{
var modifiedTransferables = transferables.Where(x => x.ThingDef.category != ThingCategory.Pawn).ToList();
modifiedTransferables = modifiedTransferables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ namespace RoadsOfTheRim;
public static class Patch_GenConstruct_CanPlaceBlueprintAt
{
[HarmonyPostfix]
public static void Postfix(ref AcceptanceReport __result, BuildableDef entDef, IntVec3 center, Rot4 rot,
Map map, bool godMode = false, Thing thingToIgnore = null, Thing thing = null, ThingDef stuffDef = null)
public static void Postfix(ref AcceptanceReport __result, BuildableDef entDef, IntVec3 center, Map map)
{
if (entDef != TerrainDefOf.ConcreteBridge || !map.terrainGrid.TerrainAt(center).affordances
.Contains(TerrainAffordanceDefOf.Bridgeable)) // ConcreteBridge on normal water (bridgeable)
Expand Down
3 changes: 1 addition & 2 deletions Source/RoadsOfTheRim/Patch_RoadDefGenStep_Place_Place.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public static bool IsGoodTerrain(TerrainDef terrain)
}

[HarmonyPostfix]
public static void Postfix(ref RoadDefGenStep_Place __instance, Map map, IntVec3 position, TerrainDef rockDef,
IntVec3 origin, GenStep_Roads.DistanceElement[,] distance)
public static void Postfix(ref RoadDefGenStep_Place __instance, Map map, IntVec3 position)
{
if (__instance.place == TerrainDefOf.ConcreteBridge && position.GetTerrain(map).IsWater)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Text;
using HarmonyLib;
using RimWorld;
using RimWorld.Planet;
Expand All @@ -11,8 +10,7 @@ namespace RoadsOfTheRim;
internal static class Patch_WorldPathGrid_CalculatedMovementDifficultyAt
{
[HarmonyPostfix]
public static void PostFix(ref float __result, int tile, bool perceivedStatic, int? ticksAbs,
StringBuilder explanation)
public static void PostFix(ref float __result, int tile)
{
if (__result <= 999f || !Find.WorldGrid.InBounds(tile))
{
Expand Down
2 changes: 1 addition & 1 deletion Source/RoadsOfTheRim/PawnBuildingUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static float ConstructionValue(Pawn p)

public static int ConstructionLevel(Pawn p)
{
return p.skills.GetSkill(SkillDefOf.Construction).levelInt;
return p.skills.GetSkill(SkillDefOf.Construction).Level;
}

public static string ShowConstructionValue(Pawn p)
Expand Down
2 changes: 1 addition & 1 deletion Source/RoadsOfTheRim/RoadsOfTheRim.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<DebugType>None</DebugType>
<LangVersion>latest</LangVersion>
<FileVersion>1.4.2</FileVersion>
<FileVersion>1.4.3</FileVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref">
Expand Down

0 comments on commit 5c0e315

Please sign in to comment.