6 public static string[]
idFemale =
new string[5] {
"shojo",
"sister",
"sister_cat",
"younglady",
"sister_undead" };
9 public int[]
ints =
new int[20];
12 public string[]
strs =
new string[3];
270 return EClass.world.date.year -
birthYear;
274 birthYear = EClass.world.date.year - value;
300 string[] array = c.
source.bio.Split(
'/');
301 if (array.Length > 1)
303 return int.Parse(array[1]);
310 string bio = c.
source.bio;
332 string[] array = bio.Split(
'/');
334 if (array.Length > 1)
340 age =
int.Parse(array[1]);
341 c.pccData = IO.LoadFile<PCCData>(CorePath.packageCore +
"Data/PCC/" + c.id +
".txt");
343 if (array.Length > 2)
345 height =
int.Parse(array[2]);
347 if (array.Length > 3)
349 weight =
int.Parse(array[3]);
351 if (array.Length > 4)
353 c.c_idTone = array[4];
355 if (array.Length > 5 && !array[5].IsEmpty())
357 c.c_idTalk = array[5];
368 if (c.
id ==
"prostitute" &&
age < 15)
393 int num = race.
age[0];
394 int num2 = race.
age[1];
397 int num3 = (num2 - num) / 4;
398 age =
Rand.
Range(num + num3 * (ageIndex - 1), num + num3 * ageIndex);
429 return WordGen.GetID(group);
462 if (!(
id ==
"shojo"))
486 return Lang.
Parse(
"heightWeight",
height.ToString() ??
"",
weight.ToString() ??
"") +
" " + ((c.material.alias ==
"meat") ?
"" : c.
material.GetName().ToTitleCase(wholeText:
true));
int GetOriginalAge(Chara c)
void GenerateAppearance(Chara c)
string TextBirthDate(Chara c, bool _age=false)
void RerollBio(Chara c, int ageIndex=0, bool keepParent=false)
void SetPortrait(Chara c)
void GenerateBirthday(Chara c, int ageIndex=0)
SourceMaterial.Row material
string GetIdPortraitCat()
static SourceManager sources
static string _gender(int id)
static string Parse(string idLang, string val1, string val2=null, string val3=null, string val4=null, string val5=null)
static string GetRandomPortrait(string idDict)
static int Range(int min, int max)
static int rndNormal(int max)