Skip to content

Commit

Permalink
A16 Release
Browse files Browse the repository at this point in the history
Updated for A16. HugsLib is no longer included and must be installed
separately.

- Added Chinese translation.

- Hauling resources priority has been changed, so that haulers do a few
more "classic" hauling stuff before hauling to construction jobs.
  • Loading branch information
DingoDjango committed Dec 21, 2016
1 parent fd9fb8f commit ce10628
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
11 changes: 8 additions & 3 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
<name>Hand Me That Brick</name>
<author>Dingo</author>
<url>https://ludeon.com/forums/index.php?topic=26077</url>
<targetVersion>0.15.0</targetVersion>
<description>This tiny mod helps your builders construct faster. Pawns designated for hauling will now deliver resources to unfinished construction jobs.
<targetVersion>0.16.0</targetVersion>
<description>&lt;size=24&gt;Important:&lt;/size&gt;
This mod requires &lt;b&gt;HugsLib&lt;/b&gt;, it must be installed and loaded above this mod in the load order.

Haulers will not actively construct if they are not assigned to construction, of course.</description>


Colonists assigned to Hauling will deliver resources to blueprints and construction frames.

Haulers won't actively construct if they are not assigned to construction.</description>
</ModMetaData>
Binary file removed Assemblies/$HugsLib.dll
Binary file not shown.
Binary file modified Assemblies/HandMeThatBrick.dll
Binary file not shown.
12 changes: 3 additions & 9 deletions Defs/UpdateFeatureDefs/UpdateFeatures.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,9 @@
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="HMTBUpdateFeatures">
<defName>HMTB_1_0_0</defName>
<assemblyVersion>1.0.0</assemblyVersion>
<content>Users can toggle hauler behaviour (see Options &gt; Mod Settings).\n\nSetting it off (X) will disable Hand Me That Brick behaviour.\n\nSetting it on (V) will re-enable material delivery serivces for construction jobs.</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="HMTBUpdateFeatures">
<defName>HMTB_1_1_0</defName>
<assemblyVersion>1.1.0</assemblyVersion>
<content>\nHand Me That Brick update (November 27th, 2016):\n\nHaulers will no longer assist in constructing buildings that require 0 materials (e.g. graves).</content>
<defName>HMTB_1_2_16</defName>
<assemblyVersion>1.2.16</assemblyVersion>
<content>You can stop haulers from assisting in construction by going into &lt;b&gt;Mod Settings&lt;/b&gt; (accessed through RimWorld's Options menu).</content>
</HugsLib.UpdateFeatureDef>

</Defs>
4 changes: 2 additions & 2 deletions Defs/WorkGiverDefs/WorkGivers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<label>deliver resources to frames (hauler)</label>
<giverClass>HandMeThatBrick.WorkGiver_HaulDeliverResourcesToFrames</giverClass>
<workType>Hauling</workType>
<priorityInType>70</priorityInType>
<priorityInType>46</priorityInType>
<verb>deliver resources to</verb>
<gerund>delivering resources to</gerund>
<requiredCapacities>
Expand All @@ -22,7 +22,7 @@
<label>deliver resources to blueprints (hauler)</label>
<giverClass>HandMeThatBrick.WorkGiver_HaulDeliverResourcesToBlueprints</giverClass>
<workType>Hauling</workType>
<priorityInType>60</priorityInType>
<priorityInType>45</priorityInType>
<verb>deliver resources to</verb>
<gerund>delivering resources to</gerund>
<requiredCapacities>
Expand Down
4 changes: 2 additions & 2 deletions Languages/ChineseSimplified/Keyed/ChineseSimplified.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<LanguageData>

<setting_haulersConstructionToggle_label>使用搬运工来建造</setting_haulersConstructionToggle_label>
<setting_haulersConstructionToggle_desc>所有指定搬运工作的居民同样也会把材料运送到工地。</setting_haulersConstructionToggle_desc>
<HMTB_setting_haulersConstructionToggle_label>使用搬运工来建造</HMTB_setting_haulersConstructionToggle_label>
<HMTB_setting_haulersConstructionToggle_desc>所有指定搬运工作的居民同样也会把材料运送到工地。</HMTB_setting_haulersConstructionToggle_desc>

</LanguageData>
4 changes: 2 additions & 2 deletions Languages/English/Keyed/English.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<LanguageData>

<setting_haulersConstructionToggle_label>Use haulers for construction</setting_haulersConstructionToggle_label>
<setting_haulersConstructionToggle_desc>Any colonist set to hauling will also deliver materials to construction jobs.</setting_haulersConstructionToggle_desc>
<HMTB_setting_haulersConstructionToggle_label>Use haulers for construction</HMTB_setting_haulersConstructionToggle_label>
<HMTB_setting_haulersConstructionToggle_desc>Any colonist set to hauling will also deliver materials to construction jobs.</HMTB_setting_haulersConstructionToggle_desc>

</LanguageData>
8 changes: 4 additions & 4 deletions Source/HMTB_Menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ public override string ModIdentifier

public override void DefsLoaded()
{
UpdateDefs();
HMTBDefs();
}

public override void SettingsChanged()
{
UpdateDefs();
HMTBDefs();
}

private void UpdateDefs()
private void HMTBDefs()
{
var haulersConstructionToggle = Settings.GetHandle<bool>("HaulersHelpConstruct", "setting_haulersConstructionToggle_label".Translate(), "setting_haulersConstructionToggle_desc".Translate(), true);
var haulersConstructionToggle = Settings.GetHandle<bool>("HaulersHelpConstruct", "HMTB_setting_haulersConstructionToggle_label".Translate(), "HMTB_setting_haulersConstructionToggle_desc".Translate(), true);
HMTB_DefOf.HaulDeliverResourcesToFrames.scanThings = haulersConstructionToggle.Value;
HMTB_DefOf.HaulDeliverResourcesToBlueprints.scanThings = haulersConstructionToggle.Value;
}
Expand Down
7 changes: 4 additions & 3 deletions Source/HandMeThatBrick.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
</PropertyGroup>
<ItemGroup>
<Reference Include="%24HugsLib">
<HintPath>..\..\$HugsLib.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="HugsLib">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\HugsLib\Assemblies\HugsLib.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand Down
4 changes: 2 additions & 2 deletions Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.2.16.0")]
[assembly: AssemblyFileVersion("1.2.16.0")]

0 comments on commit ce10628

Please sign in to comment.