Good day Lightbringers!
Welcome back to another episode of the weekly dev blog, where we share more news on the development of Empire of Ember with you. This time we would like to talk about the magic system in the game.
Magic is an essential part of Empire of Ember. The game takes place in a fantasy universe where magical shards rained down from the sky, granting their use to certain individuals called Lightbringers. Being one such Lightbringer yourself, magic is an innate ability in you. Use it to rule your kingdom and all those who defy your authority.
A Lightbringer is not exactly a wizard, as wizards are typically portrayed as fragile but powerful individuals that require a lot of preparation. Most spells in Empire of Ember better fit the role of a battlemage, a character class that uses both magic and weapons to fight. However, the system is flexible and the player does have the option to invest their skills and attributes in a way that allows such specific playstyles to exist if they wish it.

Magic is also a fundamental addition to the combat system. With sufficient skill and strategy, players can defeat most enemies with their staff, sword or bow. However, it is just one person against hordes of enemies, and in these situations magic can be the key difference between life and death.
You will find a great variety of spells in the game, which can be used in conjunction with your weapons during combat to achieve the best results in battle. These spells allow you to do things such as conjuring different elements to use them to your advantage, summoning objects or allies to help you in the fight, infusing your weapons with new powers for a short period of time, and so on.
Spells are categorised into three types -each related to the different weapon archetypes- through which you can specialise or diversify as you level up. The player can research and discover new incantations and then upgrade most of them multiple times. Also, it is possible to enhance the spells with certain amulets or rings from your inventory. Some pieces of gear can for example give your bow a damage buff, or a speed increase for charging shots, while others can increase the blocking efficiency of your melee archetype.

Bear in mind that the use of spells is limited by mana, the amount of which will increase as you allocate attributes in willpower. The more powerful spells also have their own use limits or cooldowns that can leave you vulnerable at certain times. Furthermore, consistent use of the spells also results in an energy drain that lowers your overall mana pool. The idea is to not spam the powerful abilities, but use them tactically during combat.
Spells interact with each other in interesting ways which are for you to discover! For example, the spell Necromancy/Dark Resurrection summons an undead unit. You can only raise undead creatures from corpses a limited number of times per mission, but there is no limit on the number of bodies this can affect in a small area.

Telekinesis is a spell which can be used to throw objects or enemies at high velocity, or into destructible objects. It offers a great deal of possibilities, such as placing exploding barrels strategically as traps, propelling enemies that have been knocked down on to spikes, or even throwing dead enemies into the still-living ones, knocking them down and dealing damage.

From a dev’s point of view, designing and implementing the spells in the game has been fun. However, Telekinesis has also been quite a challenge due to issues brought about by the interaction between magic and physics in the game. You need to project how an object of arbitrary size and mass will collide with the world so the player knows where to throw. Being able to pull shields and weapons away from enemies requires custom animations while being able to handle if the shield you are holding breaks. In addition to all of this, it is hard to determine how much impact force an enemy should take while in ragdoll, or to resolve multiple hits against different body parts. It’s sort of like an iceberg- you see a small part in the form of a usable spell, while the underlying design and mechanics needed to work can be a lot more complex.
Another popular spell is Throw Fire/Fire Blast, which lights enemies and surfaces on fire, and that is slightly easier to channel when wielding a staff. It’s a really enjoyable spell to cast, as it feels like having a built-in flamethrower instead of hands. The spell also invokes the chance per damage tick to cause enemies to run away, so it naturally includes a fear mechanic.

And this is all about the magic system for today! For more news, updates, or a friendly chat about the game, join our community on Discord, the Steam forum, and follow us on Twitter, Facebook and Reddit. Also, please wishlist and follow the game, and tell everyone about it!
We will come back next week with more dev news. Until then, stay safe and have a great week!
