Huns Atheism

The new implementation of atheism, where enemy relics produce less gold, is very tricky to implement. The problem is that none of the available effects in Wololo Kingdoms DE are able to affect enemy players, only the player that research techs and in some cases their allies. In order to affect enemies, we need another way of interacting with them.

The idea came to me after seing a pretty unknown mod: Panic mod. This mod adds a free technollogy that kills every enemy unit and damages castles. The interesting thing is its implementation. The panic button actually creates a demolition ship with -1 hit points, with a super high damage and blast radius. When this unit is created, it dies instantly, triggering an explosion that covers the whole map and strong enough to kill every unit. The fact that only affects units and not buildings is handled with armor classes. Also, the explosion does not affect allied units.

The idea for Atheism is similar. Every player has an invisible unit inmune to all attacks except for one. When a Hun player researches Atheism, it triggers an explosion that only affects those invisible units, killing them. When those units die, they trigger a technollogy that modifies the relic gold generation.

Creating the explosion

On to the problems. The first one we encounter is that the number of “explosive units” is limited. By