Classes:ArtiBoostMana

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Krater of might
Actor type Artifact Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number 8003 Class Name ArtiBoostMana
Spawn ID 26 Identifier T_ITEMBOOSTMANA


Classes: InventoryCustomInventoryArtiBoostMana
The Krater of Might is a gray chalice with a black rune containing a purple liquid. Using it refills the player's mana pools to full capacity. It could be considered the replacement for the bag of holding, which is missing in Hexen: instead of directly increasing the maximum carrying capacity for ammunitions, it allows to carry a full ammo refill.

DECORATE definition

ACTOR ArtiBoostMana : CustomInventory
{
  +FLOATBOB
  +NOGRAVITY
  +COUNTITEM
  +INVENTORY.INVBAR
  +INVENTORY.PICKUPFLASH
  +INVENTORY.FANCYPICKUPSOUND
  Inventory.DefMaxAmount
  Inventory.Icon "ARTIBMAN"
  Inventory.PickupSound "misc/p_pkup"
  Inventory.PickupMessage "$TXT_ARTIBOOSTMANA" // "KRATER OF MIGHT"
  Tag "$TAG_ARTIBOOSTMANA"
  States
  {
  Spawn:
    BMAN A -1
    Stop
  Use:
    TNT1 A 0 A_GiveInventory("Mana1", 200)
    TNT1 A 0 A_GiveInventory("Mana2", 200)
    Stop
  }
}