Class UpgradeToken

java.lang.Object
com.mg105.entities.Item
com.mg105.entities.items.UpgradeToken
All Implemented Interfaces:
Consumable

public class UpgradeToken extends Item implements Consumable
An item that is used upgrade a characters stat

One upgrade token boosts every stat of a single character

  • Constructor Details

    • UpgradeToken

      public UpgradeToken()
      Creates a new instance of upgrade token
  • Method Details

    • consume

      public void consume(@NotNull @NotNull GameState state, @NotNull @NotNull String characterName)
      Upgrades the stats of the given character
      Specified by:
      consume in interface Consumable
      Parameters:
      state - the state of the game
      characterName - the name of the character to use the item on