Skip to content

Commit

Permalink
text clarification settings window
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehni committed Oct 11, 2018
1 parent 0c8de14 commit 70521c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Languages/English/Keyed/Keys.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@

<!--settings -->
<MFI_ticksToUpgrade>Time until pirates upgrade their outposts to bases</MFI_ticksToUpgrade>
<MFI_pirateBaseUpgraderModifier>Modifier to how often pirates spread</MFI_pirateBaseUpgraderModifier>
<MFI_ticksToUpgradeDesc>Larger values means that pirates take longer to change outposts into bases.</MFI_ticksToUpgradeDesc>
<MFI_pirateBaseUpgraderModifier>Pirate outpost spawn rate</MFI_pirateBaseUpgraderModifier>
<MFI_pirateBaseUpgraderModifierDesc>Higher values means an increased chance of pirates spreading. Low values = lazy pirates.</MFI_pirateBaseUpgraderModifierDesc>
<MFI_timeModifierBetweenFactionInteraction>Time modifier between faction interaction</MFI_timeModifierBetweenFactionInteraction>
<MFI_timeModifierBetweenFactionInteractionDesc>Higher values means more time between friendly faction interactions. Scales positively with Goodwill (more goodwil = more visits) and negatively with amount of friendly factions (lots of friends = fewer visits per friend, total roughly the same. For those that have dozens of faction mods installed).</MFI_timeModifierBetweenFactionInteractionDesc>
<MFI_traderWealthOffsetFromTimesTraded>Modifier to silver brought by traders (scales with interaction frequency)</MFI_traderWealthOffsetFromTimesTraded>

<MFI_LetterLabelBanditOutpostUpgraded>Bandit outpost upgraded</MFI_LetterLabelBanditOutpostUpgraded>
Expand Down
8 changes: 4 additions & 4 deletions MoreFactionInteraction/General/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace MoreFactionInteraction

public class MoreFactionInteraction_Settings : ModSettings
{
public static int ticksToUpgrade = 3 * GenDate.DaysPerQuadrum * GenDate.TicksPerDay;
public static int ticksToUpgrade = 3 * GenDate.DaysPerQuadrum * GenDate.TicksPerDay; //3 * 15 * 60000 = 2700000
public static float timeModifierBetweenFactionInteraction = 1f;
public static float traderWealthOffsetFromTimesTraded = 0.7f;
public static float pirateBaseUpgraderModifier = 0.8f;
Expand All @@ -19,11 +19,11 @@ public void DoWindowContents(Rect rect)
Listing_Standard options = new Listing_Standard();
options.Begin(rect: rect);
options.Gap();
options.SliderLabeled(label: "MFI_ticksToUpgrade".Translate(), val: ref ticksToUpgrade, format: ticksToUpgrade.ToStringTicksToPeriodVague(vagueMin: false), min: 0, max: GenDate.TicksPerYear);
options.SliderLabeled(label: "MFI_ticksToUpgrade".Translate(), val: ref ticksToUpgrade, format: ticksToUpgrade.ToStringTicksToPeriodVague(vagueMin: false), min: 0, max: GenDate.TicksPerYear, "MFI_ticksToUpgradeDesc".Translate());
options.Gap();
options.SliderLabeled(label: "MFI_pirateBaseUpgraderModifier".Translate(), val: ref pirateBaseUpgraderModifier, format: pirateBaseUpgraderModifier.ToStringByStyle(style: ToStringStyle.FloatOne), min: 0.1f, max: 2f);
options.SliderLabeled(label: "MFI_pirateBaseUpgraderModifier".Translate(), val: ref pirateBaseUpgraderModifier, format: pirateBaseUpgraderModifier.ToStringByStyle(style: ToStringStyle.FloatOne), min: 0.1f, max: 2f, "MFI_pirateBaseUpgraderModifierDesc".Translate());
options.GapLine();
options.SliderLabeled(label: "MFI_timeModifierBetweenFactionInteraction".Translate(), val: ref timeModifierBetweenFactionInteraction, format: timeModifierBetweenFactionInteraction.ToStringByStyle(style: ToStringStyle.FloatOne), min: 0.5f, max: 3f);
options.SliderLabeled(label: "MFI_timeModifierBetweenFactionInteraction".Translate(), val: ref timeModifierBetweenFactionInteraction, format: timeModifierBetweenFactionInteraction.ToStringByStyle(style: ToStringStyle.FloatOne), min: 0.5f, max: 3f, "MFI_timeModifierBetweenFactionInteractionDesc".Translate());
options.Gap();
options.SliderLabeled(label: "MFI_traderWealthOffsetFromTimesTraded".Translate(), val: ref traderWealthOffsetFromTimesTraded, format: traderWealthOffsetFromTimesTraded.ToStringByStyle(style: ToStringStyle.FloatOne), min: 0.5f, max: 3f);
options.End();
Expand Down

0 comments on commit 70521c0

Please sign in to comment.