Пример #1
0
        private void FillFrom(BasicCharacterObject character, int seed = -1)
        {
            if (_teamConfig != null)
            {
                Character.ArmorColor1    = _teamConfig.Color1;
                Character.ArmorColor2    = _teamConfig.Color2;
                Character.BannerCodeText = _teamConfig.BannerKey;
            }
            else
            {
                Character.ArmorColor1    = 0;
                Character.ArmorColor2    = 0;
                Character.BannerCodeText = "";
            }
            Character.CharStringId = character.StringId;
            Character.IsFemale     = _config.FemaleRatio > 0.5;
            var equipment = character.Equipment;

            Character.EquipmentCode  = equipment.CalculateEquipmentCode();
            Character.BodyProperties = null;
            Character.BodyProperties = FaceGen.GetRandomBodyProperties(_config.FemaleRatio > 0.5,
                                                                       character.GetBodyPropertiesMin(false), character.GetBodyPropertiesMax(),
                                                                       (int)equipment.HairCoverType, seed, character.HairTags, character.BeardTags,
                                                                       character.TattooTags).ToString();
            Character.MountCreationKey =
                MountCreationKey.GetRandomMountKey(equipment[10].Item, Common.GetDJB2(character.StringId));
        }
Пример #2
0
 //Lazy just adding all the methods for default patch to make compiler happy
 public static BodyProperties GetRandomBodyProperties(bool isFemale, BodyProperties bodyPropertiesMin, BodyProperties bodyPropertiesMax, int hairCoverType, int seed, string hairTags, string beardTags, string tattooTags)
 {
     return(FaceGen.GetRandomBodyProperties(isFemale, bodyPropertiesMin, bodyPropertiesMax, hairCoverType, seed, hairTags, beardTags, tattooTags));
 }