-
Notifications
You must be signed in to change notification settings - Fork 5
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 #5 from EzioTheDeadPoet/settings-UI-beta
Settings UI
- Loading branch information
Showing
6 changed files
with
74 additions
and
73 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
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,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Mutagen.Bethesda.Synthesis.Settings; | ||
/* | ||
namespace HalgarisRPGLoot | ||
{ | ||
[System.Serializable] | ||
public class Rarity | ||
{ | ||
public string Label; | ||
public int NumEnchantments; | ||
public int LLEntries; | ||
} | ||
} | ||
*/ |
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 |
---|---|---|
@@ -1,34 +1,68 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Mutagen.Bethesda.Synthesis.Settings; | ||
|
||
namespace HalgarisRPGLoot | ||
{ | ||
[System.Serializable] | ||
public class Settings | ||
{ | ||
public int VarietyCountPerItem; | ||
public List<Rarity> Rarities = new List<Rarity>(); | ||
public bool UseRNGRarities; | ||
public int RandomSeed = 42; | ||
|
||
public void InitializeDefault() | ||
{ | ||
UseRNGRarities = true; | ||
VarietyCountPerItem = 8; | ||
Rarities = new List<Rarity>() { | ||
public ArmorSettings ArmorSettings = new ArmorSettings(); | ||
public WeaponSettings WeaponSettings = new WeaponSettings(); | ||
|
||
} | ||
public class ArmorSettings | ||
{ | ||
[SynthesisSettingName("Number of variations per Item")] | ||
[SynthesisTooltip("This determines how many different versions\n" + | ||
"of the same Armor you can find.")] | ||
public int VarietyCountPerItem = 50; | ||
[SynthesisSettingName("Rarity Levels")] | ||
[SynthesisTooltip("Custom defineable rarity levels")] | ||
public List<Rarity> Rarities = new List<Rarity>() { | ||
new Rarity() { Label= "Magical", NumEnchantments=1, LLEntries=80 }, | ||
new Rarity() { Label= "Rare", NumEnchantments=2, LLEntries=13 }, | ||
new Rarity() { Label= "Epic", NumEnchantments=3, LLEntries=5 }, | ||
new Rarity() { Label= "Legendary", NumEnchantments=4, LLEntries=2 }, | ||
}; | ||
[SynthesisSettingName("Use RNGRarity")] | ||
[SynthesisTooltip("With this set to true the number of variations\n" + | ||
"per item will be randomised.")] | ||
public bool UseRNGRarities = true; | ||
} | ||
|
||
public class WeaponSettings | ||
{ | ||
[SynthesisSettingName("Number of variations per Item")] | ||
[SynthesisTooltip("This determines how many different versions\n" + | ||
"of the same Weapon you can find.")] | ||
public int VarietyCountPerItem = 50; | ||
[SynthesisSettingName("Rarity Levels")] | ||
[SynthesisTooltip("Custom defineable rarity levels")] | ||
public List<Rarity> Rarities = new List<Rarity>() { | ||
new Rarity() { Label= "Magical", NumEnchantments=1, LLEntries=80 }, | ||
new Rarity() { Label= "Rare", NumEnchantments=2, LLEntries=13 }, | ||
new Rarity() { Label= "Epic", NumEnchantments=3, LLEntries=5 }, | ||
new Rarity() { Label= "Legendary", NumEnchantments=4, LLEntries=2 }, | ||
}; | ||
} | ||
[SynthesisSettingName("Use RNGRarity")] | ||
[SynthesisTooltip("With this set to true the number of variations\n" + | ||
"per item will be randomised.")] | ||
public bool UseRNGRarities = true; | ||
} | ||
|
||
[System.Serializable] | ||
public class Rarity | ||
{ | ||
[SynthesisSettingName("Rarity Label")] | ||
public string Label; | ||
[SynthesisSettingName("Number of Enchantments")] | ||
public int NumEnchantments; | ||
[SynthesisSettingName("Number of LevedList Entries")] | ||
[SynthesisTooltip("The higher the number the more common it is.")] | ||
public int LLEntries; | ||
} | ||
} |
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