SomeoneEls
Sodbuster
Odd little thing trying to change the menu here. Ive changed the character.xnb file in the data folder and made it so that only some characters are able to be romanced, but the changes arent showing in the friendship menu. Specifically..
Is this hardcoded or nah?
C#:
if (e.NameWithoutLocale.IsEquivalentTo("Data/Characters") && (Game1.player != null))
{
e.Edit(asset =>
{
var data = asset.AsDictionary<string, CharacterData>().Data;
int seed = 0;
for(int i = 0; i< Game1.player.Name.Length; i++)
{
seed += Game1.player.Name[i];
}
int x = 2;
foreach (var item in data)
{
if (seed % x == 0)
{
item.Value.CanBeRomanced = true;
item.Value.LoveInterest = "";
}
else
{
item.Value.CanBeRomanced = false;
}
}
});
}