// Token: 0x0600000C RID: 12 RVA: 0x00002B54 File Offset: 0x00000D54 private void OnSceneLoaded() { foreach (GameObject gameObject in Resources.FindObjectsOfTypeAll <GameObject>().Where(delegate(GameObject x) { bool result; if (x.name == "HumanSNPC_Blacksmith") { Merchant componentInChildren = x.GetComponentInChildren <Merchant>(); result = ((((componentInChildren != null) ? componentInChildren.ShopName : null) ?? "") == "Vyzyrinthrix the Blacksmith"); } else { result = false; } return(result); })) { GuaranteedDrop[] componentsInChildren = gameObject.GetComponentsInChildren <GuaranteedDrop>(); GuaranteedDrop guaranteedDrop; if (componentsInChildren == null) { guaranteedDrop = null; } else { guaranteedDrop = componentsInChildren.FirstOrDefault((GuaranteedDrop table) => table.ItemGenatorName == "Recipes"); } GuaranteedDrop guaranteedDrop2 = guaranteedDrop; bool flag = guaranteedDrop2 != null; if (flag) { List <BasicItemDrop> list = At.GetValue(typeof(GuaranteedDrop), guaranteedDrop2, "m_itemDrops") as List <BasicItemDrop>; bool flag2 = list != null; if (flag2) { foreach (Item droppedItem in new Item[] { this.blessedLongswordRecipeInstance, this.divineLongswordRecipeInstance }) { list.Add(new BasicItemDrop { DroppedItem = droppedItem, MaxDropCount = 1, MinDropCount = 1 }); } } } } }
// Token: 0x0600000B RID: 11 RVA: 0x00002574 File Offset: 0x00000774 private void OnSceneLoaded() { foreach (GameObject gameObject in from x in Resources.FindObjectsOfTypeAll <GameObject>() where x.name == "UNPC_LaineAberforthA" || x.name == "HumanSNPC_CounterAlchemist" select x) { GuaranteedDrop[] componentsInChildren = gameObject.GetComponentsInChildren <GuaranteedDrop>(); GuaranteedDrop guaranteedDrop; if (componentsInChildren == null) { guaranteedDrop = null; } else { guaranteedDrop = componentsInChildren.FirstOrDefault((GuaranteedDrop table) => table.ItemGenatorName == "Recipes"); } GuaranteedDrop guaranteedDrop2 = guaranteedDrop; bool flag = guaranteedDrop2 != null; if (flag) { List <BasicItemDrop> list = At.GetValue(typeof(GuaranteedDrop), guaranteedDrop2, "m_itemDrops") as List <BasicItemDrop>; bool flag2 = list != null; if (flag2) { foreach (Item droppedItem in new Item[] { this.runicScrollRecipeInstance }) { list.Add(new BasicItemDrop { DroppedItem = droppedItem, MaxDropCount = 1, MinDropCount = 1 }); } } } } }