Skip to content

Commit

Permalink
Release 4.30.644 [nolog]
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffierThanThou committed Jun 1, 2020
1 parent e65523a commit a8dfad5
Show file tree
Hide file tree
Showing 15 changed files with 240 additions and 275 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ maarxx: Various fixes and improvements
rimpy-custom: Fix for Russian translation

<size=24>Version</size>
This is version 4.30.615, for RimWorld 1.1.2624.
This is version 4.30.644, for RimWorld 1.1.2652.

</description>
<supportedVersions>
Expand Down
Binary file modified Assemblies/Fluffy_ColonyManager.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions Languages/English/Keyed/Manager_Keyed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,9 @@
<Fluffy.ColonyManager.HistoryConsumption>consumption</Fluffy.ColonyManager.HistoryConsumption>
<Fluffy.ColonyManager.HistoryBatteries>batteries</Fluffy.ColonyManager.HistoryBatteries>

<!-- manager tab target list extra info labels -->
<Fluffy.ColonyManager.Yield>Expected yield:</Fluffy.ColonyManager.Yield>
<Fluffy.ColonyManager.Aggressiveness>Aggressiveness: {0}</Fluffy.ColonyManager.Aggressiveness>
<Fluffy.ColonyManager.Gender.Male>male</Fluffy.ColonyManager.Gender.Male>
<Fluffy.ColonyManager.Gender.Female>female</Fluffy.ColonyManager.Gender.Female>
</LanguageData>
52 changes: 41 additions & 11 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

Colony Manager allows you to make colonists do the more tedious parts of managing a colony, making sure you're never out of vital resources again*.

# Important



![Important](https://banners.karel-kroeze.nl/title/Important.png)
**Requires a new save game.**
Adds a worktype, which is stored in the world, which means you need to start a new game after adding/removing this mod.

**BETA VERSION**
This is the first release on B18, and there were a lot of changes. The Production and Import & Export tabs are still disabled due to a lack of time.

# Features



![Features](https://banners.karel-kroeze.nl/title/Features.png)
**Hunting jobs**
- Set a target for meat, and never worry about designating hunting manually again!
- Set an area to clear of all predators - keep your home area safe!
Expand All @@ -33,15 +39,24 @@ This is the first release on B18, and there were a lot of changes. The Productio
**Import & Export**
== coming back soon(tm) ==

# How does it work?



![How does it work?](https://banners.karel-kroeze.nl/title/How%20does%20it%20work%3F.png)
You can manually set jobs in the new Manager tab on the bottom of the screen. Once set, a colonist with the manager skill and worktype enabled will go to a manager station to figure out the best way to assign designations.
Periodically, the manager will check if the assigned designations are still up-to-date, and make changes or delete designations where required. The manager will not touch designations that are set manually, nor will managers create jobs. You're still the overlord.
In theory there is no real limit to the number of manager jobs that can be created.

# Notes



![Notes](https://banners.karel-kroeze.nl/title/Notes.png)
- Requires a new save. Adds a worktype, which in my tests gave errors on old savegames. If you also have my Work Tab mod, you should be able to add this mod in an ongoing save.

# Contributors



![Contributors](https://banners.karel-kroeze.nl/title/Contributors.png)
- KapTaiN KaVerN: Minifiable research benches
- Moumix3: Research tweaks
- duduluu: Chinese translation
Expand All @@ -58,25 +73,40 @@ In theory there is no real limit to the number of manager jobs that can be creat
- maarxx: Various fixes and improvements
- rimpy-custom: Fix for Russian translation

# Think you found a bug?



![Think you found a bug?](https://banners.karel-kroeze.nl/title/Think%20you%20found%20a%20bug%3F.png)
Please read [this guide](http://steamcommunity.com/sharedfiles/filedetails/?id=725234314) before creating a bug report,
and then create a bug report [here](https://github.com/fluffy-mods/ColonyManager/issues)

# Older versions



![Older versions](https://banners.karel-kroeze.nl/title/Older%20versions.png)
All current and past versions of this mod can be downloaded from [GitHub](https://github.com/fluffy-mods/ColonyManager/releases).

# License



![License](https://banners.karel-kroeze.nl/title/License.png)
All original code in this mod is licensed under the [MIT license](https://opensource.org/licenses/MIT). Do what you want, but give me credit.
All original content (e.g. text, imagery, sounds) in this mod is licensed under the [CC-BY-SA 4.0 license](http://creativecommons.org/licenses/by-sa/4.0/).

Parts of the code in this mod, and some content may be licensed by their original authors. If this is the case, the original author & license will either be given in the source code, or be in a LICENSE file next to the content. Please do not decompile my mods, but use the original source code available on [GitHub](https://github.com/fluffy-mods/ColonyManager/), so license information in the source code is preserved.

# Are you enjoying my mods?



![Are you enjoying my mods?](https://banners.karel-kroeze.nl/title/Are%20you%20enjoying%20my%20mods%3F.png)
Show your appreciation by buying me a coffee (or contribute towards a nice single malt).

[![Buy Me a Coffee](http://i.imgur.com/EjWiUwx.gif)](https://ko-fi.com/fluffymods)

[![I Have a Black Dog](https://i.ibb.co/ss59Rwy/New-Project-2.png)](https://www.youtube.com/watch?v=XiCrniLQGYc)

# Version
This is version 4.30.615, for RimWorld 1.1.2624.



![Version](https://banners.karel-kroeze.nl/title/Version.png)
This is version 4.30.644, for RimWorld 1.1.2652.
5 changes: 5 additions & 0 deletions Source/Helpers/Hunting/Utilities_Hunting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public static class Utilities_Hunting
public static ThingDef InsectMeat = ThingDef.Named( "Megaspider" ).race.meatDef;
public static ThingCategoryDef MeatRaw = DefDatabase<ThingCategoryDef>.GetNamed( "MeatRaw" );

public static int EstimatedMeatCount( this PawnKindDef kind )
{
return (int)kind.race.GetStatValueAbstract( StatDefOf.MeatAmount );
}

public static int EstimatedMeatCount( this Pawn p )
{
return (int) p.GetStatValue( StatDefOf.MeatAmount );
Expand Down
53 changes: 47 additions & 6 deletions Source/Helpers/I18n.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,65 @@
// I18n.cs
// Copyright Karel Kroeze, 2020-2020

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Verse;

namespace FluffyManager
{
public class I18n
{
public static string Translate( string key, params object[] args )
{
return Key( key ).Translate( args ).ResolveTags();
}

public static string Key( string key ) => $"Fluffy.ColonyManager.{key}";
public static string HistoryStock = Translate( "HistoryStock" );
public static string HistoryDesignated = Translate( "HistoryDesignated" );
public static string HistoryCorpses = Translate( "HistoryCorpses" );
public static string HistoryChunks = Translate( "HistoryChunks" );
public static string HistoryProduction = Translate( "HistoryProduction" );
public static string HistoryConsumption = Translate( "HistoryConsumption" );
public static string HistoryBatteries = Translate( "HistoryBatteries" );


public static string Aggressiveness( float aggression )
{
return Translate( "Aggressiveness",
aggression >= .1f
? aggression.ToStringPercent().Colorize( Color.red )
: aggression.ToStringPercent() );
}

public static string Key( string key )
{
return $"Fluffy.ColonyManager.{key}";
}

public static string Translate( string key, params object[] args )
{
return Key( key ).Translate( args ).ResolveTags();
}

public static string YieldOne( string label )
{
return $"{Translate( "Yield" )} {label}";
}

public static string YieldMany( IEnumerable<string> labels )
{
return $"{Translate( "Yield" )}\n - {labels.ToLineList( " - " )}";
}

public static string YieldOne( float yield, ThingDef def )
{
return YieldOne( $"{def.LabelCap} x{yield:F0} " );
}

public static string Gender( Gender gender )
{
return Translate( $"Gender.{gender}" );
}

public static string ChanceToDrop( float chance )
{
return Translate( "ChanceToDrop", chance.ToStringPercent() );
}
}
}
Loading

0 comments on commit a8dfad5

Please sign in to comment.