V0.2.0: further improved Blandfruit info string construction.

This commit is contained in:
Evan Debenham 2014-09-05 10:10:38 -04:00
parent 075d7db790
commit 0f9854d40a

View File

@ -147,55 +147,56 @@ public class Blandfruit extends Food {
potionAttrib.image = ItemSpriteSheet.BLANDFRUIT; potionAttrib.image = ItemSpriteSheet.BLANDFRUIT;
info = "The fruit has plumped up from its time soaking in the pot and has even absorbed the properties "; info = "The fruit has plumped up from its time soaking in the pot and has even absorbed the properties "+
"of the " + seed.name() + " seed it was cooked with.\n\n";
if (potionAttrib instanceof PotionOfHealing){ if (potionAttrib instanceof PotionOfHealing){
name = "Healthfruit"; name = "Healthfruit";
potionGlow = new ItemSprite.Glowing( 0x2EE62E ); potionGlow = new ItemSprite.Glowing( 0x2EE62E );
info += "of the Sungrass seed it was cooked with. It looks delicious and hearty, ready to be eaten!"; info += "It looks delicious and hearty, ready to be eaten!";
} else if (potionAttrib instanceof PotionOfStrength){ } else if (potionAttrib instanceof PotionOfStrength){
name = "Powerfruit"; name = "Powerfruit";
potionGlow = new ItemSprite.Glowing( 0xCC0022 ); potionGlow = new ItemSprite.Glowing( 0xCC0022 );
info += "of the Rotberry seed it was cooked with. It looks delicious and powerful, ready to be eaten!"; info += "It looks delicious and powerful, ready to be eaten!";
} else if (potionAttrib instanceof PotionOfParalyticGas){ } else if (potionAttrib instanceof PotionOfParalyticGas){
name = "Paralyzefruit"; name = "Paralyzefruit";
potionGlow = new ItemSprite.Glowing( 0x67583D ); potionGlow = new ItemSprite.Glowing( 0x67583D );
info += "of the Earthroot seed it was cooked with. It looks firm and volatile, I shouldn't eat this."; info += "It looks firm and volatile, eating this might be unsafe.";
} else if (potionAttrib instanceof PotionOfInvisibility){ } else if (potionAttrib instanceof PotionOfInvisibility){
name = "Invisifruit"; name = "Invisifruit";
potionGlow = new ItemSprite.Glowing( 0xE5D273 ); potionGlow = new ItemSprite.Glowing( 0xE5D273 );
info += "of the Blindweed seed it was cooked with. It looks delicious and shiny, ready to be eaten!"; info += "It looks delicious and shiny, ready to be eaten!";
} else if (potionAttrib instanceof PotionOfLiquidFlame){ } else if (potionAttrib instanceof PotionOfLiquidFlame){
name = "Flamefruit"; name = "Flamefruit";
potionGlow = new ItemSprite.Glowing( 0xFF7F00 ); potionGlow = new ItemSprite.Glowing( 0xFF7F00 );
info += "of the Firebloom seed it was cooked with. It looks spicy and volatile, I shouldn't eat this."; info += "It looks spicy and volatile, eating this might be unsafe.";
} else if (potionAttrib instanceof PotionOfFrost){ } else if (potionAttrib instanceof PotionOfFrost){
name = "Frostfruit"; name = "Frostfruit";
potionGlow = new ItemSprite.Glowing( 0x66B3FF ); potionGlow = new ItemSprite.Glowing( 0x66B3FF );
info += "of the Icecap seed it was cooked with. It looks delicious and refreshing, ready to be eaten!"; info += "It looks delicious and refreshing, ready to be eaten!";
} else if (potionAttrib instanceof PotionOfMindVision){ } else if (potionAttrib instanceof PotionOfMindVision){
name = "Visionfruit"; name = "Visionfruit";
potionGlow = new ItemSprite.Glowing( 0xB8E6CF ); potionGlow = new ItemSprite.Glowing( 0xB8E6CF );
info += "of the Fadeleaf seed it was cooked with. It looks delicious and shadowy, ready to be eaten!"; info += "It looks delicious and shadowy, ready to be eaten!";
} else if (potionAttrib instanceof PotionOfToxicGas){ } else if (potionAttrib instanceof PotionOfToxicGas){
name = "Toxicfruit"; name = "Toxicfruit";
potionGlow = new ItemSprite.Glowing( 0xA15CE5 ); potionGlow = new ItemSprite.Glowing( 0xA15CE5 );
info += "of the Sorrowmoss seed it was cooked with. It looks crisp and volatile, I shouldn't eat this."; info += "It looks crisp and volatile, eating this might be unsafe.";
} }