private string ReductoButt(ButtData oldData, bool nothingHappened) { StringBuilder sb = new StringBuilder(); sb.Append("You smear the foul-smelling paste onto your " + oldData.ShortDescription() + ". It feels cool at first but rapidly warms " + "to an uncomfortable level of heat." + GlobalStrings.NewParagraph()); if (nothingHappened) { sb.Append("Strangely, nothing seems to happen. What a waste!"); } if (oldData.size - size > 3) { sb.Append("Within seconds you feel noticeably lighter, and a quick glance shows your ass is significantly smaller."); } else if (oldData.size - size == 3) { sb.Append("You feel much lighter as your " + ShortDescription() + " jiggles slightly, adjusting to its smaller size."); } else { sb.Append("After a few seconds your " + ShortDescription() + " has shrunk to a much smaller size!"); } return(sb.ToString()); }
// This method will set the current ButtData to the selected ButtData if it's unlocked public void SetButt(int currentButtIndex) { if (AllButtz[currentButtIndex].isUnlocked) { ActiveButt = AllButtz[currentButtIndex]; } }
protected override string ButtChangeText(Creature target, ButtData oldButt) { string verb = target.butt.size - oldButt.size > 0 ? "enlarge" : "shrink"; return("You wiggle around in your gown, the pleasant feeling of flower petals rubbing against your skin washes over you." + " The feeling settles on your " + oldButt.ShortDescription() + "." + Environment.NewLine + "You feel it slowly " + verb + ". <b>You now have a " + target.build.ButtShortDescription() + ".</b>" + Environment.NewLine); }
protected bool ChangeButt(Creature target, StringBuilder sb) { ButtData buttData = target.butt.AsReadOnlyData(); bool changed = false; if (target.butt.size < 5) { changed = target.butt.GrowButt(1) != 0; } else if (target.butt.size > 5) { changed = target.butt.ShrinkButt(1) != 0; } if (changed) { sb.Append(ButtChangeText(target, buttData)); return(true); } else { return(false); } }
public static void Open(ButtData buttData) { ButtDataEditorWindow window = GetWindow <ButtDataEditorWindow>("Butt Data Editor"); }
protected override string GrewButtText(Creature target, ButtData oldButt) { return(GlobalStrings.NewParagraph() + "A sensation of being unbalanced makes it difficult to walk. " + "You pause, paying careful attention to your new center of gravity before understanding dawns on you - your ass has grown!"); }
public static bool OpenEditor(int instanceID, int line) { ButtData buttData = EditorUtility.InstanceIDToObject(instanceID) as ButtData; return(false); }
protected abstract string GrewButtText(Creature target, ButtData oldButt);
public void SetButt(ButtData newButt) { selectedButtSprite.sprite = newButt.buttSprite; CloseButtSelector(); }
protected abstract string ButtChangeText(Creature target, ButtData oldButt);