Loading my dungeon was flawless before, but now I am prompted with
"mod_assests/scripts/items.lua:14: bad argument 'slot' to 'cloneObject' (string expected, got number)
This is my item code.
Code: Select all
cloneObject{
name = "dank_cudgel",
baseObject = "cudgel",
uiName = "Dank Cudgel",
attackPower = 10,
coolDownTime = 1,
strength = 2,
accuracy = 8,
attackSound = "smoke",
damageType = "physical",
description = "This blunt weapon radiates with dank energy.",
}
cloneObject{
name = "necklace_of_nugs",
baseObject = "frostbite_necklace",
uiName = "Necklace of Nugs",
willpower = 8,
protection = 5,
resistFire = 3,
resistCold = 3,
weight = .028,
description = "The smell of these nugs always brightens your day.",
}