Let's start with the items. The next example will be on PLPawnItem_PhasePistol, but this applies to all items.
Code: Select all
public override string GetItemName(bool skipLocalization = false)
{
return PLLocalize.Localize("Phase Pistol", skipLocalization) + base.GetItemEnd();
}
Code: Select all
public PLPawnItem_PhasePistol() : base(EPawnItemType.E_PHASEPISTOL)
{
// end of constructor
LocalizedItemName = PLLocalize.Localize("Phase Pistol", false);
}
string LocalizedItemName;
public override string GetItemName()
{
return LocalizedItemName + (this.Level > 0 ? (" +" + this.Level) : null); //C#9 or LocalizedItemName + GetEnd();
}
In the latest versions of Unity (2021.2.0b6 and 2022.1.0a3), Net Standard 2.1 is available, which has more optimized versions of Dictionary and String. Do you plan to switch to it? Unity Forum
I will also add that the feature of the Sylvassi ship cannot be translated.