public static string Looks(this List <V****a> parVags) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < parVags.Count; i++) { V****a vag = parVags[i]; if (i == 0) { builder.Append(vag.Look()); } else { builder.Append(vag.Look(false)); } if (i == parVags.Count - 2) { builder.Append(" and "); } else if (i == parVags.Count - 1) { builder.Append("."); } else { builder.Append(", "); } } return(builder.ToString()); }
public static float ReCycle(this List <V****a> vaginas) { V****a toShrink = vaginas[vaginas.Count - 1]; if (toShrink.Shrink()) { vaginas.Remove(toShrink); return(30f); } return(toShrink.Cost); }
private string FetusDesc(V****a pregVag) { int index = player.SexualOrgans.Vaginas.IndexOf(pregVag); if (pregVag.Womb.Fetuses.Count > 1) { // TODO add text for multitude of children } return($"The unborn child inside your {index.FirstSecondEtc()} v****a's womb " + $"is about {pregVag.Womb.AgeOfOldest} old."); }
public static string VagSizeConventor(this V****a vag) { List <string> deepth = new List <string>() { }; if (deepth.Count > 0) { int i = Mathf.Clamp(Mathf.FloorToInt(vag.Size / 2), 0, deepth.Count - 1); return(deepth[i]); } return(vag.Size.ToString()); }
public void Digest() { Balls.Digest(p => BallsDigested(p)); Boobs.Digest(p => BoobsDigested(p)); Stomach.Digest(p => StomachDigested(p)); Anal.Digest(p => AnalDigested(p)); if (V****a.ChildTf) { v****a.TransformToChild(p => TfToChild(p)); } else { V****a.Digest(p => VaginaDigested(p)); } void TfToChild(ThePrey thePrey) { PlayerPredEventLog($"{FullName(thePrey)} has shrunk"); pred.VoreChar.V****a.PreyIsRebithed(thePrey); } void VaginaDigested(ThePrey thePrey) { PlayerPredEventLog($"{FullName(thePrey)}"); pred.VoreChar.V****a.PreyIsdigested(thePrey); } void BallsDigested(ThePrey thePrey) { PlayerPredEventLog($"{FullName(thePrey)} has been fully transfomed into cum."); pred.VoreChar.Balls.PreyIsdigested(thePrey); } void BoobsDigested(ThePrey thePrey) { PlayerPredEventLog($"{FullName(thePrey)} is now nothing but milk."); pred.VoreChar.Boobs.PreyIsdigested(thePrey); } void StomachDigested(ThePrey thePrey) { PlayerPredEventLog($"{FullName(thePrey)} has been digested."); pred.VoreChar.Stomach.PreyIsdigested(thePrey); } void AnalDigested(ThePrey thePrey) { PlayerPredEventLog($"{FullName(thePrey)} has been reduced to nothing in your bowels."); pred.VoreChar.Anal.PreyIsdigested(thePrey); } }
public static V****a[] Data() { V****a[] vaginas = new V****a[] { new V****a { Id = 1, Title = "Human", Description = "human" }, new V****a { Id = 2, Title = "Black Sand Trap", Description = "black sandtrap" } }; return(vaginas); }
protected internal override string DoTransformation(Creature target, out bool isBadEnd) { isBadEnd = false; //for some unknown reason, demon tfs roll out their own chance system completely unique to them. ok. StringBuilder sb = new StringBuilder(); //For all of these, any text regarding the transformation should be instead abstracted out as an abstract string function. append the result of this abstract function //to the string builder declared above (aka sb.Append(FunctionCall(variables));) string builder is just a fancy way of telling the compiler that you'll be creating a //long string, piece by piece, so don't do any crazy optimizations first. //the initial text for starting the transformation. feel free to add additional variables to this if needed. sb.Append(InitialTransformationText(target)); //Add any free changes here - these can occur even if the change count is 0. these include things such as change in stats (intelligence, etc) //change in height, hips, and/or butt, or other similar stats. int rando = Utils.Rand(100); int delta = target.GetExtraData()?.deltaTransforms ?? 0; if (delta != 0) { rando += 5 * delta + Utils.Rand(5 * delta); } //First, check if this tf has the male flag set (for male or herm tfs). If it does, add or grow cocks. if (desiredGender.HasFlag(Gender.MALE)) { byte addedCocks = 0; //if our initial roll was a crit, roll again. if we crit again, we may add several cocks, if possible. if (rando >= 85 && target.cocks.Count < Genitals.MAX_COCKS && Utils.Rand(10) < target.corruptionTrue / 25) { addedCocks = GrowCockGeneric(target, (byte)(Utils.Rand(2) + 2)); target.DeltaCreatureStats(lib: 3 * addedCocks, sens: 5 * addedCocks, lus: 10 * addedCocks); if (!isPurified) { target.IncreaseCorruption(8); } } //otherwise, only add a c**k if we have none or we originally rolled a crit (but failed to crit again) else if (target.cocks.Count == 0 || (rando >= 85 && target.cocks.Count < Genitals.MAX_COCKS)) { addedCocks = GrowCockGeneric(target, 1); target.DeltaCreatureStats(lib: 3, sens: 5, lus: 10); if (!isPurified) { target.IncreaseCorruption(5); } } //if that fails, it means we had a c**k already, or can't grow any more of them. else { C**k shortest = target.genitals.ShortestCock(); double lengthDelta; if (rando >= 45) { lengthDelta = shortest.IncreaseLength(Utils.Rand(3) + 3); shortest.IncreaseThickness(1); } else if (Utils.Rand(4) == 0) { lengthDelta = shortest.IncreaseLength(3); } else { lengthDelta = shortest.IncreaseLength(1); } target.DeltaCreatureStats(lib: 2, sens: 1, lus: 5 + lengthDelta * 3); if (!isPurified) { target.IncreaseCorruption(); } //no idea why this occurs, but ok. target.IncreaseIntelligence(1); } } //Otherwise, we're targeting female demon tfs only. this means we need to shrink (and possibly remove) the largest c**k the target has, unless hyper happy is on. else if (!hyperHappy && target.hasCock) { C**k largest = target.genitals.LongestCock(); //this loops through all the cocks and finds the longest. obviously, if the count is 1, this is simply the first element. //we'll need this if it gets removed. if not, this can still be used, this time to determine how much we shrunk. CockData oldData = largest.AsReadOnlyData(); //try decreasing it by 1-3. if this causes it to be removed instead, that's fine, but we need to know. //Note that this remove is now IN PLACE, not LAST. so if we remove the 3rd one, the old 4th is now 3rd, and so on. bool removed = target.genitals.ShrinkCockAndRemoveIfTooSmall(largest, Utils.Rand(3) + 1); } //Then, check if the tf has the female flag set (for female or herm tfs). if it does, add a v****a (if needed), and increase breast size. if (desiredGender.HasFlag(Gender.FEMALE)) { //don't currently have a v****a and herm tf or we're genderless, or it's a crit, or we rerolled a crit. if (!target.hasVagina && (desiredGender == Gender.HERM || target.gender == Gender.GENDERLESS || rando > 65 || Utils.Rand(3) == 0)) { target.genitals.AddVagina(VaginaType.HUMAN); } //do have one, and rolled a high crit. else if (target.hasVagina && rando >= 85) { foreach (V****a vag in target.vaginas) { //grow each c**t anywhere from 0.25in to 1in, if they are below the largest normal size. if (vag.c**t.length < vag.c**t.largestNormalSize) { vag.GrowClit((Utils.Rand(4) + 1) * 0.25); //cap it at the largest normal size. if (vag.c**t.length > vag.c**t.largestNormalSize) { vag.SetClitSize(vag.c**t.largestNormalSize); } } } } //do have one, rolled a crit, but not a high crit. else if (target.hasVagina && rando > 65) { target.HaveGenericVaginalOrgasm(0, true, true); target.vaginas.ForEach(x => x.IncreaseWetness()); } //now, breasts. these are the fallback, of sorts, so they grow larger when we don't crit. they also grow larger when we crit if we're targeting herms. if (rando < 85 || desiredGender == Gender.HERM) { //only occurs via herm. if (rando >= 85) { target.breasts.ForEach(x => x.GrowBreasts(3)); } else { byte temp = (byte)(1 + Utils.Rand(3)); CupSize largestSize = target.genitals.BiggestCupSize(); if (largestSize < CupSize.B && Utils.Rand(3) == 0) { temp++; } if (largestSize < CupSize.DD && Utils.Rand(4) == 0) { temp++; } if (largestSize < CupSize.DD_BIG && Utils.Rand(5) == 0) { temp++; } target.breasts.ForEach(x => x.GrowBreasts(temp)); } } } //if not, we're targeting male demon tfs only. this means we may need to shrink any overlarge breasts. Additionally, higher rng rolls may now remove vaginas. else if (!hyperHappy) { //if high crit: decrease bonus capacity, and remove a v****a, flat-out. if (rando >= 85 && target.hasVagina) { target.genitals.DecreaseBonusVaginalCapacity(5); target.genitals.RemoveVagina(); } //otherwise, if somewhat high, decrease bonus vaginal capacity (all vaginas), and wetness (last v****a). if this causes the bonus capacity to drop to 0 //and would cause it to go negative if we allowed that, remove the last v****a. else if (rando >= 65) { V****a lastVagina = target.vaginas[target.vaginas.Count - 1]; lastVagina.DecreaseWetness(1); //this is being super pedantic, but i'd prefer it lower the stat, then remove the v****a. hence this bool here. bool remove = target.genitals.standardBonusVaginalCapacity < 5; //decrease first. target.genitals.DecreaseBonusVaginalCapacity(5); //then remove it. if (remove) { target.genitals.RemoveVagina(); } } // if (target.genitals.BiggestCupSize() > target.genitals.smallestPossibleCupSize && (rando >= 85 || (rando > 65 && Utils.RandBool()) || (rando <= 65 && Utils.Rand(4) == 0))) { foreach (Breasts breast in target.breasts) { if (breast.cupSize > target.genitals.smallestPossibleCupSize) { byte amount = 1; if (rando >= 85) { amount++; } breast.ShrinkBreasts(amount); } } } } //never called in vanilla. if i read it correctly, it just initializes to 0 with a max of 1. int changeCount = base.GenerateChangeCount(target, new int[] { 3 }, 0, 0); if (changeCount == 0) { return(ApplyChangesAndReturn(target, sb, 0)); } int remainingChanges = changeCount; //Neck restore if (!target.neck.isDefault && Utils.Rand(4) == 0) { NeckData oldData = target.neck.AsReadOnlyData(); target.RestoreNeck(); sb.Append(RestoredNeckText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Rear body restore if (!target.back.isDefault && Utils.Rand(5) == 0) { BackData oldData = target.back.AsReadOnlyData(); target.RestoreBack(); sb.Append(RestoredBackText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Ovi perk loss if (target.womb.canRemoveOviposition && Utils.Rand(5) == 0) { target.womb.ClearOviposition(); sb.Append(ClearOvipositionText(target)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Demonic changes - higher chance with higher corruption. if (Utils.Rand(40) + target.corruption / 3 > 35 && !isPurified) { //Change tail if already horned. if (target.tail.type != TailType.DEMONIC && !target.horns.isDefault) { target.IncreaseCorruption(4); TailData oldData = target.tail.AsReadOnlyData(); target.UpdateTail(TailType.DEMONIC); sb.Append(UpdateTailText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //grow horns! if (target.horns.numHorns == 0 || (Utils.Rand(target.horns.numHorns + 3) == 0)) { if (target.horns.numHorns < 12 && (target.horns.type == HornType.NONE || target.horns.type == HornType.DEMON)) { if (target.horns.type == HornType.NONE) { target.UpdateHorns(HornType.DEMON); } target.IncreaseCorruption(3); } //Text for shifting horns else if (target.horns.type != HornType.DEMON) { target.UpdateHorns(HornType.DEMON); target.IncreaseCorruption(3); } if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Nipples Turn Back: if (target.genitals.hasBlackNipples && Utils.Rand(3) == 0) { target.genitals.SetBlackNipples(false); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //remove fur if (target.face.type != FaceType.HUMAN || (target.body.type != BodyType.HUMANOID && Utils.Rand(3) == 0)) { //Remove face before fur! if (target.face.type != FaceType.HUMAN) { target.RestoreFace(); } //De-fur else if (target.body.type != BodyType.HUMANOID) { target.RestoreBody(); } if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Demon tongue if (target.tongue.type == TongueType.SNAKE && Utils.Rand(3) == 0) { TongueData oldData = target.tongue.AsReadOnlyData(); target.UpdateTongue(TongueType.DEMONIC); sb.Append(UpdateTongueText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //foot changes - requires furless if (target.body.type == BodyType.HUMANOID && Utils.Rand(4) == 0) { bool changed; //Males/genderless get clawed feet if (!target.gender.HasFlag(Gender.FEMALE) || (target.gender == Gender.HERM && target.genitals.AppearsMoreMaleThanFemale())) { changed = target.UpdateLowerBody(LowerBodyType.DEMONIC_CLAWS); } //Females/futa get high heels else { changed = target.UpdateLowerBody(LowerBodyType.DEMONIC_HIGH_HEELS); } if (changed && --remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Grow demon wings if ((target.wings.type != WingType.BAT_LIKE || !target.wings.isLarge || target.back.type == BackType.SHARK_FIN) && Utils.Rand(8) == 0 && target.IsCorruptEnough(50)) { //grow smalls to large if (target.wings.type == WingType.BAT_LIKE && target.IsCorruptEnough(75)) { target.wings.GrowLarge(); } else { target.UpdateWings(WingType.BAT_LIKE); } if (target.back.type == BackType.SHARK_FIN) { target.RestoreBack(); } if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } } //this is the fallthrough that occurs when a tf item goes through all the changes, but does not proc enough of them to exit early. it will apply however many changes //occurred, then return the contents of the stringbuilder. return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); }
protected internal override string DoTransformation(Creature target, out bool isBadEnd) { isBadEnd = false; //by default, this is 2 rolls at 50%, so a 25% chance of 0 additional tfs, 50% chance of 1 additional tf, 25% chance of 2 additional tfs. //also takes into consideration any perks that increase or decrease tf effectiveness. if you need to roll out your own, feel free to do so. int changeCount = GenerateChangeCount(target, new int[] { 2, 2, 3 }, isEnhanced ? 3 : 1); int totalChanges = 0; StringBuilder sb = new StringBuilder(); //For all of these, any text regarding the transformation should be instead abstracted out as an abstract string function. append the result of this abstract function //to the string builder declared above (aka sb.Append(FunctionCall(variables));) string builder is just a fancy way of telling the compiler that you'll be creating a //long string, piece by piece, so don't do any crazy optimizations first. //the initial text for starting the transformation. feel free to add additional variables to this if needed. sb.Append(InitialTransformationText(target)); //Add any free changes here - these can occur even if the change count is 0. these include things such as change in stats (intelligence, etc) //change in height, hips, and/or butt, or other similar stats. //this will handle the edge case where the change count starts out as 0. //paste this line after any tf is applied, and it will: automatically decrement the remaining changes count. if it becomes 0 or less, apply the total number of changes //underwent to the target's change count (if applicable) and then return the StringBuilder content. //if (--remainingChanges <= 0) return ApplyChangesAndReturn(target, sb, changeCount - remainingChanges); //STATS //Increase player str: if (target.strength < 60 && Utils.Rand(3) == 0) { double delta = target.IncreaseStrength((60 - target.strength) / 10.0); sb.Append(StrengthUpText(delta)); } //Increase player tou: if (target.toughness < 60 && Utils.Rand(3) == 0) { double delta = target.IncreaseToughness((60 - target.toughness) / 10.0); sb.Append(ToughnessUpText(delta)); } //Decrease player spd if it is over 30: if (target.relativeSpeed > 30 && target.speed > 30 && Utils.Rand(3) == 0) { double decrease = target.DecreaseSpeed((target.speed - 30) / 10.0); sb.Append(SpeedDownText(decrease)); } //Increase Corr, up to a max of 50. //this is silent, apparently. if (!isPurified && target.corruption < 50) { target.IncreaseCorruptionBy((50 - target.corruption) / 10.0); } if (totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } //Sex bits - Duderiffic if (target.cocks.Count > 0 && Utils.Rand(2) == 0 && !hyperHappy) { //If the player has at least one dick, decrease the size of each slightly, C**k biggest = target.genitals.LongestCock(); CockData preChange = biggest.AsReadOnlyData(); if (biggest.DecreaseLengthAndCheckIfNeedsRemoval(Utils.Rand(3) + 1)) { target.genitals.RemoveCock(biggest); if (target.cocks.Count == 0 && !target.hasVagina) { BallsData oldBalls = target.balls.AsReadOnlyData(); target.AddVagina(0.25); target.genitals.RemoveAllBalls(); sb.Append(MadeFemale(target, preChange, oldBalls)); } else { sb.Append(ShrunkOneCock(target, preChange, true)); } } else { sb.Append(ShrunkOneCock(target, preChange, false)); } if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //Sex bits - girly bool boobsGrew = false; //Increase player's breast size, if they are FF or bigger //do not increase size, but do the other actions: CupSize biggestCup = target.genitals.BiggestCupSize(); if ((biggestCup < CupSize.DD || (!isPurified && biggestCup < CupSize.FF)) && (isEnhanced || Utils.Rand(3) == 0)) { BreastData oldBreasts = target.breasts[0].AsReadOnlyData(); if (target.breasts[0].GrowBreasts((byte)(1 + Utils.Rand(3))) > 0) { boobsGrew = true; sb.Append(GrewFirstBreastRow(target, oldBreasts)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } target.DeltaCreatureStats(sens: .5); } //Remove feathery hair HairData oldHair = target.hair.AsReadOnlyData(); if (base.RemoveFeatheryHair(target)) { sb.Append(RemovedFeatheryHairText(target, oldHair)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //refresh the biggest cup size because we may have grown some breasts earlier. biggestCup = target.genitals.BiggestCupSize(); //If breasts are D or bigger and are not lactating, they also start lactating: if (biggestCup >= CupSize.D && !target.genitals.isLactating && (isEnhanced || boobsGrew || Utils.Rand(3) == 0)) { BreastData preLactation = target.breasts[0].AsReadOnlyData(); target.genitals.StartLactating(); sb.Append(StartedLactatingText(target, preLactation)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } target.DeltaCreatureStats(sens: .5); } //Quad nipples and other 'special isEnhanced things. if (isEnhanced) { //QUAD DAMAGE! if (!target.genitals.hasQuadNipples) { BreastCollectionData oldBreasts = target.genitals.allBreasts.AsReadOnlyData(); target.genitals.SetQuadNipples(true); sb.Append(GrantQuadNippleText(target, oldBreasts)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } else if (target.genitals.isLactating) { BreastCollectionData oldBreasts = target.genitals.allBreasts.AsReadOnlyData(); target.genitals.BoostLactation(2.5); double delta = 0; if (target.genitals.nippleLength < 1 || (target.genitals.nippleLength < 1.5 && !isPurified)) { delta = target.genitals.GrowNipples(0.25); target.DeltaCreatureStats(sens: .5); } sb.Append(BoostedLactationText(target, oldBreasts, delta)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } } //If breasts are already lactating and the player is not lactating beyond a reasonable level, they start lactating more: else { if (target.genitals.isLactating && (target.genitals.lactationStatus < LactationStatus.MODERATE || (!isPurified && target.genitals.lactationStatus < LactationStatus.STRONG)) && (isEnhanced || Utils.Rand(3) == 0)) { BreastCollectionData oldBreasts = target.genitals.allBreasts.AsReadOnlyData(); double delta = 0; target.genitals.BoostLactation(0.75); if (target.genitals.nippleLength < 1 || (target.genitals.nippleLength < 1.5 && !isPurified)) { delta = target.genitals.GrowNipples(0.25); target.DeltaCreatureStats(sens: .5); } sb.Append(BoostedLactationText(target, oldBreasts, delta)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } else if (isPurified && target.genitals.lactationStatus >= LactationStatus.STRONG) { BreastCollectionData oldData = target.genitals.allBreasts.AsReadOnlyData(); target.DeltaCreatureStats(sens: .5); target.genitals.BoostLactation(-1); sb.Append(BoostedLactationText(target, oldData, 0)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } } //If breasts are lactating at a fair level //and the player has not received this status, //apply an effect where the player really wants //to give their milk to other creatures //(capable of getting them addicted): biggestCup = target.genitals.BiggestCupSize(); if (!target.HasPerk <Feeder>() && target.genitals.lactationStatus >= LactationStatus.MODERATE && Utils.Rand(2) == 0 && biggestCup >= CupSize.DD && target.IsCorruptEnough(35)) { target.perks.AddPerk <Feeder>(); sb.Append(GainedFeederPerk(target)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //UNFINISHED //If player has addictive quality and drinks pure version, removes addictive quality. //if the player has a v****a and it is tight, it loosens. if (target.hasVagina) { VaginalLooseness targetLooseness = EnumHelper.Min(VaginalLooseness.LOOSE, target.genitals.maxVaginalLooseness); V****a tightest = target.genitals.TightestVagina(); if (tightest.looseness < targetLooseness && Utils.Rand(2) == 0) { VaginaData preLoosened = tightest.AsReadOnlyData(); tightest.IncreaseLooseness(2); sb.Append(LoosenedTwatText(target, preLoosened)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } target.DeltaCreatureStats(lus: 10); } } //Neck restore if (target.neck.type != NeckType.HUMANOID && Utils.Rand(4) == 0) { NeckData oldData = target.neck.AsReadOnlyData(); target.RestoreNeck(); sb.Append(RestoredNeckText(target, oldData)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //Rear body restore if (target.back.type != BackType.SHARK_FIN && Utils.Rand(5) == 0) { BackData oldData = target.back.AsReadOnlyData(); target.RestoreBack(); sb.Append(RestoredBackText(target, oldData)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //Ovi perk loss if (!isPurified && target.womb.canRemoveOviposition && Utils.Rand(5) == 0) { target.womb.ClearOviposition(); sb.Append(ClearOvipositionText(target)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //General Appearance (Tail -> Ears -> Paws(fur stripper) -> Face -> Horns //Give the player a bovine tail, same as the minotaur if (!isPurified && target.tail.type != TailType.COW && Utils.Rand(3) == 0) { TailData oldData = target.tail.AsReadOnlyData(); target.UpdateTail(TailType.COW); sb.Append(ChangedTailText(target, oldData)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //Give the player bovine ears, same as the minotaur if (!isPurified && target.ears.type != EarType.COW && Utils.Rand(4) == 0 && target.tail.type == TailType.COW) { EarData oldEars = target.ears.AsReadOnlyData(); target.UpdateEars(EarType.COW); sb.Append(ChangedEarsText(target, oldEars)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //If the player is under 7 feet in height, increase their height, similar to the minotaur if (((isEnhanced && target.build.heightInInches < 96) || target.build.heightInInches < 84) && Utils.Rand(2) == 0) { int temp = Utils.Rand(5) + 3; //Slow rate of growth near ceiling if (target.build.heightInInches > 74) { temp = (int)Math.Floor(temp / 2.0); } //Never 0 if (temp == 0) { temp = 1; } byte delta = target.build.IncreaseHeight((byte)temp); sb.Append(GrowTaller(target, delta)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //Give the player hoofs, if the player already has hoofs STRIP FUR if (!isPurified && target.lowerBody.type != LowerBodyType.HOOVED && target.ears.type == EarType.COW) { if (Utils.Rand(3) == 0) { var oldData = target.lowerBody.AsReadOnlyData(); target.UpdateLowerBody(LowerBodyType.HOOVED); sb.Append(ChangedLowerBodyText(target, oldData)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } } //If the player's face is non-human, they gain a human face if (!isEnhanced && target.lowerBody.type == LowerBodyType.HOOVED && target.face.type != FaceType.HUMAN && Utils.Rand(4) == 0) { //Remove face before fur! var oldData = target.face.AsReadOnlyData(); target.RestoreFace(); sb.Append(RestoredFaceText(target, oldData)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //isEnhanced get shitty fur var targetFur = new FurColor(HairFurColors.BLACK, HairFurColors.WHITE, FurMulticolorPattern.SPOTTED); if (isEnhanced && (!target.body.IsFurBodyType() || !target.body.mainEpidermis.fur.Equals(targetFur))) { var oldData = target.body.AsReadOnlyData(); if (target.body.type == BodyType.SIMPLE_FUR) { target.body.ChangeMainFur(targetFur); } else { target.UpdateBody(BodyType.SIMPLE_FUR, targetFur); } if (!oldData.IsFurBodyType()) { sb.Append(ChangedBodyText(target, oldData)); } else { sb.Append(ChandedFurToSpots(target, oldData)); } if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //if isEnhanced to probova give a shitty cow face else if (isEnhanced && target.face.type != FaceType.COW_MINOTAUR) { var oldData = target.face.AsReadOnlyData(); target.UpdateFace(FaceType.COW_MINOTAUR); sb.Append(ChangedFaceText(target, oldData)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //Give the player bovine horns, or increase their size, same as the minotaur //New horns or expanding mino horns if (!isPurified && Utils.Rand(3) == 0) { var oldHorns = target.horns.AsReadOnlyData(); if (target.horns.type != HornType.BOVINE) { target.UpdateHorns(HornType.BOVINE); sb.Append(ChangedHornsText(target, oldHorns)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } else if (target.horns.type == HornType.BOVINE && target.horns.CanStrengthen && target.horns.significantHornSize < 5) { target.horns.StrengthenTransform(); sb.Append(MadeHornsBigger(target, oldHorns)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } } //Increase the size of the player's hips, if they are not already childbearing or larger if (Utils.Rand(2) == 0 && target.hips.size < 15) { if (isPurified && target.hips.size < 8 || !isPurified) { var oldHips = target.hips.AsReadOnlyData(); if (target.build.GrowHips((byte)(1 + Utils.Rand(4))) > 0) { sb.Append(WidenedHipsText(target, oldHips)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } } } // Remove gills if (Utils.Rand(4) == 0 && target.gills.type != GillType.NONE) { var oldData = target.gills.AsReadOnlyData(); target.RestoreGills(); sb.Append(RestoredGillsText(target, oldData)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //Increase the size of the player's ass (less likely then hips), if it is not already somewhat big if (Utils.Rand(2) == 0 && target.butt.size < 8 || (!isPurified && target.butt.size < 13)) { var oldButt = target.butt.AsReadOnlyData(); if (target.butt.GrowButt((byte)(1 + Utils.Rand(2))) > 0) { sb.Append(GrewButtText(target, oldButt)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } } //Nipples Turn Back: if (target.genitals.hasBlackNipples && Utils.Rand(3) == 0) { target.genitals.SetBlackNipples(false); sb.Append(RemovedBlackNippleText(target)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //Debugcunt if (target.hasVagina && target.vaginas.Any(x => x.type != VaginaType.defaultValue) && Utils.Rand(3) == 0) { var oldCollection = target.genitals.allVaginas.AsReadOnlyData(); target.vaginas.ForEach(x => target.genitals.RestoreVagina(x)); sb.Append(RestoreAllVaginasText(target, oldCollection)); if (++totalChanges >= changeCount) { return(FinalizeTransformation(target, sb, totalChanges)); } } //this is the fallthrough that occurs when a tf item goes through all the changes, but does not proc enough of them to exit early. it will apply however many changes //occurred, then return the contents of the stringbuilder. return(FinalizeTransformation(target, sb, changeCount - totalChanges)); }
/** Original Credits: * @since March 26, 2018 * @author Stadler76 */ protected internal override string DoTransformation(Creature target, out bool isBadEnd) { isBadEnd = false; //by default, this is 2 rolls at 50%, so a 25% chance of 0 additional tfs, 50% chance of 1 additional tf, 25% chance of 2 additional tfs. //also takes into consideration any perks that increase or decrease tf effectiveness. if you need to roll out your own, feel free to do so. int changeCount = GenerateChangeCount(target, new int[] { 2, 2 }, isEnhanced ? 3 : 1); int remainingChanges = changeCount; StringBuilder sb = new StringBuilder(); //For all of these, any text regarding the transformation should be instead abstracted out as an abstract string function. append the result of this abstract function //to the string builder declared above (aka sb.Append(FunctionCall(variables));) string builder is just a fancy way of telling the compiler that you'll be creating a //long string, piece by piece, so don't do any crazy optimizations first. //the initial text for starting the transformation. feel free to add additional variables to this if needed. sb.Append(InitialTransformationText(target)); //Add any free changes here - these can occur even if the change count is 0. these include things such as change in stats (intelligencelligence, etc) //change in height, hips, and/or butt, or other similar stats. //this will handle the edge case where the change count starts out as 0. if (remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } //Any transformation related changes go here. these typically cost 1 change. these can be anything from body parts to gender (which technically also changes body parts, //but w/e). You are required to make sure you return as soon as you've applied changeCount changes, but a single line of code can be applied at the end of a change to do //this for you. //paste this line after any tf is applied, and it will: automatically decrement the remaining changes count. if it becomes 0 or less, apply the total number of changes //underwent to the target's change count (if applicable) and then return the StringBuilder content. //if (--remainingChanges <= 0) return ApplyChangesAndReturn(target, sb, changeCount - remainingChanges); //Used as a holding variable for biggest dicks and the like //**************** //General Effects: //**************** //-Int less than 10 if (target is IExtendedCreature extendedCreature && !extendedCreature.extendedData.resistsTFBadEnds && target.intelligence < 10) { if (target.intelligence < 8 && Species.KANGAROO.Score(target) >= 5) { isBadEnd = true; return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //-Speed to 70 if (target.relativeSpeed < 70 && Utils.Rand(3) == 0) { //2 points up if below 40! if (target.relativeSpeed < 40) { target.ChangeSpeed(1); } target.ChangeSpeed(1); } //-Int to 10 if (target.intelligence > 2 && Utils.Rand(3) == 0) { //Gain dumb (smart!) //gain dumb (30-10 int): //gain dumb (10-1 int): target.ChangeIntelligence(-1); } //**************** //Appearance Effects: //**************** //-Hip widening funtimes if (Utils.Rand(4) == 0 && target.hips.size < 40) { target.hips.GrowHips(); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //-Restore arms to become human arms again if (Utils.Rand(4) == 0) { ArmData oldData = target.arms.AsReadOnlyData(); target.RestoreArms(); sb.Append(RestoredArmsText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //-Remove feathery hair if (RemoveFeatheryHair(target)) { if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Remove odd eyes if (Utils.Rand(5) == 0 && !target.eyes.isDefault) { EyeData oldData = target.eyes.AsReadOnlyData(); target.RestoreEyes(); sb.Append(RestoredEyesText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //**************** //Sexual: //**************** //-Shrink balls down to reasonable size (3?) if (target.balls.size >= 4 && Utils.Rand(2) == 0) { target.balls.ShrinkBalls(); target.genitals.IncreaseCumMultiplier(); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //-Shorten clits to reasonable size //MOD NOTE: lets do one at a time. i generally do all because that's the easiest way to port it, but f**k it. V****a largestClit = target.genitals.LargestVaginaByClitSize(); if (target.hasVagina && largestClit.c**t.length >= 4 && Utils.Rand(5) == 0) { largestClit.ShrinkClit(largestClit.c**t.length / 2); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Find biggest dick! C**k biggestCock = target.genitals.LongestCock(); //-Shrink dicks down to 8\" max. if (target.hasCock && biggestCock.length >= 16 && Utils.Rand(5) == 0) { biggestCock.DecreaseLength(biggestCock.length / 2); biggestCock.DecreaseThickness(2 * biggestCock.length / 3); if (biggestCock.girth * 6 > biggestCock.length) { biggestCock.DecreaseThickness(.4); } else if (biggestCock.girth * 8 > biggestCock.length) { biggestCock.DecreaseThickness(.2); } if (biggestCock.girth < .5) { biggestCock.SetGirth(0.5); } if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //C**K TF! if (target.cocks.Any(x => x.type != CockType.KANGAROO) && Utils.Rand(isEnhanced ? 2 : 3) == 0) { C**k notRoo = target.cocks.First(x => x.type != CockType.KANGAROO); target.genitals.UpdateCock(notRoo, CockType.KANGAROO); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Neck restore if (target.neck.type != NeckType.HUMANOID && Utils.Rand(4) == 0) { NeckData oldData = target.neck.AsReadOnlyData(); target.RestoreNeck(); sb.Append(RestoredNeckText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Rear body restore if (!target.back.isDefault && Utils.Rand(5) == 0) { BackData oldData = target.back.AsReadOnlyData(); target.RestoreBack(); sb.Append(RestoredBackText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //Ovi perk loss if (target.womb.canRemoveOviposition && Utils.Rand(5) == 0) { target.womb.ClearOviposition(); sb.Append(ClearOvipositionText(target)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //**************** //Big Kanga Morphs //type 1 ignores normal restrictions //**************** //-Face (Req: Fur + Feet) if (target.face.type != FaceType.KANGAROO && ((target.body.IsFurBodyType() && target.lowerBody.type == LowerBodyType.KANGAROO) || isEnhanced) && Utils.Rand(4) == 0) { FaceData oldData = target.face.AsReadOnlyData(); target.UpdateFace(FaceType.KANGAROO); sb.Append(UpdateFaceText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //-Fur (Req: Footsies) if (!target.body.IsFurBodyType() && (target.lowerBody.type == LowerBodyType.KANGAROO || isEnhanced) && Utils.Rand(4) == 0) { BodyData oldData = target.body.AsReadOnlyData(); target.UpdateBody(BodyType.SIMPLE_FUR, new FurColor(HairFurColors.BROWN)); sb.Append(UpdateBodyText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //-Roo footsies (Req: Tail) if (target.lowerBody.type != LowerBodyType.KANGAROO && (isEnhanced || target.tail.type == TailType.KANGAROO) && Utils.Rand(4) == 0) { LowerBodyData oldData = target.lowerBody.AsReadOnlyData(); target.UpdateLowerBody(LowerBodyType.KANGAROO); sb.Append(UpdateLowerBodyText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //-Roo tail (Req: Ears) if (target.tail.type != TailType.KANGAROO && Utils.Rand(4) == 0 && (isEnhanced || target.ears.type == EarType.KANGAROO)) { TailData oldData = target.tail.AsReadOnlyData(); target.UpdateTail(TailType.KANGAROO); sb.Append(UpdateTailText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //-Roo ears if (target.ears.type != EarType.KANGAROO && Utils.Rand(4) == 0) { EarData oldData = target.ears.AsReadOnlyData(); target.UpdateEars(EarType.KANGAROO); sb.Append(UpdateEarsText(target, oldData)); if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } } //UBEROOOO //kangaroo perk: - any liquid or food intake will accelerate a pregnancy, but it will not progress otherwise if (target.womb.canObtainDiapause && Species.KANGAROO.Score(target) > 4 && Utils.Rand(4) == 0 && target.hasVagina) { target.womb.EnableDiapause(); //Perk name and description: if (--remainingChanges <= 0) { return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); } //trigger effect: Your body reacts to the influx of nutrition, accelerating your pregnancy. Your belly bulges outward slightly. } // Remove gills if (Utils.Rand(4) == 0 && !target.gills.isDefault) { target.RestoreGills(); } if (remainingChanges == changeCount) { (target as CombatCreature)?.RecoverFatigue(40); } //this is the fallthrough that occurs when a tf item goes through all the changes, but does not proc enough of them to exit early. it will apply however many changes //occurred, then return the contents of the stringbuilder. return(ApplyChangesAndReturn(target, sb, changeCount - remainingChanges)); }
public static string Look(this V****a vag, bool capital = true) => $"{(capital ? "A" : "a")} {vag.VagSizeConventor()} {vag.Race}";
public static float GrowCost(this V****a v****a) => Mathf.Ceil(Mathf.Min(2000, 30 * Mathf.Pow(1.05f, v****a.BaseSize)));
protected override string EquipText(Creature wearer) { //Produces any text seen when equipping the armor normally bool wornUpper = wearer.wearingUpperGarment; bool wornLower = wearer.wearingLowerGarment; string intro; if (userPrompted && active) { intro = "You decide to ignore the warnings about any body changing effects and change into your " + ItemName() + ". As you slip it on, you realize just how good it feels and begin to wonder why anyone would want to prevent that."; } else if (userPrompted) { intro = "You decide it'd be best to heed the warnings about any body changing effects and utter the deactivation incantion before " + "equipping your " + ItemName() + ". It doesn't really feel any different from wearing anything else, though it is a little slutty. "; } else { intro = "You slip into your " + ItemName() + " without so much as a second thought. You can't help but notice just how good it feels on you. "; } //reset the user prompted flag so it will work next time. userPrompted = false; if (wornUpper && wornLower) { return(intro + "You have some trouble getting it all the way on, and it quickly becomes obvious that it wasn't designed to be worn with a bra. Kinky. " + "After some minor adjustments, you're able to get it to fit, but you wouldn't mind removing your " + wearer.upperGarment.ItemName() + ", either. You have similar trouble with your " + wearer.lowerGarment.ItemName() + ", though for an entirely different reason - " + "you probably won't be able to seduce many of your foes with your " + wearer.lowerGarment.ItemName() + " getting in the way. " + "After all, what's the point of wearing such a ludicrous outfit, if you can't take advantage of it? For a moment you consider taking your " + wearer.lowerGarment.ItemName() + " off, but then decide against it. You can always change your mind later, if you really want to."); } StringBuilder sb = new StringBuilder(intro); if (!wornUpper) { CupSize largestCup = wearer.genitals.BiggestCupSize(); if (largestCup >= CupSize.E_BIG) { sb.Append("The halter top clings tightly to your bustline, sending a shiver of pleasure through your body. You feel how your erect " + wearer.breasts[0].ShortNippleDescription() + " protrude from the soft fabric of your beautiful dress, and the sensation makes you feel slightly dizzy. "); if (wearer.genitals.isLactating) { sb.Append("Droplets of milk leak from your aroused " + wearer.breasts[0].ShortNippleDescription() + "wettening the top of your dress."); } } else if (largestCup >= CupSize.DD) { sb.Append("The halter top clings to your bustline, sending a shiver of pleasure through your body. "); if (wearer.genitals.isLactating) { sb.Append("Droplets of milk leak from your aroused " + wearer.breasts[0].ShortNippleDescription() + "wettening the top of your dress."); } } else if (largestCup >= CupSize.B) { sb.Append("The halter top of your sluttish outfit snugly embraces your " + wearer.genitals.AllBreastsLongDescription() + ". The sensation of the soft fabric on your bare " + wearer.breasts[0].ShortNippleDescription() + " makes you feel warm and sexy. "); if (wearer.genitals.isLactating) { sb.Append("The sensation causes milk to leak from your breasts, wetting the top of your dress."); } } else if (largestCup >= CupSize.A) { sb.Append("You feel how the soft fabric of your dress caresses your " + wearer.genitals.AllBreastsLongDescription() + ". The sensation is very erotic and you touch your sensitive " + wearer.breasts[0].ShortNippleDescription() + ", feeling the spread of arousal. " + "You idly notice that the halter top of your whorish dress is somewhat loose, and it would feel much better if your breasts were bigger and suppler. "); if (wearer.genitals.isLactating) { sb.Append("Your nipples respond to your stimulation, leaking milk into the top of your dress. "); } } else { sb.Append("You feel rather stupid putting the top part on like this, but you're willing to bear with it. As you put it on, " + "you feel how the soft fabric of your dress touches your " + wearer.breasts[0].LongNippleDescription() + ", making them erect."); } sb.Append(GlobalStrings.NewParagraph()); } if (!wornLower) { if (wearer.butt.size < 8) { sb.Append("The sensation of tender fabric clinging to your " + wearer.build.ButtLongDescription() + " arouses you immensely, as you smooth your skirt. "); } else { sb.Append("You can feel how the fine fabric of your sluttish skirt doesn't quite cover your [ass]"); if (wearer.hips.size > 8) { sb.Append(", and how the smooth skirt is stretched by your [hips]. "); } else { sb.Append(". "); } } if (wearer.hasCock) { sb.Append("Your [c**k] becomes erect under your obscene skirt, bulging unnaturally. "); } else if (wearer.hasVagina) { V****a wettest = wearer.genitals.LargestVaginalByWetness(); switch (wettest.wetness) { case VaginalWetness.SLAVERING: sb.Append("Your juice constantly escapes your " + wettest.LongDescription() + " and spoils your sexy skirt. "); break; case VaginalWetness.DROOLING: sb.Append("A thin stream of your girl-cum escapes your " + wettest.LongDescription() + " and spoils your skirt. "); break; case VaginalWetness.SLICK: sb.Append("Your " + wettest.LongDescription() + " becomes all tingly and wet under your slutty skirt. "); break; } } if (wearer.gender == 0) { sb.Append("Despite your lack of features, you indeed feel arousal all over your body. "); } sb.Append(GlobalStrings.NewParagraph()); } return(sb.ToString()); }
public void Setup(PlayerMain player, V****a v****a) { this.v****a = v****a; BaseSetup(player); }