2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-07-03 09:03:42 -04:00

Initial Commit

This commit is contained in:
2024-04-13 15:54:59 +10:00
parent 8e178cbb7b
commit 63ed43f4af
459 changed files with 8039 additions and 20504 deletions

View File

@ -1,38 +1,38 @@
namespace Observatory.Framework.Files.Journal
namespace Observatory.Framework.Files.Journal.Startup;
public class Reputation : JournalBase
{
public class Reputation : JournalBase
public float Empire { get; init; }
public float Federation { get; init; }
public float Independent { get; init; }
public float Alliance { get; init; }
public string EmpireText()
{
public float Empire { get; init; }
public float Federation { get; init; }
public float Independent { get; init; }
public float Alliance { get; init; }
public string EmpireText()
{
return GetReputationText(Empire);
}
public string FederationText()
{
public string FederationText()
{
return GetReputationText(Federation);
}
public string IndependentText()
{
public string IndependentText()
{
return GetReputationText(Independent);
}
public string AllianceText()
{
public string AllianceText()
{
return GetReputationText(Alliance);
}
private string GetReputationText(float rep)
{
string text = rep switch
private string GetReputationText(float rep)
{
var text = rep switch
{
float r when r > 90 => "allied",
float r when r > 35 => "friendly",
@ -43,5 +43,4 @@
};
return text;
}
}
}
}