Class StarloveCharmPotion

java.lang.Object
gameelement.potion.BasePotion
gameelement.potion.StarloveCharmPotion
All Implemented Interfaces:
MergeAble

public class StarloveCharmPotion extends BasePotion implements MergeAble
Potion made from Heart Berry and Star Dust.
  • Field Details

    • charmPower

      protected int charmPower
      Extra charm value reserved for Starlove Charm behavior.
  • Constructor Details

    • StarloveCharmPotion

      public StarloveCharmPotion()
      Creates a Starlove Charm potion with its recipe, type, and power.
  • Method Details

    • potionMatchesRecipe

      public boolean potionMatchesRecipe(List<BaseElement> elements)
      Checks whether the selected elements can merge into Starlove Charm.
      Specified by:
      potionMatchesRecipe in interface MergeAble
      Specified by:
      potionMatchesRecipe in class BasePotion
      Parameters:
      elements - selected elements from the merge station
      Returns:
      true when Heart Berry and Star Dust are selected