public potion(Texture2D texture, GamePlayer player, gamemain main, NPC npc, string name) : base(texture, player, npc.Position, main) { Main = main; Player = player; Texture = texture; Hitbox_potion = new Rectangle((int)Position.X, (int)Position.Y, Texture.Bounds.Width, Texture.Bounds.Y); Name = name; }
public potion(Texture2D texture, NPC npc, string name) : base(/*texture,*/ npc.Position) { Texture = texture; Hitbox_potion = new Rectangle((int)Position.X, (int)Position.Y, 32, 32); Name = name; usable = true; switch (name) { case "VIE": utilité = "restore 10 pv au personnage"; break; case "MANA": utilité = "restore 10 point de mana au personnage"; break; } }