rogueworld icon indicating copy to clipboard operation
rogueworld copied to clipboard

Healing fountain

Open Arcanorum opened this issue 2 years ago • 0 comments

Task description

Currently potions are only single use, and only benefit the user. Potionry can be expanded to offer more team support options to players. A "fountain" item should be added that when used would place down an interactive object on the ground and stay there for a set amount of time. Any player can then interact with the fountain to get the health regeneration status effect.

References/notes

Example fountain in the DawnLike tileset: image

Acceptance criteria

Code

  • A new item config should be added to Items.yml, called "HealingFountain".
  • When a player uses this item, a new "HealingFountain" entity should be added to the board tile the player is on. (Similar to the Trap item logic for adding a new entity.
  • When any player presses on the sprite of the fountain on the client, they should be given the HealthRegen status effect. (A new item class file should be added called "HealingFountain.js", that has a class that has a method to call when interacted with)
  • After several minutes (depending on testing), the HealingFountain entity should be removed from the game world. ("lifespan" config property)
  • Multiple fountains of any kind should not be able to be placed on the same board tile at once.
  • A new crafting recipe config should be added to CraftingRecipes.yml, that results in the new "HealingFountain" item type. Should include several health potions and iron bars as ingredients.

Visual

  • A GUI icon that looks like a fountain, but flowing with with red water (like a health potion). icon-healing-fountain.png
  • A similar entity sprite, for the thing that is placed on the ground when used. healing-fountain.png

Arcanorum avatar Sep 25 '21 15:09 Arcanorum