Error when attempting to change loot of biter spawners
Posted: Sun Feb 05, 2017 2:08 am
I'm trying to change the loot of the biter and spitter spawners to a new item in my mod. However, I'm getting an error saying "data.lua:3: syntax error near '-'"
Here's my data.lua:
When I get rid of the - in demo-enemies it doesn't give me that specific error, but it still won't work, because as far as I know, there's no other way to refer to the __base__/prototypes/entity/demo-enemies without the dash. Any way around this? (or am I missing something?)
Here's my data.lua:
Code: Select all
require("prototypes.item")
data.raw.demo-enemies["biter-spawner"].loot =
{
{
{
count_max = 3,
count_min = 0,
item = "alien-egg",
probability = 0.5
}
}
}
data.raw.enemies["spitter-spawner"].loot =
{
{
{
count_max = 5,
count_min = 1,
item = "alien-egg",
probability = 1
}
}
}