public static string ReturnItemInfo(int itemID) { string text; switch (itemID) { case 0: text = "Allows breaking around yourself.\r\n\r\nThis item cannot be trashed nor dropped."; goto IL_5F4; case 2: text = "Yep, it is dirt."; goto IL_5F4; case 4: text = "This is a hard rock."; goto IL_5F4; case 6: text = "Yep, it is dirt! But it's farther away!"; goto IL_5F4; case 8: text = "You should not see this! Report to us to get a reward."; goto IL_5F4; case 10: text = "You should not see this! Report to us to get a reward."; goto IL_5F4; case 12: text = "Wooden planks are made from classic oak."; goto IL_5F4; case 14: text = "This smells so sweet!"; goto IL_5F4; case 16: text = "You can jump through them with ease, but you can not fall through!"; goto IL_5F4; case 18: text = "Store items inside! Unfortunately, in Growalone it doesn't work."; goto IL_5F4; case 20: { string str; if (DateTime.Now.Hour >= 14) { str = "night"; } else { str = "morning"; } text = "Ahh, I love the smell of the freshly punched grass in the " + str + "!"; goto IL_5F4; } case 22: text = "The great thing about Doors is that they open automatically!"; goto IL_5F4; case 24: text = "This is the sturdiest block in all games!"; goto IL_5F4; case 26: text = "Locks a 3x3 area around itself. Upon placing it can not be broken so be careful."; goto IL_5F4; case 28: text = "Locks a 7x7 area around itself. Upon placing it can not be broken so be careful."; goto IL_5F4; case 30: text = "Locks an 11x11 area around itself. Upon placing it can not be broken so be careful."; goto IL_5F4; case 32: text = "Debug tile #1. Please don't recycle."; goto IL_5F4; case 33: text = "Debug tile #2. Please don't recycle."; goto IL_5F4; case 34: text = "Debug tile #3. Please don't recycle."; goto IL_5F4; case 35: text = "Get the moon in your hands with this new item!"; goto IL_5F4; case 36: text = "Get THE FRICKING SUN in your HANDS! How's that even possible? I don't know."; goto IL_5F4; case 37: text = "You used to have a pickaxe instead of a fist in the beta. Like, come on!"; goto IL_5F4; case 38: text = "Locks the whole world and at the same time makes all the other locks public. Upon placing it can not be broken so be careful."; goto IL_5F4; case 40: text = "Nice and cheap chair you can sit on."; goto IL_5F4; case 42: text = "Nice and cheap table you can put something on. You can put a PC in here, but nothing else."; goto IL_5F4; case 44: text = "The deadliest kind of spike available. DO NOT TOUCH!"; goto IL_5F4; case 46: text = "Write messages to tell map players a message! Like \"Welcome\" or \"GET OUT!\"."; goto IL_5F4; case 48: text = "The legend says this is a piece of the sun."; goto IL_5F4; case 50: text = "This is the default hair that the Growalonian used to wear. But it's cut off."; goto IL_5F4; case 52: text = "This is the Growalonian's hair, but combed. It's cut off so you can't put it on."; goto IL_5F4; case 54: text = "This is the Growalonian's shoes. Useless because they don't fit your big feet. And I don't mean that you're fat."; goto IL_5F4; case 56: text = "Blue shoes that are blue. They don't fit your feet so it's kindaaa useless. Do ya no da wae tho?"; goto IL_5F4; case 58: text = "This is the Growalonian's shirt. But it's too large!"; goto IL_5F4; case 60: text = "This yellow shirt is for kids. So you can't wear it."; goto IL_5F4; case 62: text = "Black pants fit very well with school suits. But school suits are outdated."; goto IL_5F4; case 64: text = "These were the Growalonian's jeans. You got them but you can't wear them, since they don't fit."; goto IL_5F4; case 66: text = "Use this on an object that is wrenchable to modify its data.\r\n\r\nThis item cannot be trashed nor dropped."; goto IL_5F4; case 68: text = "The one and only! Sponsored by Maxiify."; goto IL_5F4; case 70: text = "Teleporter doors allow you to go through and find yourself somewhere else."; goto IL_5F4; case 72: text = "Bricks are used to make tough buildings and such."; goto IL_5F4; case 74: text = "You should not see this! Report to us to get a reward."; goto IL_5F4; case 76: text = "This gamer broke his PC. Please fix his PC for a reward."; goto IL_5F4; case 78: text = "This is exactly a 1 meter cube crate."; goto IL_5F4; case 80: text = "You have to be rich to use these as a building material."; goto IL_5F4; case 82: text = "You have to be rich to use these as a building material."; goto IL_5F4; case 84: text = "Slippery, cold to the touch, but strangely not melting."; goto IL_5F4; case 86: text = "Hope you can swim because that's how you move in water."; goto IL_5F4; case 88: text = "Jump twice as high now!"; goto IL_5F4; case 90: text = "Fly with ease! Sponsored by iProgramMC."; goto IL_5F4; case 92: text = "This pet follows you around wherever you go. Sponsored by Maxiify."; goto IL_5F4; case 94: text = "This pet follows you around wherever you go."; goto IL_5F4; case 96: text = "Celebrate the holidays with this awesome cake! You can eat infinite cake! Only available on 5th of October in the Coin Shop."; goto IL_5F4; case 98: text = "This amazing sign has the power to tell you what it says without standing on it!"; goto IL_5F4; case 100: text = "This sapling looks cool..."; goto IL_5F4; case 102: text = "This crown makes the character a king. It does NOT make YOU, the player, a king."; goto IL_5F4; case 104: text = "Break stuff faster with this cool thing!"; goto IL_5F4; case 106: text = "The future is so bright, you need these..."; goto IL_5F4; case 108: text = "Ahhh, I love dubstep!"; goto IL_5F4; case 110: text = "Walk on it and set your spawnpoint."; goto IL_5F4; case 112: text = "You can store coins in this, to either giveaway, store, or whatever else."; goto IL_5F4; case 114: text = "Painting inspired by August 27th."; goto IL_5F4; case 116: text = "A rose, just yellow."; goto IL_5F4; case 118: text = "State-of-the-art PC, with the latest hardware and software. If only you could play Growalone on this (You can't.)"; goto IL_5F4; case 120: text = "You can show that something's going on in the direction the sign's facing. However, you can't write anything on it."; goto IL_5F4; case 122: text = "You can show that something's deadly in the direction the sign's facing. However, you can't write anything on it."; goto IL_5F4; case 124: text = "A standard, wooden fence."; goto IL_5F4; case 126: text = "Blow up stuff with this!"; goto IL_5F4; case 128: text = "A standard, leafy bush."; goto IL_5F4; case 130: text = "A note block that plays music when tapped."; goto IL_5F4; case 132: text = "A mystery block that can be opened by hitting it from the top."; goto IL_5F4; case 134: text = "A used mystery block."; goto IL_5F4; case 136: text = "Place this down whenever you feel happy."; goto IL_5F4; case 138: text = "Place this down whenever you feel sad."; goto IL_5F4; } if (ItemData.IsPlantable(itemID)) { if (ItemData.ReturnItemName2(itemID - 1) == "MISSING_ITEM") { text = "You should not see this! Report to us to get a reward."; } else { text = "Plant this seed to grow a " + ItemData.ReturnItemName2(itemID - 1) + " tree"; } } else { text = "can't find desc for null_item" + itemID.ToString(); } IL_5F4: int tier = ItemData.GetTier(itemID); if (tier != 0) { text = text + "\r\n\r\nTier: " + tier.ToString(); } return(text); }
public void Draw(SpriteBatch spriteBatch, Growalone that, Vector2 posOfCam, int ActualCameraX) { int num = (int)posOfCam.Y; int num2 = this.PosX - ActualCameraX + (that.GraphicsDevice.Viewport.Width - 800) / 2; int num3 = this.PosY - num + (that.GraphicsDevice.Viewport.Height - 480) / 2; if (ItemData.IsPlantable(this.ID)) { Color[] array = new Color[that.tileTextures[this.ID - 1, 0].Width * that.tileTextures[this.ID - 1, 0].Height]; that.tileTextures[this.ID - 1, 0].GetData <Color>(array); if (array[that.colorIndex1].A < 255 && array[that.colorIndex2].A < 255) { spriteBatch.Draw(that.seedTexture, new Rectangle(num2, num3 + (int)this.anim, that.seedWidth, that.seedHeight), new Rectangle?(new Rectangle(0, 0, that.seedWidth, that.seedHeight)), array[that.colorIndex1]); spriteBatch.Draw(that.seedTexture, new Rectangle(num2, num3 + (int)this.anim, that.seedWidth, that.seedHeight), new Rectangle?(new Rectangle(that.seedWidth, 0, that.seedWidth, that.seedHeight)), array[that.colorIndex2]); } else { bool flag = false; int num4 = 0; int num5 = 0; int num6 = 0; while (array[num4].A > 254 && array[num5].A > 254) { for (int i = 0; i < array.Length; i++) { if (array[i].A > 254 && !flag) { num4 = i; i += 100; flag = true; } else if (array[i].A > 254 && flag) { num5 = i; break; } } if (num6 == 1) { break; } num6++; } if (num4 == 0) { num4 = 500; } if (num5 == 0) { num5 = 1000; } spriteBatch.Draw(that.seedTexture, new Rectangle(num2, num3 + (int)this.anim, that.seedWidth, that.seedHeight), new Rectangle?(new Rectangle(0, 0, that.seedWidth, that.seedHeight)), array[num4]); spriteBatch.Draw(that.seedTexture, new Rectangle(num2, num3 + (int)this.anim, that.seedWidth, that.seedHeight), new Rectangle?(new Rectangle(that.seedWidth, 0, that.seedWidth, that.seedHeight)), array[num5]); } } else if (this.ID >= 0) { spriteBatch.Draw(that.tileTextures[this.ID, 0], new Rectangle(num2, num3 + (int)this.anim, 17, 17), Color.White); } spriteBatch.DrawString(that.defaultFont, this.amount.ToString(), new Vector2((float)num2, (float)(num3 + (int)this.anim)), Color.White, 0f, Vector2.Zero, 0.25f, SpriteEffects.None, 0f); }