Documentation about global.attack_data ?
Posted: Sun Jun 12, 2016 5:23 am
In the freeplay scenario's control.lua (in v0.12.35), I see code that sets the global.attack_data table like so:
Is this attack_data table used by the game engine somehow? E.g., does changing global.attack_data["attack_count"] change the number of aliens sent in the next attack? I don't see any reference to this in the wiki. Where can I find out more about how it works?
Code: Select all
init_attack_data = function()
global.attack_data = {
-- whether all attacks are enabled
enabled = true,
-- this script is allowed to change the attack values attack_count and until_next_attack
change_values = true,
-- what distracts the creepers during the attack
distraction = defines.distraction.byenemy,
-- number of units in the next attack
attack_count = 5,
-- time to the next attack
until_next_attack = 60 * 60 * 60,
}
end