public override void Interact(Action action, Clickable target) { if (action == Action.MAKE_POTION) { AudioSource audioS = GetComponent <AudioSource>(); if (!bucketAtCauldron.activeSelf) { // NO WATER NextState = Gal02State.IDLE; audioS.clip = angryTrack; audioS.Play(); return; } Cauldron c = (Cauldron)target; if (!c.IsFull()) { // NOT FULL audioS.clip = angryTrack; audioS.Play(); NextState = Gal02State.IDLE; return; } audioS.clip = yesTrack; audioS.Play(); NextState = Gal02State.APROACHING_CAULDRON; } else if (action == Action.GIVE_POTION && potionIsReady) { happyKid.SetActive(true); dyingKid.SetActive(false); GoToNextLevel(); } }
private void OnTriggerEnter(Collider otherCollider) { Cauldron cauldron = otherCollider.GetComponent <Cauldron>(); if (cauldron != null && cauldron.GetPotionType() != PotionType.NONE) { type = cauldron.GetPotionType(); cauldron.Reset(); Debug.Log("The cauldron is of type: " + cauldron.GetPotionType()); Debug.Log("This bottle is now of type " + type); switch (type) { case PotionType.GREEN: ChangeColor("greenMat"); break; case PotionType.BLUE: ChangeColor("blueMat"); break; case PotionType.RED: ChangeColor("redMat"); break; case PotionType.MISTAKE: ChangeColor("mistake"); break; default: ChangeColor("default"); break; } } }
private void SetupCauldron(Vector2 loc) { Cauldron cauldron = GameObject.Instantiate(Resources.Load <GameObject>("Prefabs/Cauldron")).GetComponent <Cauldron>(); cauldron.Initialize(); cauldron.transform.position = GV.GetRandomSpotNear(loc, 1); }
public void addForFoodBuffs(Cauldron Cauldron) { if (item is StardewValley.Object) { StardewValley.Object csObject = item as StardewValley.Object; string[] objectDescription = Game1.objectInformation[csObject.ParentSheetIndex].Split('/'); if (Convert.ToInt32(objectDescription[2]) > 0) { string[] whatToBuff = (string[])((objectDescription.Length > 7) ? ((object)objectDescription[7].Split(' ')) : ((object)new string[12] { "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" })); csObject.ModifyItemBuffs(whatToBuff); //Buff buff = new Buff(Convert.ToInt32(whatToBuff[0]), Convert.ToInt32(whatToBuff[1]), Convert.ToInt32(whatToBuff[2]), Convert.ToInt32(whatToBuff[3]), Convert.ToInt32(whatToBuff[4]), Convert.ToInt32(whatToBuff[5]), Convert.ToInt32(whatToBuff[6]), Convert.ToInt32(whatToBuff[7]), Convert.ToInt32(whatToBuff[8]), Convert.ToInt32(whatToBuff[9]), Convert.ToInt32(whatToBuff[10]), (whatToBuff.Length > 11) ? Convert.ToInt32(whatToBuff[11]) : 0, duration, objectDescription[0], objectDescription[4]); Cauldron.addToCauldron("farming", Convert.ToInt32(whatToBuff[0])); Cauldron.addToCauldron("mining", Convert.ToInt32(whatToBuff[2])); Cauldron.addToCauldron("fishing", Convert.ToInt32(whatToBuff[1])); Cauldron.addToCauldron("foraging", Convert.ToInt32(whatToBuff[5])); Cauldron.addToCauldron("attack", (whatToBuff.Length > 11) ? Convert.ToInt32(whatToBuff[11]) : 0); Cauldron.addToCauldron("defense", Convert.ToInt32(whatToBuff[10])); Cauldron.addToCauldron("maxEnergy", Convert.ToInt32(whatToBuff[7]) / 10); Cauldron.addToCauldron("luck", Convert.ToInt32(whatToBuff[4])); Cauldron.addToCauldron("magneticRadius", Convert.ToInt32(whatToBuff[8]) / 32); Cauldron.addToCauldron("speed", Convert.ToInt32(whatToBuff[9])); } } }
IEnumerator DisplayMessageRoutine(int message) { yield return(new WaitForSeconds(3)); displayCanvas.SetActive(true); if (message > 0) { displayText.SetText("You crafted the eternity potion!"); //TODO make this potion damage you like a fire for as long as it's in your inventory } else { displayText.SetText("Nothing happened..."); } yield return(new WaitForSeconds(3)); displayText.SetText(""); displayCanvas.SetActive(false); //give the camera back to the player. Cauldron cauldron = GetComponent <Cauldron>(); cauldron.cameraChanger.ChangeCam(1); setCamera.AdjustCameraForPlaying(); Global.USER_INPUT_ENABLED = true; //let the player interact again. Interacted = false; }
private void FindReferences() { cauldron = FindObjectOfType <Cauldron>(); inventory = FindObjectOfType <Inventory>(); mapGenerator = FindObjectOfType <TracklessGenerator.MapGenerator>(); maxPassengersText.text = " / " + mapGenerator.numberOfPassengers; }
void Start() { turn = false; phase = Phase.DRAW; for (int i = 0; i < 6; i++) { cauldrons[i] = new Cauldron(); } }
public CauldronStatisticsRecorder(ICauldronSettings settings, ILog log) { this.log = log; machineName = Environment.MachineName; applicationName = settings.GetApplicationName(); Enabled = settings.IsEnabled(); if (Enabled && !Cauldron.IsInitialized(applicationName)) { Cauldron.Init(applicationName, log); } }
void Awake() { if (Instance == null) { Instance = this; } else { Debug.Log("Duplicate Cauldron instance! Destroy! Destroy!"); Destroy(this.gameObject); } }
private void Update() { if (NextState == Gal02State.APROACHING_CAULDRON) { RandomMovement rm = GetComponent <RandomMovement>(); if (rm) { rm.StopAllCoroutines(); } } if (NextState != Gal02State.NONE && NextState != CurrentState) { CurrentState = NextState; NextState = Gal02State.NONE; } if (CurrentState == Gal02State.APROACHING_CAULDRON) { MoveTowardsTarget(cauldronTarget.transform.position); } if (CurrentState == Gal02State.CHECKING_POTION) { AudioSource audioS = GetComponent <AudioSource>(); Cauldron c = FindObjectOfType <Cauldron>(); if (!bucketAtCauldron.activeSelf) { // NO WATER NextState = Gal02State.IDLE; audioS.clip = angryTrack; } else if (!c.CheckPotion()) { popupWrong.SetActive(true); popupWrong.GetComponentInChildren <Animator>().SetTrigger("play"); NextState = Gal02State.IDLE; audioS.clip = angryTrack; } else { popupOk.SetActive(true); popupOk.GetComponentInChildren <Animator>().SetTrigger("play"); potionIsReady = true; NextState = Gal02State.DONE; audioS.clip = yesTrack; } } WalkAnimation(); previousPosition = transform.position; }
public Ingredient(Item item, int butterfliesChance = 0, int boomChance = 0, int garlicOil = 0, int monsterMusk = 0, int debuffImmunity = 0, int farming = 0, int mining = 0, int fishing = 0, int foraging = 0, int attack = 0, int defense = 0, int maxEnergy = 0, int luck = 0, int magneticRadius = 0, int speed = 0, int cauldronLuck = 0, int duration = 0) { buffList = new List <int>(); foreach (int buffIndex in Enum.GetValues(typeof(Cauldron.buffs))) { buffList.Add(0); } debuffList = new List <int>(); foreach (int debuffIndex in Enum.GetValues(typeof(Cauldron.debuffs))) { debuffList.Add(0); } this.item = item; if (butterfliesChance > 0) { this.butterflies += butterfliesChance * Cauldron.butterfliesConst; } if (boomChance > 0) { this.boom += boomChance * Cauldron.boomConst; } this.cauldronLuck += cauldronLuck * Cauldron.cauldronLuckConst; this.duration += duration * Cauldron.durationConst; using (Cauldron Cauldron = new Cauldron(this)) { Cauldron.addToCauldron(nameof(garlicOil), garlicOil); Cauldron.addToCauldron(nameof(monsterMusk), monsterMusk); Cauldron.addToCauldron(nameof(debuffImmunity), debuffImmunity); Cauldron.addToCauldron(nameof(farming), farming); Cauldron.addToCauldron(nameof(mining), mining); Cauldron.addToCauldron(nameof(fishing), fishing); Cauldron.addToCauldron(nameof(foraging), foraging); Cauldron.addToCauldron(nameof(attack), attack); Cauldron.addToCauldron(nameof(defense), defense); Cauldron.addToCauldron(nameof(maxEnergy), maxEnergy); Cauldron.addToCauldron(nameof(luck), luck); Cauldron.addToCauldron(nameof(magneticRadius), magneticRadius); Cauldron.addToCauldron(nameof(speed), speed); addForCategory(Cauldron); addForFoodBuffs(Cauldron); addForQuality(); addForEdibility(); addForMoneyValue(); } }
private void Awake() { rb = GetComponent <Rigidbody>(); collider = GetComponent <BoxCollider>(); rb.maxAngularVelocity = maxAngularVelocity; trainManager = GetComponent <TrainManager>(); snowRide = GetComponentInChildren <SnowRide>(); cauldron = GetComponent <Cauldron>(); trainSoundController = GetComponentInChildren <TrainSoundController>(); }
void Start() { Move(1); Ammo = 1; AmmoPrefabs = new GameObject[3]; AmmoPrefabs [0] = Resources.Load <GameObject> ("Prefabs/Bread_Standard"); AmmoPrefabs [1] = Resources.Load <GameObject> ("Prefabs/Chicken_Slowing"); AmmoPrefabs [2] = Resources.Load <GameObject> ("Prefabs/Spicy_Swiper"); currCauld = GameObject.Find("Cauldron Bread").GetComponent <Cauldron>(); StartCoroutine(HighlightDelayed(.1f)); }
private void OnTriggerEnter(Collider otherCollider) { Tool collidedTool = otherCollider.GetComponent <Tool>(); if (collidedTool != null && collidedTool.toolType == toolType && collidedTool.IsActiveTool()) { collidedTool.DeactivateTool(); HitByTool(); } Cauldron collidedCauldron = otherCollider.GetComponent <Cauldron>(); if (collidedCauldron != null) { OnCauldronContact(); } }
public void ButtonTextİnitial() { CauldBr = GameObject.Find("Cauldron Bread").GetComponent <Cauldron>(); CauldCh = GameObject.Find("Cauldron Chicken").GetComponent <Cauldron>(); CauldSp = GameObject.Find("Cauldron Spicy").GetComponent <Cauldron>(); WallUpgradeButton_ = GameObject.Find("WallUpgradeButton").GetComponent <Button>(); WallUpgradeLevel_ = GameObject.Find("WallUpgradeLevel").GetComponent <Text>(); BreadUpgradeButton_ = GameObject.Find("BreadUpgradeButton").GetComponent <Button>(); BreadUpgradeLevel_ = GameObject.Find("BreadUpgradeLevel").GetComponent <Text>(); ChickenUpgradeButton_ = GameObject.Find("ChickenUpgradeButton").GetComponent <Button>(); ChickenUpgradeLevel_ = GameObject.Find("ChickenUpgradeLevel").GetComponent <Text>(); SpicyUpgradeButton_ = GameObject.Find("SpicyUpgradeButton").GetComponent <Button>(); SpicyUpgradeLevel_ = GameObject.Find("SpicyUpgradeLevel").GetComponent <Text>(); ReloadText(); }
public override void Interact(Action action, Clickable target) { if (action == Action.PICKUP_PLANT) { Cauldron c = FindObjectOfType <Cauldron>(); if (!c.IsFull()) { if (target.GetType() == typeof(Plant1)) { NextState = OldManState02.GOING1; } else if (target.GetType() == typeof(Plant2)) { NextState = OldManState02.GOING2; } else { NextState = OldManState02.GOING3; } } } }
public void RecordSystemMetrics(SystemMetrics metrics) { if (!Enabled) { return; } try { Cauldron.CreateRecord(applicationName, "systemMetrics") .AddField("host", machineName) .AddField("thrd", metrics.UsedThreads) .AddField("iocp", metrics.UsedIocpThreads) .AddField("wr", metrics.WorkingRequests) .AddField("rps", (int)metrics.RequestsPerSecond) .Commit(); } catch (Exception exc) { log.Warn(exc); } }
public void RecordAction(string action, string method, int statusCode, TimeSpan time, string route) { if (!Enabled) { return; } try { Cauldron.CreateRecord(applicationName, action) .AddField("met", method, true) .AddField("code", statusCode) .AddField("time", time.Ticks) .AddField("host", machineName) .AddField("rt", route, true) .Commit(); } catch (Exception exc) { log.Warn(exc); } }
private bool TryCauldron() { if (heldObject.GetComponent <FlaskContents>().contents == null) { return(false); } foreach (Collider2D hit in GetCollidersFacing()) { Cauldron cauldron = hit.GetComponent <Cauldron>(); if (cauldron != null) { if (cauldron.acceptingContents) { heldObject.isCarried = false; StartCoroutine(FlaskToCauldron(cauldron, heldObject)); heldObject = null; OnPour.Invoke(); } return(true); } } return(false); }
// Use this for initialization void Start() { cauldron = FindObjectOfType <Cauldron>(); }
// Use this for initialization void Start() { _cauldron = GameObject.FindGameObjectWithTag("Cauldron").GetComponent <Cauldron>(); }
public void addForCategory(Cauldron Cauldron) { switch (item.Category) { case StardewValley.Object.artisanGoodsCategory: Cauldron.addToCauldron("farming", 1); break; case StardewValley.Object.baitCategory: Cauldron.addToCauldron("fishing", 1); break; case StardewValley.Object.CookingCategory: Cauldron.addToCauldron("maxEnergy", 1); break; case StardewValley.Object.CraftingCategory: Cauldron.addToCauldron("defense", 1); break; case StardewValley.Object.EggCategory: Cauldron.addToCauldron("farming", 1); break; case StardewValley.Object.fertilizerCategory: Cauldron.addToCauldron("farming", 1); break; case StardewValley.Object.FishCategory: Cauldron.addToCauldron("fishing", 1); break; case StardewValley.Object.flowersCategory: Cauldron.addToCauldron("foraging", 1); break; case StardewValley.Object.FruitsCategory: Cauldron.addToCauldron("farming", 1); break; case StardewValley.Object.GemCategory: Cauldron.addToCauldron("mining", 1); break; case StardewValley.Object.GreensCategory: Cauldron.addToCauldron("foraging", 1); break; case StardewValley.Object.ingredientsCategory: Cauldron.addToCauldron("maxEnergy", 1); break; case StardewValley.Object.junkCategory: this.boom += 0.2; break; case StardewValley.Object.MilkCategory: Cauldron.addToCauldron("farming", 1); break; case StardewValley.Object.mineralsCategory: Cauldron.addToCauldron("mining", 1); break; case StardewValley.Object.monsterLootCategory: Cauldron.addToCauldron("attack", 1); break; case StardewValley.Object.SeedsCategory: Cauldron.addToCauldron("farming", 1); break; case StardewValley.Object.syrupCategory: Cauldron.addToCauldron("farming", 1); break; case StardewValley.Object.tackleCategory: Cauldron.addToCauldron("fishing", 1); break; case StardewValley.Object.VegetableCategory: Cauldron.addToCauldron("farming", 1); break; } }
private void Start() { _cauldron = GetComponentInParent <Cauldron>(); }
protected override void Awake() { base.Awake(); m_cauldronFX = GetComponent <Cauldron>(); }
private IEnumerator FlaskToCauldron(Cauldron cauldron, CarryEnabler c) { cauldron.TakePotion(c.GetComponent <FlaskContents>()); Destroy(c.gameObject); yield break; }
private void Awake() { Instance = this; }
// Use this for initialization void Start() { book = FindObjectOfType <Book>(); shelf = FindObjectOfType <Shelf>(); cauldron = FindObjectOfType <Cauldron>(); }
public void OnEndDrag(PointerEventData eventData) { // hide the tooltip showTooltip = false; // set the object's scale back to default transform.localScale = new Vector3 (1, 1, 1); itemBeingDragged = null; GetComponent<CanvasGroup> ().blocksRaycasts = true; if (transform.parent == startParent) { transform.position = startPosition; } // if object is dropped into the cauldron if (transform.parent.name == "CauldronSlot") { database = GameObject.FindGameObjectWithTag("Item Database").GetComponent<ItemDatabase> (); inventory = GameObject.FindGameObjectWithTag("Inventory").GetComponent<Inventory>(); cauldron = GameObject.FindGameObjectWithTag("Cauldron").GetComponent<Cauldron>(); item = database.items[itemID]; cauldron.potionIngredients.Add(item); DestroyObject (gameObject); inventory.RemoveItem(itemID); // remove dropped ingredient from inventory startParent.GetComponent<Slot>().FillSlot (); cauldron.UpdateCountLabels(); soundEffect = Instantiate (ingredientDroppedSound).gameObject; Destroy (soundEffect, 3); } }
IEnumerator SceneLoader(SaveData data) { AsyncOperation scene = SceneManager.LoadSceneAsync(data.currentScene, LoadSceneMode.Single); while (!scene.isDone) { yield return(null); } Time.timeScale = 1; if (GameObject.FindObjectOfType <HouseAudioController>() != null) { GameObject.FindObjectOfType <HouseAudioController>().startPlaying = true; } Scene check = SceneManager.GetSceneByName(data.currentScene); if (check.IsValid()) { player.Status = data.playerStatus; if (player.Status.Count > 0) { for (int i = 0; i < player.Status.Count(); i++) { player.RestartTimers(player.Status[i], data.timers[i]); } } InputManager im = GameObject.FindObjectOfType <InputManager>(); im.paused = false; im.keybinds = data.keybinds; im.LoadKeybinds(); Wardrobe wardrobe = GameObject.FindObjectOfType <Wardrobe>(); if (wardrobe != null) { wardrobe.LoadCostume(data.currentCostume); wardrobe.Unlocked = data.unlockedCostumes; } rl.brewingIngredients = data.cauldronContents; rl.ingredientCount = data.ingredientCount; for (int i = 0; i < data.ingredNames.Count; i++) { rl.knownAttributes.Add(data.ingredNames[i], data.knownAtts[i]); } Cauldron cauldron = GameObject.FindObjectOfType <Cauldron>(); if (cauldron != null) { cauldron.UpdateText(); } bm.Pot = data.brewingPotion; bm.BrewTime = data.brewingTime; bm.CurrentTime = data.currentTime; if (bm.Brewing == 1) { bm.Begin(bm.BrewTime, bm.Pot); } garden.plots.Clear(); for (int i = 0; i < data.gardenPlots.Count; i++) { garden.plots.Add(data.gardenPlots[i], data.gardenData[i]); } List <string> keys = garden.plots.Keys.ToList(); foreach (string s in keys) { if (SceneManager.GetActiveScene().name.Equals(garden.plots[s].plotScene)) { SpriteRenderer[] renderers = GameObject.Find(s).GetComponentsInChildren <SpriteRenderer>(); for (int i = 1; i < 4; i++) { renderers[i].sprite = Resources.LoadAll <Sprite>("Plants/" + garden.plots[s].type)[garden.plots[s].index]; } } } mc.Hour = data.hour; mc.Minutes = data.minute; mc.Days = data.day; mc.DayPart = data.dayPart; mc.CurrentMoonPhase = mc.Days % 6; mc.moonPhase.sprite = mc.moonCycleSprites[mc.CurrentMoonPhase]; if (mc.Hour >= 18 || mc.Hour < 6) { mc.timeImage.sprite = mc.timeOfDay[3]; } else if (mc.Hour >= 6 && mc.Hour < 10) { mc.timeImage.sprite = mc.timeOfDay[0]; } else if (mc.Hour >= 10 && mc.Hour < 14) { mc.timeImage.sprite = mc.timeOfDay[1]; } else if (mc.Hour >= 14 && mc.Hour < 18) { mc.timeImage.sprite = mc.timeOfDay[2]; } npcs.npcData.Clear(); for (int i = 0; i < data.npcNames.Count; i++) { npcs.npcData.Add(data.npcNames[i], data.npcInfo[i]); } npcs.npcQueue.Clear(); for (int i = 0; i < data.schedules.Count; i++) { npcs.npcQueue.Add(data.schedules[i], data.scheduleNames[i]); } npcs.NPCQuestFlags.Clear(); for (int i = 0; i < data.npcNames2.Count; i++) { npcs.NPCQuestFlags.Add(data.npcNames2[i], data.questFlags[i]); } npcs.CurrentMap = data.currentMap; npcs.LoadNPCS(); npcs.gaveHint = data.gaveHint; GameObject.FindObjectOfType <ShrineManager>().endNature = data.endNature; GameObject.FindObjectOfType <ShrineManager>().endOrder = data.endOrder; GameObject.FindObjectOfType <ShrineManager>().endSocial = data.endSocial; GameObject.FindObjectOfType <BookManager>().potionDiscovery.Clear(); for (int i = 0; i < data.discoveredKeys.Count; i++) { GameObject.FindObjectOfType <BookManager>().potionDiscovery.Add(data.discoveredKeys[i], data.discoveredValues[i]); } gc.droppedItems = data.droppedItems; GameObject.Find("GarbageCollector").GetComponent <GarbageCollecter>().SpawnDropped(); SceneManager.SetActiveScene(check); gameObject.SetActive(false); } }
public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Profile) { hash ^= Profile.GetHashCode(); } if (typeCase_ == TypeOneofCase.VaultItem) { hash ^= VaultItem.GetHashCode(); } if (typeCase_ == TypeOneofCase.CollectionItem) { hash ^= CollectionItem.GetHashCode(); } if (typeCase_ == TypeOneofCase.CollectionFamily) { hash ^= CollectionFamily.GetHashCode(); } if (typeCase_ == TypeOneofCase.Walkbox) { hash ^= Walkbox.GetHashCode(); } if (typeCase_ == TypeOneofCase.PlayerFlags) { hash ^= PlayerFlags.GetHashCode(); } if (typeCase_ == TypeOneofCase.Portkey) { hash ^= Portkey.GetHashCode(); } if (typeCase_ == TypeOneofCase.PlayerActiveBuffList) { hash ^= PlayerActiveBuffList.GetHashCode(); } if (typeCase_ == TypeOneofCase.CollectionPage) { hash ^= CollectionPage.GetHashCode(); } if (typeCase_ == TypeOneofCase.VaultCapacity) { hash ^= VaultCapacity.GetHashCode(); } if (typeCase_ == TypeOneofCase.Cauldron) { hash ^= Cauldron.GetHashCode(); } if (typeCase_ == TypeOneofCase.EscrowedRewards) { hash ^= EscrowedRewards.GetHashCode(); } if (typeCase_ == TypeOneofCase.ProfessionsProgressV3) { hash ^= ProfessionsProgressV3.GetHashCode(); } if (typeCase_ == TypeOneofCase.QuestLog) { hash ^= QuestLog.GetHashCode(); } if (typeCase_ == TypeOneofCase.Achievement) { hash ^= Achievement.GetHashCode(); } hash ^= (int)typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(AtlasInventoryItem other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Profile: if (Profile == null) { Profile = new global::WUProtos.Data.Player.PlayerProfile(); } Profile.MergeFrom(other.Profile); break; case TypeOneofCase.VaultItem: if (VaultItem == null) { VaultItem = new global::WUProtos.Inventory.InventoryVaultItem(); } VaultItem.MergeFrom(other.VaultItem); break; case TypeOneofCase.CollectionItem: if (CollectionItem == null) { CollectionItem = new global::WUProtos.Inventory.InventoryCollectionItem(); } CollectionItem.MergeFrom(other.CollectionItem); break; case TypeOneofCase.CollectionFamily: if (CollectionFamily == null) { CollectionFamily = new global::WUProtos.Inventory.InventoryCollectionFamily(); } CollectionFamily.MergeFrom(other.CollectionFamily); break; case TypeOneofCase.Walkbox: if (Walkbox == null) { Walkbox = new global::WUProtos.Inventory.InventoryWalkboxItem(); } Walkbox.MergeFrom(other.Walkbox); break; case TypeOneofCase.PlayerFlags: if (PlayerFlags == null) { PlayerFlags = new global::WUProtos.Inventory.InventoryFeatureFlags(); } PlayerFlags.MergeFrom(other.PlayerFlags); break; case TypeOneofCase.Portkey: if (Portkey == null) { Portkey = new global::WUProtos.Inventory.InventoryPortkeyItem(); } Portkey.MergeFrom(other.Portkey); break; case TypeOneofCase.PlayerActiveBuffList: if (PlayerActiveBuffList == null) { PlayerActiveBuffList = new global::WUProtos.Data.Buff.ActiveBuffList(); } PlayerActiveBuffList.MergeFrom(other.PlayerActiveBuffList); break; case TypeOneofCase.CollectionPage: if (CollectionPage == null) { CollectionPage = new global::WUProtos.Inventory.InventoryCollectionPage(); } CollectionPage.MergeFrom(other.CollectionPage); break; case TypeOneofCase.VaultCapacity: if (VaultCapacity == null) { VaultCapacity = new global::WUProtos.Inventory.InventoryVaultCapacity(); } VaultCapacity.MergeFrom(other.VaultCapacity); break; case TypeOneofCase.Cauldron: if (Cauldron == null) { Cauldron = new global::WUProtos.Inventory.InventoryCauldron(); } Cauldron.MergeFrom(other.Cauldron); break; case TypeOneofCase.EscrowedRewards: if (EscrowedRewards == null) { EscrowedRewards = new global::WUProtos.Inventory.InventoryEscrowedRewards(); } EscrowedRewards.MergeFrom(other.EscrowedRewards); break; case TypeOneofCase.ProfessionsProgressV3: if (ProfessionsProgressV3 == null) { ProfessionsProgressV3 = new global::WUProtos.Data.Player.PlayerProfessionsProgressV3(); } ProfessionsProgressV3.MergeFrom(other.ProfessionsProgressV3); break; case TypeOneofCase.QuestLog: if (QuestLog == null) { QuestLog = new global::WUProtos.Inventory.InventoryQuestLog(); } QuestLog.MergeFrom(other.QuestLog); break; case TypeOneofCase.Achievement: if (Achievement == null) { Achievement = new global::WUProtos.Data.Player.PlayerAchievement(); } Achievement.MergeFrom(other.Achievement); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }