Class StarloveCharmPotion
java.lang.Object
gameelement.potion.BasePotion
gameelement.potion.StarloveCharmPotion
- All Implemented Interfaces:
MergeAble
Potion made from Heart Berry and Star Dust.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intExtra charm value reserved for Starlove Charm behavior.Fields inherited from class BasePotion
imagePath, potionName, potionPower, potionRecipe, potionType -
Constructor Summary
ConstructorsConstructorDescriptionCreates a Starlove Charm potion with its recipe, type, and power. -
Method Summary
Modifier and TypeMethodDescriptionbooleanpotionMatchesRecipe(List<BaseElement> elements) Checks whether the selected elements can merge into Starlove Charm.Methods inherited from class BasePotion
getImagePath, getPotionName, getPotionPower, getPotionRecipe, getPotionType, setImagePath, setPotionName, setPotionPower, setPotionRecipe, setPotionType
-
Field Details
-
charmPower
protected int charmPowerExtra 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
Checks whether the selected elements can merge into Starlove Charm.- Specified by:
potionMatchesRecipein interfaceMergeAble- Specified by:
potionMatchesRecipein classBasePotion- Parameters:
elements- selected elements from the merge station- Returns:
- true when Heart Berry and Star Dust are selected
-