-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from rheirman/Sarg
v1.1 Update
- Loading branch information
Showing
57 changed files
with
19,958 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<loadFolders> | ||
<v1.1> | ||
<li>/</li> | ||
<li>v1.1</li> | ||
</v1.1> | ||
</loadFolders> |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
using GiddyUpCore.Storage; | ||
using HugsLib; | ||
using HugsLib.Settings; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Verse; | ||
using static RimWorld.Planet.CaravanTicksPerMoveUtility; | ||
|
||
namespace GiddyUpCaravan | ||
{ | ||
public class Base : ModBase | ||
{ | ||
internal const string DropAnimal_NPC_LABEL = "GU_Car_Area_GU_DropAnimal_NPC"; | ||
|
||
internal static SettingHandle<int> completeCaravanBonus; | ||
internal static SettingHandle<int> incompleteCaravanBonusCap; | ||
|
||
internal static SettingHandle<int> visitorMountChance; | ||
internal static SettingHandle<int> visitorMountChanceTribal; | ||
|
||
internal static SettingHandle<int> inBiomeWeight; | ||
internal static SettingHandle<int> outBiomeWeight; | ||
internal static SettingHandle<int> nonWildWeight; | ||
|
||
internal List<Pawn> curCaravanPawns; | ||
|
||
private int minPercentage = 0; | ||
private int maxPercentage = 100; | ||
public static Base Instance { get; private set; } | ||
|
||
public Base() | ||
{ | ||
Instance = this; | ||
} | ||
public override string ModIdentifier | ||
{ | ||
get { return "GiddyUpCaravan"; } | ||
} | ||
|
||
public static ExtendedDataStorage GetExtendedDataStorage() | ||
{ | ||
return GiddyUpCore.Base.Instance.GetExtendedDataStorage(); | ||
} | ||
public override void DefsLoaded() | ||
{ | ||
completeCaravanBonus = Settings.GetHandle<int>("completeCaravanBonus", "GU_Car_CompleteCaravanBonus_Title".Translate(), "GU_Car_CompleteCaravanBonus_Description".Translate(), 60, Validators.IntRangeValidator(0, 200)); | ||
incompleteCaravanBonusCap = Settings.GetHandle<int>("incompleteCaravanBonusCap", "GU_Car_incompleteCaravanBonusCap_Title".Translate(), "GU_Car_incompleteCaravanBonusCap_Description".Translate(), 25, Validators.IntRangeValidator(0, 200)); | ||
|
||
visitorMountChance = Settings.GetHandle<int>("visitorMountChance", "GU_Car_visitorMountChance_Title".Translate(), "GU_Car_visitorMountChance_Description".Translate(), 20, Validators.IntRangeValidator(minPercentage, maxPercentage)); | ||
visitorMountChanceTribal = Settings.GetHandle<int>("visitorMountChanceTribal", "GU_Car_visitorMountChanceTribal_Title".Translate(), "GU_Car_visitorMountChanceTribal_Description".Translate(), 40, Validators.IntRangeValidator(minPercentage, maxPercentage)); | ||
|
||
inBiomeWeight = Settings.GetHandle<int>("inBiomeWeight", "GU_Car_InBiomeWeight_Title".Translate(), "GU_Car_InBiomeWeight_Description".Translate(), 70, Validators.IntRangeValidator(minPercentage, maxPercentage)); | ||
outBiomeWeight = Settings.GetHandle<int>("outBiomeWeight", "GU_Car_OutBiomeWeight_Title".Translate(), "GU_Car_OutBiomeWeight_Description".Translate(), 15, Validators.IntRangeValidator(minPercentage, maxPercentage)); | ||
nonWildWeight = Settings.GetHandle<int>("nonWildWeight", "GU_Car_NonWildWeight_Title".Translate(), "GU_Car_NonWildWeight_Description".Translate(), 15, Validators.IntRangeValidator(minPercentage, maxPercentage)); | ||
|
||
} | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.