Skip to content

Commit

Permalink
3.13.1: Minor fix
Browse files Browse the repository at this point in the history
- Fixed a NullReferenceException edge case
- Updated Traditional Chinese translation
  • Loading branch information
UnlimitedHugs committed May 26, 2024
2 parents 7c6cb77 + a0070a7 commit 1e82e54
Show file tree
Hide file tree
Showing 9 changed files with 118 additions and 57 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ Version.cpp
build.js
*.tmp
/packages/
/.idea/
/.idea/
.vs/
2 changes: 1 addition & 1 deletion Mods/AllowTool/About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</supportedVersions>
<url>https://ludeon.com/forums/index.php?topic=17218.0</url>
<packageId>UnlimitedHugs.AllowTool</packageId>
<description>Version: 3.13.0
<description>Version: 3.13.1

A set of tools to make your life on the Rim a bit easier.
Easily forbid and unforbid items, select similar things, have things hauled urgently and affect the entire map with powerful new tool extensions.
Expand Down
2 changes: 1 addition & 1 deletion Mods/AllowTool/About/ModSync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ModSyncNinjaData>
<ID>e0d34ab2-0085-4745-99b7-9066f2180320</ID>
<ModName>Allow Tool</ModName>
<Version>3.13.0</Version>
<Version>3.13.1</Version>
<SaveBreaking>False</SaveBreaking>
<Host name="Github">
<Owner>UnlimitedHugs</Owner>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>

<AllowDesignator.label>標記允許</AllowDesignator.label>
Expand All @@ -22,12 +22,21 @@

<HaulUrgentlyDesignator.label>緊急搬運</HaulUrgentlyDesignator.label>
<HaulUrgentlyDesignator.description>將物品標記為最優先搬運,在搬運完之前殖民者會將其他工作延後。
可在工作标签中設置
可在工作標籤中設置
&lt;b&gt;按住Shift&lt;/b&gt;以中斷殖民者當前的工作。</HaulUrgentlyDesignator.description>

<FinishOffDesignator.label>殺死單位</FinishOffDesignator.label>
<FinishOffDesignator.description>快速而無痛地殺死倒地的單位。
&lt;b&gt;按住Shift&lt;/b&gt;以包括殖民者和盟友。</FinishOffDesignator.description>

<HarvestFullyGrownDesignator.label>採收成熟</HarvestFullyGrownDesignator.label>
<HarvestFullyGrownDesignator.description>採收或砍伐足夠成熟的作物和樹木,以便在收集時產生最大數量的資源。
&lt;b&gt;按住Shift&lt;/b&gt;只採收植物。
&lt;b&gt;按住Ctrl/Option&lt;/b&gt;只砍伐樹木。</HarvestFullyGrownDesignator.description>

</LanguageData>
<StripMineDesignator.label>探礦</StripMineDesignator.label>
<StripMineDesignator.description>使用魚骨法開採,最大限度地提高找到隱藏礦物的機率。
&lt;b&gt;按住Shift&lt;/b&gt;顯示設置窗口或指定使用當前設置。</StripMineDesignator.description>


</LanguageData>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<LanguageData>

<DesignatorAllow.label>命令:標記允許</DesignatorAllow.label>
Expand All @@ -7,7 +7,9 @@
<DesignatorSelectSimilar.label>命令:選擇相似</DesignatorSelectSimilar.label>
<DesignatorHaulUrgently.label>命令:緊急搬運</DesignatorHaulUrgently.label>
<DesignatorFinishOff.label>命令:殺死單位</DesignatorFinishOff.label>
<DesignatorHarvestFullyGrown.label>命令:採收成熟</DesignatorHarvestFullyGrown.label>
<DesignatorStripMine.label>命令: 探礦</DesignatorStripMine.label>
<ToolContextMenuAction.label>當前工具:右鍵菜單動作。</ToolContextMenuAction.label>


</LanguageData>
</LanguageData>
143 changes: 96 additions & 47 deletions Mods/AllowTool/Languages/ChineseTraditional/Keyed/AllowToolEnglish.xml

Large diffs are not rendered by default.

Binary file modified Mods/AllowTool/v1.5/Assemblies/AllowTool.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.6.0")]
[assembly: AssemblyFileVersion("3.13.0")]
[assembly: AssemblyFileVersion("3.13.1")]
2 changes: 1 addition & 1 deletion Source/Designators/Designator_HaulUrgently.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override void DesignateThing(Thing thing) {
}

private bool ThingIsRelevant(Thing thing) {
if (thing.def == null || thing.Position.Fogged(thing.Map)) return false;
if (thing.def == null || thing.Map == null || thing.Position.Fogged(thing.Map)) return false;
return (thing.def.alwaysHaulable || thing.def.EverHaulable) && !thing.IsInValidBestStorage();
}
}
Expand Down

0 comments on commit 1e82e54

Please sign in to comment.