void CheckSOS() { if (buffer.Count != 9) { return; } for (int i = 0; i < 9; i++) { if (i < 3 || i > 5) { if (buffer[i] > 0.3f) { return; } } else { if (buffer[i] < 0.3f) { return; } } } Achievements.UnlockAchievement(Achievements.DISTRESS); }
public void RageReset() { game.data.Annoyance = 0; game.data.CPS = 0; //UpsPage game.data.StudCost = 20; game.data.StudIncrease = 2; game.data.ClassCost = 500; game.data.ClassIncrease = 100; game.data.FLCost = 1e6; game.data.FLIncrease = 210000; ups.StudCostText.text = "Cost: " + Methods.NotationMethod(game.data.StudCost, y: "F0") + " Annoyance"; ups.StudIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.StudIncrease, y: "F2") + " CPS"; ups.ClassCostText.text = "Cost: " + Methods.NotationMethod(game.data.ClassCost, y: "F0") + " Annoyance"; ups.ClassIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.ClassIncrease, y: "F2") + " CPS"; ups.FLCostText.text = "Cost: " + Methods.NotationMethod(game.data.FLCost, y: "F0") + " Annoyance"; ups.FLIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.FLIncrease, y: "F2") + " CPS"; //Final Tier game.data.BTCost = 1e15; game.data.BTIncrease = 3e14; game.data.BTIncreaseMulti = 1.07; game.data.TotalBT = 0; game.data.BTContribution = 0; ups.BTCostText.text = "Cost: " + Methods.NotationMethod(game.data.BTCost, y: "F0") + " Annoyance"; ups.BTIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.BTIncrease, y: "F2") + " CPS"; //Upgrades if (game.data.SUResetUnlocked == false) { game.data.BTIncreaseMulti = 1.07; game.data.BTRequriement = 50; game.data.NewBTMulti = 1.09; ups.BTRequirmentText.text = "Banish the Principal\n(requires at least " + Methods.NotationMethod(game.data.BPRequriement, y: "F0") + " BaT)"; ups.BTMultiText.text = "BaT Increase Multi\n" + Methods.NotationMethod(game.data.BTIncreaseMulti, y: "F2") + " -> " + Methods.NotationMethod(game.data.NewBTMulti, y: "F2"); } //Rage game.data.Raged++; game.data.Rage += (game.data.RageGained * game.data.RDouble); game.data.RageMulti = (game.data.RageMulti *= 0.02) + 1; game.data.RageGained = 0; RageMultiText.text = "x" + Methods.NotationMethodBD(game.data.RageMulti, y: "F2"); RageText.text = "You've built up " + Methods.NotationMethodBD(game.data.Rage, y: "F0") + " Rage"; RageGainText.text = "Gain " + Methods.NotationMethodBD(game.data.RageGained, y: "F0") + " Rage (x" + Methods.NotationMethod(game.data.RDouble, y: "F0") + ")"; //Achs if (game.data.AngryUnlocked == false) { ach.UnlockAchievement("A7"); } //Stats stats.TotalBTsText.text = "You've Bansished 0 Teachers"; //Persistent game.MoreTabsButton.SetActive(true); game.RageTextContainer.SetActive(true); StartCoroutine(DoRageCutsceen()); }
public override string GetDeathAnim(E_WeaponType weapon, E_DamageType type) { if (orochiUnlock) { Achievements.UnlockAchievement(14); } return("death"); }
public void Click() { game.data.Annoyance += 1; game.data.TotalAnnoyance += 1; if (!game.data.UnoUnlocked) { ach.UnlockAchievement("A1"); } if (!game.data.UpgradesPageUnlocked) { if (game.data.Annoyance >= 20) { game.UnlockUPs.SetActive(true); } } }
protected override void OnStart() { Game.Instance.NumberOfBarrels++; Player.Instance.AddExperience(Experience, 1); // of unlockAchievement if (Game.Instance.NumberOfBarrels >= 50) { Achievements.UnlockAchievement(0); } }
void ReturnAchievement() { if (PlayerPrefs.HasKey("laserino_return")) { Achievements.UnlockAchievement(Achievements.RETURN); } else { PlayerPrefs.SetInt("laserino_return", 1); } }
public void UnlockCombo(int comboIndex, E_ComboLevel comboLevel) { if ((E_ComboLevel)PlayerPrefs.GetInt("Combo " + comboIndex, (int)E_ComboLevel.One) < comboLevel) { PlayerPrefs.SetInt("Combo " + comboIndex, (int)comboLevel); } if (comboLevel == E_ComboLevel.Max) { Achievements.UnlockAchievement(3 + comboIndex); } }
public void checkGamesAchievement(int gamesCount) { if (Social.localUser.authenticated) { for (int i = 0; i < gamesPlayed.Count; i++) { if (gamesCount >= gamesPlayed[i].num) { Achievements.UnlockAchievement(gamesPlayed[i].id); } } } }
public void checkScoreAchievement(int score) { if (Social.localUser.authenticated) { for (int i = 0; i < scoreAchievement.Count; i++) { if (score >= scoreAchievement[i].num) { Achievements.UnlockAchievement(scoreAchievement[i].id); } } } }
IEnumerator EpilogueCoroutine() { fade.FadeIn(); yield return(new WaitForSeconds(1f)); Achievements.UnlockAchievement(Achievements.FINALE); yield return(new WaitForSeconds(4f)); fade.FadeOut(); yield return(new WaitForSeconds(2f)); Levels.LoadMenu(); }
public void Start(GuiManager manager) { Gui = manager; DefaultSpriteUI = manager.DefaultSpriteUI; SpriteB = DefaultSpriteUI.AddElement(new Vector2(GuiShopComboButtons.BScreenLeft(0), GuiShopComboButtons.BScreenBottom(0)), GuiShopComboButtons.BScreenWidth(0), GuiShopComboButtons.BScreenHeight(0), 9, GuiShopComboButtons.BUvLeft, GuiShopComboButtons.BUvBottom, GuiShopComboButtons.BUvWidth, GuiShopComboButtons.BUvHeight); SpriteC = DefaultSpriteUI.AddElement(new Vector2(GuiShopComboButtons.CScreenLeft(0), GuiShopComboButtons.CScreenBottom(0)), GuiShopComboButtons.CScreenWidth(), GuiShopComboButtons.CScreenHeight(), 9, GuiShopComboButtons.CUvLeft[0], GuiShopComboButtons.CUvBottom[0], GuiShopComboButtons.CUvWidth, GuiShopComboButtons.CUvHeight); if (Game.Instance.GameType != E_GameType.Survival) { Money = new GuiNumbers() { UvLeft = GuiShopNumbers.UvLeft, UvTop = GuiShopNumbers.UvTop, UvWidth = GuiShopNumbers.UvWidth, UvHeight = GuiShopNumbers.UvHeight, Sprites = new Sprite[] { DefaultSpriteUI.AddElement(new Vector2(GuiHealthNumbers.ScreenLeft + GuiHealthNumbers.ScreenWidth * 3, GuiHealthNumbers.ScreenBottom), GuiHealthNumbers.ScreenWidth, GuiHealthNumbers.ScreenHeight, 9, GuiShopNumbers.UvLeft, GuiShopNumbers.UvTop, GuiShopNumbers.UvWidth, GuiShopNumbers.UvHeight), DefaultSpriteUI.AddElement(new Vector2(GuiHealthNumbers.ScreenLeft + GuiHealthNumbers.ScreenWidth * 2, GuiHealthNumbers.ScreenBottom), GuiHealthNumbers.ScreenWidth, GuiHealthNumbers.ScreenHeight, 9, GuiShopNumbers.UvLeft, GuiShopNumbers.UvTop, GuiShopNumbers.UvWidth, GuiShopNumbers.UvHeight), DefaultSpriteUI.AddElement(new Vector2(GuiHealthNumbers.ScreenLeft + GuiHealthNumbers.ScreenWidth, GuiHealthNumbers.ScreenBottom), GuiHealthNumbers.ScreenWidth, GuiHealthNumbers.ScreenHeight, 9, GuiShopNumbers.UvLeft, GuiShopNumbers.UvTop, GuiShopNumbers.UvWidth, GuiShopNumbers.UvHeight), DefaultSpriteUI.AddElement(new Vector2(GuiHealthNumbers.ScreenLeft, GuiHealthNumbers.ScreenBottom), GuiHealthNumbers.ScreenWidth, GuiHealthNumbers.ScreenHeight, 9, GuiShopNumbers.UvLeft, GuiShopNumbers.UvTop, GuiShopNumbers.UvWidth, GuiShopNumbers.UvHeight), // DefaultSpriteUI.AddElement(new Vector2(GuiHealthNumbers.ScreenLeft[hardware] + GuiHealthNumbers.ScreenWidth[hardware] * 4, GuiHealthNumbers.ScreenBottom[hardware]),GuiHealthNumbers.ScreenWidth[hardware], GuiHealthNumbers.ScreenHeight[hardware], 9, GuiShopNumbers.UvLeft[hardware], GuiShopNumbers.UvTop[hardware], GuiShopNumbers.UvWidth[hardware], GuiShopNumbers.UvHeight[hardware]), } }; } Level = new GuiNumbers() { UvLeft = GuiShopNumbers.UvLeft, UvTop = GuiShopNumbers.UvTop, UvWidth = GuiShopNumbers.UvWidth, UvHeight = GuiShopNumbers.UvHeight, Sprites = new Sprite[] { DefaultSpriteUI.AddElement(new Vector2(GuiHealthLevel.ScreenLeft, GuiHealthLevel.ScreenBottom), GuiHealthLevel.ScreenWidth, GuiHealthLevel.ScreenHeight, 9, GuiShopNumbers.UvLeft, GuiShopNumbers.UvTop, GuiShopNumbers.UvWidth, GuiShopNumbers.UvHeight), } }; //Hide(); // of unlockAchievement if (Game.Instance.HealthLevel == E_HealthLevel.Max) { Achievements.UnlockAchievement(22); } }
private void ManageState() { var nextStates = state.GetNextStates(); for (int index = 0; index < nextStates.Length; index++) { if (Input.GetKeyDown(KeyCode.Alpha1 + index) || Input.GetKeyDown(KeyCode.Keypad1 + index)) { state = nextStates[index]; if (!String.IsNullOrEmpty(state.GetAchievement())) { achievementsScript.UnlockAchievement(state.GetAchievement()); } } } textComponent.fontStyle = FontStyles.Normal; textComponent.text = state.GetStateStory(); }
public void HandleAction(AgentAction a) { //Debug.Log("ComponentPlayer.HandleAction("+a); if (a is AgentActionAttack) { CurrentAttackAction = a as AgentActionAttack; Owner.WorldState.SetWSProperty(E_PropKey.E_ALERTED, true); } else if (a is AgentActionInjury) { Owner.WorldState.SetWSProperty(E_PropKey.E_ORDER, AgentOrder.E_OrderType.E_NONE); ComboProgress.Clear(); ClearBufferedOrder(); GuiManager.Instance.ShowComboProgress(ComboProgress); Game.Instance.Hits = 0; Game.Instance.NumberOfInjuries++; } else if (a is AgentActionDeath) { Owner.WorldState.SetWSProperty(E_PropKey.E_ORDER, AgentOrder.E_OrderType.E_NONE); ComboProgress.Clear(); ClearBufferedOrder(); GuiManager.Instance.ShowComboProgress(ComboProgress); Game.Instance.Hits = 0; Game.Instance.NumberOfDeath++; //Game.Instance.Score -= 50; Mission.Instance.EndOfMission(false); // of unlockAchievement if (Game.Instance.NumberOfDeath >= 100) { Achievements.UnlockAchievement(2); } else if (Game.Instance.NumberOfDeath >= 50) { Achievements.UnlockAchievement(1); } } }
void Start() { if (Game.Instance && Game.Instance.GameType == E_GameType.SinglePlayer) { Game.Instance.Save_Save(); } /*if (iPhoneSettings.generation == iPhoneGeneration.iPad1Gen) * { * Camera.mainCamera.orthographicSize = 1.28f; * ButtonGame.transform.parent.transform.localScale = new Vector3(0.75f, 0.75f, 0.75f); * ButtonGame.transform.parent.transform.position = new Vector3(0, -0.4f, 0); * }*/ Music = GetComponent <AudioSource>(); StartCoroutine(FadeInMusic(4)); MatPrev = ButtonPrev.GetComponentInChildren <SkinnedMeshRenderer>().material; MatNext = ButtonNext.GetComponentInChildren <SkinnedMeshRenderer>().material; MatRew = ButtonRewind.GetComponentInChildren <SkinnedMeshRenderer>().material; MatPrev.SetColor("_Color", new Color(1, 1, 1, 0.2f)); MatRew.SetColor("_Color", new Color(1, 1, 1, 0.2f)); // Counter.animation.Play("CounterIdle"); Background.GetComponent <Animation>().Play(); BackgroundButtons.GetComponent <Animation>().Play(); ButtonGame.GetComponent <Animation>().Play(); ButtonNext.GetComponent <Animation>().Play(); ButtonPrev.GetComponent <Animation>().Play(); ButtonRewind.GetComponent <Animation>().Play(); Counter.GetComponent <Animation>().Play(); Counter8.GetComponent <Animation>().Play(); // of unlockAchievement if (Game.Instance.CurrentLevel == "comics08") { if (Game.Instance.GameDifficulty == E_GameDifficulty.Easy) { PlayerPrefs.SetInt("Easy", 1); Achievements.UnlockAchievement(9); } else if (Game.Instance.GameDifficulty == E_GameDifficulty.Hard) { PlayerPrefs.SetInt("Hard", 1); Achievements.UnlockAchievement(10); } else { PlayerPrefs.SetInt("Normal", 1); } if (PlayerPrefs.GetInt("Easy", 0) + PlayerPrefs.GetInt("Normal", 0) + PlayerPrefs.GetInt("Hard", 0) == 3) { Achievements.UnlockAchievement(23); } } if (Game.Instance.GameDifficulty == E_GameDifficulty.Normal && Game.Instance.GameType == E_GameType.SinglePlayer) { switch (Application.loadedLevelName) { case "Comics02": Achievements.UnlockAchievement(15); break; case "Comics03": Achievements.UnlockAchievement(16); break; case "Comics04": Achievements.UnlockAchievement(17); break; case "Comics05": Achievements.UnlockAchievement(18); break; case "Comics06": Achievements.UnlockAchievement(19); break; case "Comics07": Achievements.UnlockAchievement(20); break; case "Comics08": Achievements.UnlockAchievement(21); break; } } }
// Should only be used from the interpreter public void UnlockAchievement(int id) { achiever.UnlockAchievement(id); }
public void reportAchievements(string id) { Achievements.UnlockAchievement(id); }
public void SetHitsCount(int hits, bool blink = true) { if (On == false || ComboMessageOn == true) { return; } if (hits == 0) { GuiManager.StopCoroutine("BlinkSprite"); if (SpriteHitsMessage.hidden == false) { GuiManager.StartCoroutine(DisappearSprite(SpriteHitsMessage, 0.2f)); } if (SpriteHitNumbers.Sprites[0].hidden == false) { GuiManager.StartCoroutine(DisappearSprite(SpriteHitNumbers.Sprites[0], 0.2f)); } if (SpriteHitNumbers.Sprites[1].hidden == false) { GuiManager.StartCoroutine(DisappearSprite(SpriteHitNumbers.Sprites[1], 0.2f)); } } else { // of unlockAchievement if (hits == 10) { Achievements.UnlockAchievement(11); } else if (hits == 50) { Achievements.UnlockAchievement(12); } else if (hits == 100) { Achievements.UnlockAchievement(13); } if (hits > 99) { hits = 99; } //Debug.Log("show sprites"); if (SpriteHitsMessage.hidden) { GuiManager.StartCoroutine(ShowSprite(SpriteHitsMessage, 0.2f)); } if (blink) { GuiManager.StartCoroutine(BlinkSprite(SpriteHitsMessage, 1.8f, 10, 1, 0.0f, GuiCombatProgress.HScreenWidth, GuiCombatProgress.HScreenHeight)); } int number = hits % 10; int tents = hits / 10; if (SpriteHitNumbers.Sprites[0].hidden) { GuiManager.StartCoroutine(ShowSprite(SpriteHitNumbers.Sprites[0], 0.2f)); } SpriteHitNumbers.Sprites[0].lowerLeftUV = DefaultSpriteUI.PixelCoordToUVCoord(GuiHitNumbers.Instance.UvLeft + GuiHitNumbers.Instance.UvWidth * number, GuiHitNumbers.Instance.UvTop); if (blink) { GuiManager.StartCoroutine(BlinkSprite(SpriteHitNumbers.Sprites[0], 1.6f, 6, 4, 0.1f, GuiHitNumbers.Instance.ScreenWidth, GuiHitNumbers.Instance.ScreenHeight)); } if (hits > 9) { if (SpriteHitNumbers.Sprites[1].hidden) { GuiManager.StartCoroutine(ShowSprite(SpriteHitNumbers.Sprites[1], 0.2f)); } SpriteHitNumbers.Sprites[1].lowerLeftUV = DefaultSpriteUI.PixelCoordToUVCoord(GuiHitNumbers.Instance.UvLeft + GuiHitNumbers.Instance.UvWidth * tents, GuiHitNumbers.Instance.UvTop); if (blink) { GuiManager.StartCoroutine(BlinkSprite(SpriteHitNumbers.Sprites[1], 1.6f, 6, 4, 0.1f, GuiHitNumbers.Instance.ScreenWidth, GuiHitNumbers.Instance.ScreenHeight)); } } } }
public void BuyUpgrade(string upgradeID) { switch (upgradeID) { case "UP1": if (game.data.Annoyance >= game.data.StudCost) { game.data.CPS += game.data.StudIncrease; game.data.StudIncrease *= 1.07; game.data.Annoyance -= game.data.StudCost; if (game.data.ACDownUnlocked == true) { game.data.StudCost *= 1.07; } else { game.data.StudCost *= 1.08; } StudCostText.text = "Cost: " + Methods.NotationMethod(game.data.StudCost, y: "F0") + " Annoyance"; StudIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.StudIncrease, y: "F2") + " CPS"; if (game.data.AutoUnlocked == false) { ach.UnlockAchievement("A4"); } } break; case "UP2": if (game.data.Annoyance >= game.data.ClassCost) { game.data.CPS += game.data.ClassIncrease; game.data.ClassIncrease *= 1.05; game.data.Annoyance -= game.data.ClassCost; if (game.data.ACDownUnlocked == true) { game.data.ClassCost *= 1.07; } else { game.data.ClassCost *= 1.08; } ClassCostText.text = "Cost: " + Methods.NotationMethod(game.data.ClassCost, y: "F0") + " Annoyance"; ClassIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.ClassIncrease, y: "F2") + " CPS"; if (game.data.LegalUnlocked == false) { ach.UnlockAchievement("A5"); } } break; case "UP3": if (game.data.Annoyance >= game.data.FLCost) { game.data.CPS += game.data.FLIncrease; game.data.FLIncrease *= 1.05; game.data.Annoyance -= game.data.FLCost; if (game.data.ACDownUnlocked == true) { game.data.FLCost *= 1.07; } else { game.data.FLCost *= 1.08; } FLCostText.text = "Cost: " + Methods.NotationMethod(game.data.FLCost, y: "F0") + " Annoyance"; FLIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.FLIncrease, y: "F2") + " CPS"; } break; //Final Tier case "UP4": if (game.data.Annoyance >= game.data.BTCost) { game.data.TotalBT++; game.data.CPS += game.data.BTIncrease; game.data.BTContribution += game.data.BTIncrease; game.data.BTIncrease *= game.data.BTIncreaseMulti; game.data.Annoyance -= game.data.BTCost; if (game.data.ACDownUnlocked == true) { game.data.BTCost *= 1.07; } else { game.data.BTCost *= 1.08; } game.data.TotalBT++; BTCostText.text = "Cost: " + Methods.NotationMethod(game.data.BTCost, y: "F0") + " Annoyance"; BTIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.BTIncrease, y: "F2") + " CPS"; } break; //Rage case "UP5": if (game.data.RACChangeUnlocked == false) { if (game.data.Rage >= game.data.BPCost) { game.data.TotalBP++; game.data.CPS += game.data.BPIncrease; game.data.BPContribution += game.data.BPIncrease; game.data.BPIncrease *= 1.07; game.data.Rage -= game.data.BPCost; game.data.BPCost *= game.data.BPCostMulti; BPCostText.text = "Cost: " + Methods.NotationMethod(game.data.BPCost, y: "F0") + " RAGE"; BPIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.BPIncrease, y: "F2") + " CPS"; } } if (game.data.RACChangeUnlocked == true) { if (game.data.Annoyance >= game.data.BPCost2) { game.data.TotalBP++; game.data.CPS += game.data.BPIncrease; game.data.BPContribution += game.data.BPIncrease; game.data.BPIncrease *= 1.07; game.data.Annoyance -= game.data.BPCost2; game.data.BPCost *= game.data.BPCostMulti; BPCostText.text = "Cost: " + Methods.NotationMethodBD(game.data.BPCost2, y: "F0") + " Annoyance"; BPIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.BPIncrease, y: "F2") + " CPS"; } } break; case "UP6": if (game.data.Rage >= game.data.FPCost) { game.data.TotalFP++; game.data.CPS += game.data.FPIncrease; game.data.FPContribution += game.data.FPIncrease; game.data.FPIncrease *= 1.07; game.data.Rage -= game.data.FPCost; game.data.FPCost *= game.data.FPCostMulti; FPCostText.text = "Cost: " + Methods.NotationMethod(game.data.FPCost, y: "F0") + " RAGE"; FPIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.FPIncrease, y: "F2") + " CPS"; } break; //Upgrades case "UP4UP": if (game.data.TotalBT >= game.data.BTRequriement) { game.data.Annoyance = 0; game.data.BTCost = 1e15; game.data.BTIncrease = 3e14; game.data.TotalBT = 0; game.data.CPS -= game.data.BTContribution; game.data.BTContribution = 0; game.data.BTIncreaseMulti += 0.02; game.data.BTRequriement *= 5; game.data.NewBTMulti += 0.02; BTCostText.text = "Cost: " + Methods.NotationMethod(game.data.BTCost, y: "F0") + " Annoyance"; BTIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.BTIncrease, y: "F2") + " CPS"; BTRequirmentText.text = "Cost: Reset Banish a Teacher\n(requires at least " + Methods.NotationMethod(game.data.BTRequriement, y: "F0") + " BaT)"; BTMultiText.text = "BaT Increase Multi\n" + Methods.NotationMethod(game.data.BTIncreaseMulti, y: "F2") + " -> " + Methods.NotationMethod(game.data.NewBTMulti, y: "F2"); stats.TotalBTsText.text = "You've Bansished 0 Teachers"; } break; //RageUps case "UP5UP": if (game.data.TotalBP >= game.data.BPRequriement) { game.data.Annoyance = 0; game.data.BPCost = 10; game.data.BPIncrease = 1e30; game.data.TotalBP = 0; game.data.CPS -= game.data.BPContribution; game.data.BPContribution = 0; game.data.BPCostMulti -= 0.01; game.data.BPRequriement *= 5; game.data.NewBPMulti -= 0.01; BPCostText.text = "Cost: " + Methods.NotationMethod(game.data.BPCost, y: "F0") + " RAGE"; BPIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.BPIncrease, y: "F2") + " CPS"; BPRequirmentText.text = "Cost: Reset Break ALL Pencils\n(requires at least " + Methods.NotationMethod(game.data.BPRequriement, y: "F0") + " BAP)"; BPMultiText.text = "BAP Cost Multi\n" + Methods.NotationMethod(game.data.BPCostMulti, y: "F2") + " -> " + Methods.NotationMethod(game.data.NewBPMulti, y: "F2"); stats.TotalBPsText.text = "You've Broke 0 Pencils"; } break; case "UP6UP": if (game.data.TotalFP >= game.data.FPRequriement) { game.data.Annoyance = 0; game.data.FPCost = 100; game.data.FPIncrease = 1e55; game.data.TotalFP = 0; game.data.CPS -= game.data.FPContribution; game.data.FPContribution = 0; game.data.FPCostMulti -= 0.01; game.data.FPRequriement *= 5; game.data.NewFPMulti -= 0.01; FPCostText.text = "Cost: " + Methods.NotationMethod(game.data.FPCost, y: "F0") + " RAGE"; FPIncreaseText.text = "Gain: " + Methods.NotationMethod(game.data.FPIncrease, y: "F2") + " CPS"; FPRequirmentText.text = "Cost: Reset Force Pens\n(requires at least " + Methods.NotationMethod(game.data.FPRequriement, y: "F0") + " FP)"; FPMultiText.text = "FP Cost Multi\n" + Methods.NotationMethod(game.data.FPCostMulti, y: "F2") + " -> " + Methods.NotationMethod(game.data.NewFPMulti, y: "F2"); stats.TotalFPsText.text = "You've Made 0 Pens"; } break; } }