Chicken leg - UQcsse3200/2024-studio-2 GitHub Wiki
Usage
Chicken Leg is a subclass of the Food class. This item provides values for the quantity, limit, texture, name, effect, and item code of this specific item. Its effects and quantity are ranked equally as high as Meat.
Expected Behaviour
The item should be able to increase the player's hunger stat by 7 and should be deleted from inventory after 3 uses
Creating item
public ChickenLeg(Texture foodTexture) {
super("Chicken Leg", 9, 10, 3, new FeedEffect(7));
this.meatTexture = new Texture("foodTexture/chicken_leg.png");
}
Image of Chicken Leg
inspired by https://www.newgrounds.com/art/view/gamesmashdash/pixel-art-c and drawn by @PHONGNUYEN1