Skip to content

Commit

Permalink
v1.5.0
Browse files Browse the repository at this point in the history
* Added ranges to config fields
  • Loading branch information
hamstar0 committed Jul 26, 2019
1 parent bd91f2b commit 3995162
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CapitalismMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@
namespace Capitalism {
partial class CapitalismMod : Mod {
public static CapitalismMod Instance { get; private set; }



////////////////

public CapitalismConfig Config { get; private set; }
public CapitalismConfig Config => this.GetConfig<CapitalismConfig>();



////////////////

public CapitalismMod() {
this.Config = new CapitalismConfig();
}
public CapitalismMod() { }

////////////////

Expand Down
8 changes: 8 additions & 0 deletions Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,44 @@ public class CapitalismConfig : ModConfig {


[Tooltip( "A factor for computing markup." )]
[Range( Single.MinValue, Single.MaxValue )]
[DefaultValue( 0.8f )]
public float MarkupExponent = 0.8f;

[Tooltip( "A factor for computing markup." )]
[Range(Single.Epsilon, Single.MaxValue)]
[DefaultValue( 50f )]
public float MarkupDivisor = 50f;

[Tooltip("% markup if a Tax Collector NPC has moved in.")]
[Range( Single.Epsilon, Single.MaxValue )]
[DefaultValue( 1.02f )]
public float TaxMarkupPercent = 1.02f;

[Tooltip("% markup after an NPC has died.")]
[Range( Single.Epsilon, Single.MaxValue )]
[DefaultValue( 1.5f )]
public float InfuriationMarkupPercent = 1.5f;


[Tooltip("% that markup prices 'decay' twice per day.")]
[Range( Single.Epsilon, Single.MaxValue )]
[DefaultValue( 0.95f )]
public float BiDailyDecayMarkdownPercent = 0.95f;


[Tooltip("% scale during a blood moon from female NPCs.")]
[Range( Single.Epsilon, Single.MaxValue )]
[DefaultValue( 1.1f )]
public float FemaleBloodMoonSellPricePercent = 1.1f;

[Tooltip( "% scale from a 'lovestruck' NPC." )]
[Range( Single.Epsilon, Single.MaxValue )]
[DefaultValue( 0.9f )]
public float LovestruckSellPricePercent = 0.9f;

[Tooltip( "% scale from a 'stinky' NPC." )]
[Range( Single.Epsilon, Single.MaxValue )]
[DefaultValue( 1.1f )]
public float StinkySellPricePercent = 1.1f;

Expand Down

0 comments on commit 3995162

Please sign in to comment.