Back to Portfolio

Functions regarding the chain attack spell. This spell can chain across multiple enemies to deal damage to a large group all at once. The frequent "Freed Object" checks ensure the enemy being chained to isn't already dead.


This function is for adding or removing items from the player's ingredients inventory. It first checks if the player already has the item in their inventory, then either changes the amount, adds a new TextureRect, or removes the TextureRect depending on the quantity in the player's inventory.


The resource class for potions, which holds all of their data. The color is used for consumable potions, and feeds into a shader which changes the color of the potion in the player's drinking animation. The recipe is an array of ingredients which feeds into the cauldron to determine if the player has the required ingredients to brew it.