Skip to content

Commit

Permalink
Remove check for workbench bill limit when pasting bills.
Browse files Browse the repository at this point in the history
Limit is artificial anyway.
  • Loading branch information
Falconne committed Mar 28, 2019
1 parent f555f3b commit 76fd153
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 60 deletions.
60 changes: 3 additions & 57 deletions mod-structure/Defs/UpdateFeatureDefs/UpdateFeatureDefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,62 +7,8 @@
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_17_1_0</defName>
<assemblyVersion>17.1.0</assemblyVersion>
<content>* Bills can now be restricted to specific colonists, like in Enhanced Crafting.|* Added buttons to fine tune bill resume level, like in Enhanced Crafting.|* Added option to only count items that use materials defined in the input ingredients filter.|* Placed minifiables, such as installed statues, no longer count as available items.</content>
<defName>ImprovedWorkbenches_1_0_6</defName>
<assemblyVersion>1.0.6</assemblyVersion>
<content>Feature submotted by @AlexTD: Bills using "Do until X" now have a button to add arbitrary extra products to be counted. For example, you can create a bill to produce X Simple Meals and set that bill to also count Fine and Lavish Meals in the final count.</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_17_3_0</defName>
<assemblyVersion>17.3.0</assemblyVersion>
<content>* Bills can now be copied and pasted within and between compatible workbenches. This can be done one at a time or you can copy all the bills in a workbench and paste them all at once. New buttons will appear in the Bills tab UI for this.|* When pasting bills you can "Paste Link", which links the bills back to their originals. Any changes made to a linked bill will be mirrored to all bills in the chain. Links can be broken manually later.|* When a workbench is selected, its Bills tab will automatically open. This can be disabled in the Mod Settings menu.|* Bills can now be renamed.</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_17_4_0</defName>
<assemblyVersion>17.4.0</assemblyVersion>
<content>Name changed from "Improved Workbench Filters" to "Better Workbench Management".</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_17_5_0</defName>
<assemblyVersion>17.5.0</assemblyVersion>
<content>* Added ability to copy and paste ingredient filter configurations between compatible bills. Buttons will appear below filter where available.|* Ingredients filter in bill details windows now shows current stock level of that ingredient. This can be disabled in the mod settings.|* Bills that are set to resume production when stock falls to a certain level now show that level in brackets on the workbench overview. The "Do until you have X" button label has been shortened to "Do until X" to fit.|* Navigation arrows added at the top right of bill details window to navigate between bills in that workbench.</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_17_7_0</defName>
<assemblyVersion>17.7.0</assemblyVersion>
<content>* Added a "Drop on Floor" / "Take to Stockpile" toggle to each bill entry on the workbench overview panel, like Enhanced Crafting has.|* The button that lets you choose the bill store mode ("Take to Best Stockpile" and "Drop on Floor") now also lists all the individual stockpiles on the map. Choosing one makes the worker store the finished item in that specific stockpile (assuming that stockpile is set to allow that item).|* When bill target mode is set to "Do Until X", you can now specify that only products in a specific stockpile are counted.|* For clothing bills set to "Do Until X", you can now specify that clothing worn by colonists should also be counted.|* Added buttons near the "Target Count" and "Pause Until" sliders that let you enter values in via the keyboard.|* Mod's UI controls have been moved around in the dialog to fit them all without taking too much space in the recipe info column. The worker restriction button is now in the second column.</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_18_2_0</defName>
<assemblyVersion>18.2.0</assemblyVersion>
<content>You can now drag to reorder bills in workbench overview, instead of having to use the up/down buttons. You can drag from anywhere in a bill's background or use the drag box that has replaced the buttons.</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_18_6_0</defName>
<assemblyVersion>18.6.0</assemblyVersion>
<content>* When a single bill is copied, a "Paste Into" button now appears on every other bill, in the bill details and workbench overview screen. This button will paste all compatible settings from the source bill into the target bill, except for the output product itself. For e.g., you can create a number of tailoring jobs for different items of clothing, adjust the production counts and material filters for one and paste these into all the others. Any job's settings can be pasted into another, but not all settings are compatible between all recipes; incompatible settings will not be copied.|* When a linked bill is suspended or unsuspended, now all linked bills will take on the same status (can be configured in Settings).</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_18_7_0</defName>
<assemblyVersion>18.7.0</assemblyVersion>
<content>* When a stockpile is selected, its storage tab will now automatically be opened, the same way as a workbenche's bills tab is.</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_18_8_0</defName>
<assemblyVersion>18.8.0</assemblyVersion>
<content>Feature added by @alextd: "Do Until X" bills can now also count any equipped weapons and shield belts, extending the existing "Count equipped clothing" functionality.</content>
</HugsLib.UpdateFeatureDef>

<HugsLib.UpdateFeatureDef ParentName="UpdateFeatureBase">
<defName>ImprovedWorkbenches_18_10_0</defName>
<assemblyVersion>18.10.0</assemblyVersion>
<content>* Added Mod Option to set "Drop on floor" as default for new bills instead of "Take to best stockpile".|Fixes and new features added by @alextd on Github:|* Fixed bug where "count in" and "take to" stockpile settings got cleared when game is saved on another map.|* It is now possible to count any item worn, equipped or carried by any colonist or colony animal.|* Added option to also count items on colonists and animals originating at the bill's map, but are away on caravans, raids, etc.|* Added option to count installed statues, if desired.</content>
</HugsLib.UpdateFeatureDef>
</Defs>
2 changes: 1 addition & 1 deletion src/ImprovedWorkbenches/CopyPasteLink/BillCopyPaste.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public bool CanPasteInto(Building_WorkTable workTable)
if (_copiedBills.Count == 0)
return false;

if (workTable.BillStack == null || workTable.BillStack.Count >= 15)
if (workTable.BillStack == null)
return false;

_copiedBills.RemoveAll(bill => bill == null || bill.DeletedOrDereferenced);
Expand Down
4 changes: 2 additions & 2 deletions src/ImprovedWorkbenches/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
// 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.0.6.0")]
[assembly: AssemblyFileVersion("1.0.6.0")]
[assembly: AssemblyVersion("1.0.7.0")]
[assembly: AssemblyFileVersion("1.0.7.0")]



0 comments on commit 76fd153

Please sign in to comment.