Quality of life changes
This commit is contained in:
parent
866764e1ab
commit
af5ee82bd0
2 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<Version>0.4.101</Version>
|
<Version>0.4.102</Version>
|
||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
|
@ -18,7 +18,7 @@ foreach (var archetype in archetypeList)
|
||||||
archetypeDict.Add(archetype.Name, archetype.TraitBiases);
|
archetypeDict.Add(archetype.Name, archetype.TraitBiases);
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.Write("Enter archetype: ");
|
Console.Write("Choose an Archetype (or 'Random'): ");
|
||||||
string archetypeInput = Console.ReadLine() ?? "Random";
|
string archetypeInput = Console.ReadLine() ?? "Random";
|
||||||
if (!archetypeDict.ContainsKey(archetypeInput))
|
if (!archetypeDict.ContainsKey(archetypeInput))
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,7 @@ if (!archetypeDict.ContainsKey(archetypeInput))
|
||||||
archetypeInput = "Random";
|
archetypeInput = "Random";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Console.WriteLine($"{Environment.NewLine}Generating {archetypeInput} profile...");
|
||||||
var qualities = PersonalityGen.GenerateRandom(archetypeDict[archetypeInput]);
|
var qualities = PersonalityGen.GenerateRandom(archetypeDict[archetypeInput]);
|
||||||
var profile = new PersonaProfile
|
var profile = new PersonaProfile
|
||||||
{
|
{
|
||||||
|
@ -34,7 +35,7 @@ var profile = new PersonaProfile
|
||||||
Archetype = archetypeInput
|
Archetype = archetypeInput
|
||||||
};
|
};
|
||||||
|
|
||||||
Console.WriteLine($"{name}'s Profile{Environment.NewLine}{PersonaProfile.ToJson(profile)}");
|
Console.WriteLine($"{Environment.NewLine}--- Generated Profile ---{Environment.NewLine}{PersonaProfile.ToJson(profile)}");
|
||||||
|
|
||||||
Console.Write("Save profile? (y/n): ");
|
Console.Write("Save profile? (y/n): ");
|
||||||
var saveInput = Console.ReadLine()?.Trim().ToLowerInvariant();
|
var saveInput = Console.ReadLine()?.Trim().ToLowerInvariant();
|
||||||
|
|
Loading…
Add table
Reference in a new issue