The question says it all. How do I store it, in a table, or a module? I want to be able to spawn the enemies in one line of code:
bot(atkBuff=1.5, hpBuff=1.5, spawnTime=1000, spawnFrequency=5)
Something like this, that controls buffing the enemy and placing an optional pattern of spawning it multiple times.
I am thinking that making a table of stats in a module, than writing functions for each enemy would work.
enemies = { bot = {atk=1000, hp=1000, atkSpeed=40, movementSpeed=100} } function bot() end
However, is there a more efficient manner?